-
Notifications
You must be signed in to change notification settings - Fork 587
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
refactor: bump toolchain to 2024-07-19 #18470
Conversation
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
As mentioned in #17179, we might need to change all TAITs to bump toolchain... (unless rust-lang/rust#128440 is landed) |
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.
Rest LGTM.
Do we consider bumping to the latest toolchain by the way?
@@ -102,7 +102,7 @@ impl BloomFilterReader { | |||
true | |||
} else { | |||
let nbits = self.data.bit_len(); | |||
let delta = (h >> 17) | (h << 15); | |||
let delta = h.rotate_left(15); |
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.
Do we forget the rotate_right(17)?
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.
IIUC, with u32 and 17 + 15 = 32, this operation equals to directly rotate_left(15)
. (clippy also recommends it.
Actually it's not that many. I have fixed all the involved TAIT. |
risingwave/src/frontend/src/optimizer/rule/index_selection_rule.rs Lines 965 to 974 in d0f47d1
@chenzl25 Is this code still using? It seems a dead code. |
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
https://buildkite.com/risingwavelabs/pull-request/builds/57645#0191dac7-247a-4bc7-9185-5d0c3993b6bb @xxchan How to bump rust toolchain for https://github.com/risingwavelabs/clippy? UPDATES: Found the docs, let me try. |
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
UPDATES: dylint fixed via risingwavelabs/clippy#1 |
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
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.
Thank you!!
Remember to bump CI image before merging, so that we don't install rust toolchain repeatedly in CI
Wait, I think we can bump to a newer version. No need to stick to latest stable 🤔 |
Agreed. Let me try nightly-2024-09-10. BTW, are you familiar with the the issue in the madsim integration test?
The instance keep failing fetching the components of the toolchain over and over again. Is it related to the CI image? |
There are some false-positive cases with elided named lifetime. |
Let's just upgrade the toolchain to 2024-07-19. I need it for some stable crates with 1.81.0. |
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
The rust toolchain version 1.81.0 is stable, which was branched from 2024-07-19.
Let's bump our toolchain version. Otherwise we cannot use lib whose MSRV is stable 1.81.0.
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.