-
Notifications
You must be signed in to change notification settings - Fork 29
chore: update toolchain #309
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
Conversation
This reverts commit ab2c19d.
I extracted these changes from #309 to make that PR's diff smaller and thus easier to review. The changes were suggested by the new version of clippy.
At least those warnings that show up when running ``` cargo check --workspace --exclude ceno_rt --exclude singer-pro ```
Instead of whitelisting a few packages to run clippy on, we just blacklist the two where it's not expected to work.
… matthias/clippy-everywhere
… matthias/clippy-everywhere
0a54936
to
69c76b8
Compare
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.
See one question.
Also please announce or coordinate on Slack because that may cause lots of merge conflicts.
wrap_comments = false | ||
comment_width = 300 | ||
imports_granularity = "Crate" | ||
max_width = 100 | ||
newline_style = "Unix" | ||
normalize_comments = true | ||
reorder_imports = true |
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 is now the default anyway.
@@ -122,15 +122,6 @@ impl<E: ExtensionField> Circuit<E> { | |||
let mut input_paste_from_consts_in = Vec::new(); | |||
let mut max_in_wit_num_vars: Option<usize> = None; | |||
for (ty, in_cell_ids) in in_cell_ids.iter() { | |||
#[cfg(feature = "debug")] |
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.
@naure I removed this, because clippy complained that we don't actually have a debug
feature, and when I moved to using #[cfg(debug_assertions)]
instead, I noticed that the code here is actually broken and doesn't compile.
Our
rust-toolchain
specifiesnightly-2024-05-02
. That one comes withrustfmt
version 1.7. But ourrustfmt.toml
usesstyle_edition = "2024"
; but2024
was only added in version 1.8. So in this PR we update to a more recent nightly toolchain.Most of the changes in here are from our specified
rustfmt.toml
config actually applying. The main thing that's causing a lot of diff is version sorting of imports, which changes how letter case is handled for comparison.Fixes #297
I extracted some clippy suggestions into #318 to make this PR smaller.