Skip to content

Commit d961be2

Browse files
matthiaskrgrgitbot
authored and
gitbot
committed
Rollup merge of rust-lang#134277 - notriddle:notriddle/inline-into, r=GuillaumeGomez
rustdoc-search: handle `impl Into<X>` better This PR fixes two bugs I ran into while searching the compiler docs: - It omitted an `impl Trait` entry in the type signature field, producing `TyCtxt, , Symbol -> bool` - It didn't let me search for `TyCtxt, DefId, Symbol -> bool` even though that's a perfectly good description of the function I was looking for (the function actually used `impl Into<DefId>` r? ``@GuillaumeGomez`` cc ``@lolbinarycat``
2 parents 5f9fc8f + 29209a7 commit d961be2

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)