Skip to content

Commit 73eda87

Browse files
notriddlegitbot
authored and
gitbot
committed
rustdoc-search: let From and Into be unboxed
1 parent 99f123c commit 73eda87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/convert/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ pub trait AsMut<T: ?Sized> {
443443
/// [`Vec`]: ../../std/vec/struct.Vec.html
444444
#[rustc_diagnostic_item = "Into"]
445445
#[stable(feature = "rust1", since = "1.0.0")]
446+
#[doc(search_unbox)]
446447
pub trait Into<T>: Sized {
447448
/// Converts this type into the (usually inferred) input type.
448449
#[must_use]
@@ -577,6 +578,7 @@ pub trait Into<T>: Sized {
577578
all(_Self = "&str", T = "alloc::string::String"),
578579
note = "to coerce a `{T}` into a `{Self}`, use `&*` as a prefix",
579580
))]
581+
#[doc(search_unbox)]
580582
pub trait From<T>: Sized {
581583
/// Converts to this type from the input type.
582584
#[rustc_diagnostic_item = "from_fn"]

0 commit comments

Comments
 (0)