Skip to content

Commit 2b92d8d

Browse files
authored
Rollup merge of rust-lang#139688 - rust-lang:notriddle/io-result-unbox, r=GuillaumeGomez
rustdoc-search: add unbox flag to Result aliases Fixes rust-lang#139665
2 parents cd3a125 + b40d106 commit 2b92d8d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

std/src/io/error.rs

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ use crate::{error, fmt, result, sys};
4848
/// }
4949
/// ```
5050
#[stable(feature = "rust1", since = "1.0.0")]
51+
#[cfg_attr(not(bootstrap), doc(search_unbox))]
5152
pub type Result<T> = result::Result<T, Error>;
5253

5354
/// The error type for I/O operations of the [`Read`], [`Write`], [`Seek`], and

std/src/thread/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1676,6 +1676,7 @@ impl fmt::Debug for Thread {
16761676
/// [`Result`]: crate::result::Result
16771677
/// [`std::panic::resume_unwind`]: crate::panic::resume_unwind
16781678
#[stable(feature = "rust1", since = "1.0.0")]
1679+
#[cfg_attr(not(bootstrap), doc(search_unbox))]
16791680
pub type Result<T> = crate::result::Result<T, Box<dyn Any + Send + 'static>>;
16801681

16811682
// This packet is used to communicate the return value between the spawned

0 commit comments

Comments
 (0)