-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
lint if a private item has doctests #55367
lint if a private item has doctests #55367
Conversation
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
f74822f
to
8efde24
Compare
Ready! |
8efde24
to
4e3771b
Compare
@petrochenkov Updated the lint name. |
4e3771b
to
8740adb
Compare
Updated. |
8740adb
to
18b2cb9
Compare
Updated. |
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.
Thanks again for writing this up! This looks good to me.
cx: &'a DocContext<'a, 'tcx, 'rcx, 'cstore>, | ||
dox: &str, | ||
item: &Item, | ||
check_missing_code: bool, |
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.
If we revisit this function, i'd like to replace this bool parameter with an enum that represents which check is occurring. It will make the callsite much easier to understand, IMO.
@bors r+ |
📌 Commit 18b2cb9cca9b0b337a98130d6292938be379708d has been approved by |
☔ The latest upstream changes (presumably #55974) made this pull request unmergeable. Please resolve the merge conflicts. |
18b2cb9
to
675319e
Compare
Ping from triage @QuietMisdreavus: It looks like this PR has been rebased and is ready for your review again. |
Ah my bad, forgot to re-r+ (didn't change anything so shouldn't require additional review). @bors: r=QuietMisdreavus |
📌 Commit 675319e has been approved by |
…t-lint, r=QuietMisdreavus lint if a private item has doctests Fixes rust-lang#55333. r? @QuietMisdreavus
Rollup of 11 pull requests Successful merges: - #55367 (lint if a private item has doctests) - #55485 (Return &T / &mut T in ManuallyDrop Deref(Mut) impl) - #55784 (Clarifying documentation for collections::hash_map::Entry::or_insert) - #55961 (Fix VecDeque pretty-printer) - #55980 (Suggest on closure args count mismatching with pipe span) - #56002 (fix #55972: Erroneous self arguments on bare functions emit subpar compilation error) - #56063 (Update any.rs documentation using keyword dyn) - #56067 (Add SGX target to rustc) - #56078 (Fix error message for `-C panic=xxx`.) - #56106 (Remove some incorrect doc comments) - #56126 (core/benches/num: Add `from_str/from_str_radix()` benchmarks) Failed merges: r? @ghost
Fixes #55333.
r? @QuietMisdreavus