-
Notifications
You must be signed in to change notification settings - Fork 174
Update to Rust edition 2024 #299
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
base: master
Are you sure you want to change the base?
Conversation
Looks like we need to update all the crates at once... I will keep doing this when I have time |
d4ae2d6
to
ae39850
Compare
riscv-semihosting
to edition 2024df2e6e1
to
50b9557
Compare
@rmsyn I think it is done. The only test failing is a nightly clippy lint that is still unstable. |
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.
@rmsyn I think it is done. The only test failing is a nightly clippy lint that is still unstable.
Looks like I can't comment on the offending code, because you didn't make edits to it. Here is my suggestion:
// riscv-rt/macros/src/lib.rs:91
#[cfg(feature = "u-boot")]
if let Some(argument) = f.sig.inputs.get(0) {
if let Some(message) = check_argument_type(argument, "c_int") {
return message;
}
}
// instead do
#[cfg(feature = "u-boot")]
if let Some(message) = f.sig.inputs.get(0).and_then(|argument| check_argument_type(argument, "c_int")) {
return message;
}
// same as above
#[cfg(feature = "u-boot")]
if let Some(argument) = f.sig.inputs.get(1) {
if let Some(message) = check_argument_type(argument, "*const *const c_char") {
return message;
}
}
// should be
#[cfg(feature = "u-boot")]
if let Some(message) = f.sig.inputs.get(1).and_then(|argument| check_argument_type(argument, "*const *const c_char")) {
return message;
}
Edit: here is a branch with formatted changes: https://github.com/rust-embedded/riscv/compare/edition-2024...rmsyn:riscv:edition-2024-lint-fixes?expand=1
50b9557
to
a6439d2
Compare
@romancardenas fixed the lints in #301 |
Please, point to this branch in this PR and I will merge it. I think we should leave this PR updated and ready to merge as soon as we decide to go with edition 2024 |
After the discussion in today's meeting about updating Linking the |
Yep, we can leave this PR open and updated to upgrade to edition 2024 whenever the WG decides it is worth it. |
This PR is being prevented from merging because it presents one of the blocking labels: work in progress, do not merge. |
3dad2ac
to
4cbdce4
Compare
No description provided.