rustdoc-search: simplify rules for generics and type params#127589
Merged
bors merged 7 commits intorust-lang:masterfrom Nov 11, 2024
Merged
rustdoc-search: simplify rules for generics and type params#127589bors merged 7 commits intorust-lang:masterfrom
bors merged 7 commits intorust-lang:masterfrom
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Heads up!: This PR is a follow-up that depends on #124544. It adds 12dc24f, a change to the filtering behavior, and 9900ea4, a minor ranking tweak.
Part of rust-lang/rust-project-goals#112
This PR overturns #109802
Preview
Box<[A]> -> Vec<B>Box<[A]> -> Vec<A>T -> UCx -> TyCtxtDescription
This commit is a response to feedback on the displayed type signatures results, by making generics act stricter.
Vec<Allocator>now matches only with a true vector of allocators, instead of matching the second type param. It also makes unboxing within generics stricter, soResult<A, B>only matches ifBis in the error type andAis in the success type. The top level of the function search is unaffected.i32 -> strand get back a function with the type signature&Future<i32> -> Box<str>.Find the discussion on