-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
bump stdsimd; make intra_doc_link_resolution_failure an error again; make lints more consistent #59955
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
|
@@ -60,8 +60,8 @@ | |||
|
|||
#![warn(deprecated_in_future)] | |||
#![warn(missing_docs)] |
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.
Btw @alexcrichton is there any reason liballoc does not have warn(missing_docs)
? Should I add it there as well to make things more consistent?
The other inconsistency I noticed is that libcore does not have deny(rust_2018_idioms)
. But that seems people just didn't get there yet.
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.
It is being worked on, #58702.
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.
@RalfJung when those annotations were added it wasn't needed, now that it's a stable crate we probably need it
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.
Okay, I added the attribute. That uncovered a few missing docs, and indeed for items that got reexported in std
! So I also added docs.
LGTM. It appears that every time you update stdsimd, some new feature lands, you are our luck hero ! This updates lands all MIPS MSA SIMD intrinsics on nightly, which were added by @rbirdic in this massive PR: rust-lang/stdarch#709 |
@bors: r+ |
📌 Commit 8ef7ca1 has been approved by |
@bors: r+ |
📌 Commit 50c615b has been approved by |
bump stdsimd; make intra_doc_link_resolution_failure an error again; make lints more consistent I made `intra_doc_link_resolution_failure` warn so that it would properly respect `deny-warnings = false` in `config.toml`. `#[warn]` still become errors with `-D warnings` so I thought this was fine. Turns out however that we don't pass `-D warnings` when running rustdoc, so for additional rustdoc-lints we need to set them to `deny`. Also sue the opportunity to make the lint flags more consistent between libcore, liballoc, libstd. Cc @gnzlbg for the *big* stdsimd update.
Rollup of 6 pull requests Successful merges: - #59648 (Add must_use annotations to Result::is_ok and is_err) - #59748 (Add summary and reference to Rust trademark guide) - #59779 (Uplift `get_def_path` from Clippy) - #59955 (bump stdsimd; make intra_doc_link_resolution_failure an error again; make lints more consistent) - #59978 (rustdoc: Remove default keyword from re-exported trait methods) - #59989 (Fix links to Atomic* in RELEASES.md) Failed merges: r? @ghost
I made
intra_doc_link_resolution_failure
warn so that it would properly respectdeny-warnings = false
inconfig.toml
.#[warn]
still become errors with-D warnings
so I thought this was fine.Turns out however that we don't pass
-D warnings
when running rustdoc, so for additional rustdoc-lints we need to set them todeny
.Also sue the opportunity to make the lint flags more consistent between libcore, liballoc, libstd.
Cc @gnzlbg for the big stdsimd update.