rustdoc: handle generics better when matching notable traits#108954
Merged
bors merged 5 commits intorust-lang:masterfrom Mar 23, 2023
Merged
rustdoc: handle generics better when matching notable traits#108954bors merged 5 commits intorust-lang:masterfrom
bors merged 5 commits intorust-lang:masterfrom
Conversation
This commit makes the `clean::Type::is_same` non-commutative, so that a generic `impl` matches a concrete return, but a generic return does not match a concrete `impl`. It makes slice and vector Write for `u8` not match on every generic return value.
Collaborator
|
r? @jsha (rustbot has picked a reviewer for you, use r? to override) |
Collaborator
|
Some changes occurred in src/librustdoc/clean/types.rs cc @camelid |
camelid
requested changes
Mar 12, 2023
Member
camelid
left a comment
There was a problem hiding this comment.
Thanks for working on this issue!
Member
|
r? @camelid |
camelid
reviewed
Mar 17, 2023
camelid
approved these changes
Mar 22, 2023
Member
camelid
left a comment
There was a problem hiding this comment.
Thanks again for fixing this!
Member
|
@bors r+ rollup |
Collaborator
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Mar 23, 2023
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#108954 (rustdoc: handle generics better when matching notable traits) - rust-lang#109203 (refactor/feat: refactor identifier parsing a bit) - rust-lang#109213 (Eagerly intern and check CrateNum/StableCrateId collisions) - rust-lang#109358 (rustc: Remove unused `Session` argument from some attribute functions) - rust-lang#109359 (Update stdarch) - rust-lang#109378 (Remove Ty::is_region_ptr) - rust-lang#109423 (Use region-erased self type during IAT selection) - rust-lang#109447 (new solver cleanup + implement coherence) - rust-lang#109501 (make link clickable) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This commit makes the
clean::Type::is_samenon-commutative (renaming itis_doc_subtype_of), so that a genericimplmatches a concrete return, but a generic return does not match a concreteimpl. It makes slice and vector Write foru8not match on every generic return value.Fixes #100322
Fixes #55082
Preview: