-
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
Add some docs to rustdoc::clean::inline and def_id functions #76784
Conversation
r? @ollie27 (rust_highfive has picked a reviewer for you, use r? to override) |
r? @jyn514 |
src/librustdoc/clean/inline.rs
Outdated
@@ -290,10 +290,12 @@ pub fn build_ty(cx: &DocContext<'_>, did: DefId) -> Option<clean::Type> { | |||
} | |||
} | |||
|
|||
// Passed `DefId` has to be a Trait item/path/reexport. |
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'm not sure whether it could also be a primitive, because of lang items. Maybe @GuillaumeGomez would know?
// Passed `DefId` has to be a Trait item/path/reexport. | |
// Passed `DefId` has to be an ADT (struct/union/enum) |
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.
This looks good to merge once you address this comment.
I just realized this can't be a primitive because it assumes you have a DefId
. So no need to worry about that bit.
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.
This can be a primitive because of lang_items
. Ugh rustdoc is a mess. https://doc.rust-lang.org/nightly/nightly-rustc/rustc_typeck/coherence/inherent_impls/struct.InherentCollect.html#method.check_primitive_impl
// Passed `DefId` has to be a Trait item/path/reexport. | |
// Passed `DefId` has to be an ADT (struct/union/enum) or a `lang_item` for a primitive. |
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.
where's the call site passing lang_items
of primitive to build_impls
?
☔ The latest upstream changes (presumably #77039) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:
|
Rebased. Not sure why is this waiting on me (author). It needs more input/info from reviewer. @rustbot modify labels: -S-waiting-on-author +S-waiting-on-review |
I don't know this code well enough to review it. |
@bors: r+ rollup |
📌 Commit 31084cf09499c43d309cd17062e97b0508b8f64c has been approved by |
Squashed to make commit history clean! Sorry for this inconvenient. |
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
No problem, r=me once CI pass. |
@bors r=GuillaumeGomez rollup |
📌 Commit 63e7234 has been approved by |
Thanks for working on this :) sorry I couldn't be much help. |
Rollup of 11 pull requests Successful merges: - rust-lang#76784 (Add some docs to rustdoc::clean::inline and def_id functions) - rust-lang#76911 (fix VecDeque::iter_mut aliasing issues) - rust-lang#77400 (Fix suggestions for x.py setup) - rust-lang#77515 (Update to chalk 0.31) - rust-lang#77568 (inliner: use caller param_env) - rust-lang#77571 (Use matches! for core::char methods) - rust-lang#77582 (Move `EarlyOtherwiseBranch` to mir-opt-level 2) - rust-lang#77590 (Update RLS and Rustfmt) - rust-lang#77605 (Fix rustc_def_path to show the full path and not the trimmed one) - rust-lang#77614 (Let backends access span information) - rust-lang#77624 (Add c as a shorthand check alternative for new options rust-lang#77603) Failed merges: r? `@ghost`
Split from #76571 .