-
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
Cleanup more of rustdoc #79372
Cleanup more of rustdoc #79372
Conversation
This comment has been minimized.
This comment has been minimized.
@@ -124,7 +124,7 @@ crate fn try_inline( | |||
let attrs = merge_attrs(cx, Some(parent_module), target_attrs, attrs_clone); | |||
|
|||
cx.renderinfo.borrow_mut().inlined.insert(did); | |||
let what_rustc_thinks = clean::Item::from_def_id_and_parts(did, Some(name), kind, cx); | |||
let what_rustc_thinks = clean::Item::from_def_id_and_parts(did, Some(name.clean(cx)), kind, cx); |
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.
I haven't look deep but I wonder why do we need to have this .clean(cx)
so many times unlike before?
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.
Does the explanation in the commit message help? bbded0b
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.
Yes, now I understand. I didn't know it is related to interning.
- Take `String` instead of `Symbol` - this avoids having to intern then immediately stringify the existing string. - Remove unused `get_stability` and `get_deprecation` - Remove unused `attrs` field from `primitives`
This is ready for review. |
Awesome as usual, thanks! @bors: r+ |
📌 Commit 09a3bc1 has been approved by |
⌛ Testing commit 09a3bc1 with merge 77f09bb854d585c24f0e2bc98e35d7db33a6a293... |
💥 Test timed out |
@bors retry |
☀️ Test successful - checks-actions |
Remove doctree::Macro and distinguish between `macro_rules!` and `pub macro` This is a part of rust-lang#78082, removing doctree::Macro. Uses the changes in rust-lang#79372 Fixes rust-lang#76761
Item::from_def_id
for StructFieldfrom_def_id_and_parts
for primitives and keywordsString
instead ofSymbol
infrom_def_id
- this avoids having to intern then immediately stringify the existing string.get_stability
andget_deprecation
attrs
field fromprimitives
attrs
field fromkeywords
This will probably conflict with #79335 and I would prefer for that PR to land first - I'm anxious for #77467 to land :)
Makes #76998 easier to add.
r? @GuillaumeGomez