-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc: Add more semantic information to impl ids #97754
Conversation
Instead of generating `#impl`, `#impl-1`, etc., generate IDs like `#impl-Foo<M>`. Co-authored-by: Noah Lev <camelidcamel@gmail.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
src/test/rustdoc/sized_trait.rs
Outdated
@@ -11,7 +11,8 @@ pub struct Bar { | |||
pub struct Foo<T: ?Sized>(T); | |||
|
|||
// @has foo/struct.Unsized.html | |||
// @has - '//*[@id="impl-Sized"]//h3[@class="code-header in-band"]' 'impl !Sized for Unsized' | |||
// @has - '//div[@id="impl-Sized-for-Unsized"]//h3[@class="code-header in-band"]' 'impl !Sized for Unsized' | |||
>>>>>>> 083cf2a97a8... rustdoc: Add more semantic information to impl ids |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You failed a rebase. ;)
The job Click to see the possible cause of the failure (guessed by this bot)
|
triage: @rustbot author |
☔ The latest upstream changes (presumably #98987) made this pull request unmergeable. Please resolve the merge conflicts. |
closing this as @GuillaumeGomez will be working on it and will be pulling from the same commit i pulled it from |
Rework of #92745
Instead of generating
#impl
,#impl-1
, etc., generate IDslike
#impl-Foo<M>
.Co-authored-by: Noah Lev camelidcamel@gmail.com
r? @GuillaumeGomez
cc @pierwill @camelid