-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Explain use of nightly clippy over whole monorepo #31833
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -77,7 +77,12 @@ _ ci/order-crates-for-publishing.py | |||||||||||||||||||||||||
|
||||||||||||||||||||||||||
nightly_clippy_allows=(--allow=clippy::redundant_clone) | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
# run nightly clippy for `sdk/` as there's a moderate amount of nightly-only code there | ||||||||||||||||||||||||||
# use nightly clippy as frozen-abi proc-macro generates a lot of code across | ||||||||||||||||||||||||||
# various crates in this whole mono-repo. Likewise, frozen-abi(-macro) crates' | ||||||||||||||||||||||||||
# unit tests are only compiled under nightly. | ||||||||||||||||||||||||||
# similarly nightly is desired to run clippy over all of bench files because | ||||||||||||||||||||||||||
# the bench itself isn't stabilized yet... | ||||||||||||||||||||||||||
# ref: https://github.com/rust-lang/rust/issues/66287 | ||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Comment nits There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not clear from this comment why "frozen-abi proc-macro generating code" necessitates nightly clippy. Can you expand? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hehe, nice question. how about this?: dda0127 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Much better, thank you! |
||||||||||||||||||||||||||
_ scripts/cargo-for-all-lock-files.sh -- "+${rust_nightly}" clippy --workspace --all-targets --features dummy-for-ci-check -- \ | ||||||||||||||||||||||||||
--deny=warnings \ | ||||||||||||||||||||||||||
--deny=clippy::default_trait_access \ | ||||||||||||||||||||||||||
|
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.
the
./sdk
reference was arguably staleas a matter of fact, this particular line is added at #8012 (comment) but frozen abi is moved out of
./sdk
at #13008