-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2915: Update rust-toolchain to 2021-12-04 r=ppannuto a=lschuermann ### Pull Request Overview This pull request updates the Rust toolchain to version `1.59.0-nightly (efec54529 2021-12-04)`. The motivation for this change is that the `litex-sim-ci` breaks when compiling `elf2tab` on the previous toolchain version: ``` error[E0658]: use of unstable library feature 'proc_macro_is_available' --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.33/src/detection.rs:28:21 | 28 | let available = proc_macro::is_available(); | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #71436 <rust-lang/rust#71436> for more information = help: add `#![feature(proc_macro_is_available)]` to the crate attributes to enable For more information about this error, try `rustc --explain E0658`. error: could not compile `proc-macro2` due to previous error warning: build failed, waiting for other jobs to finish... error: failed to compile `elf2tab v0.8.0`, intermediate artifacts can be found at `/tmp/cargo-installl05bA0` ``` Now, I'm not entirely sure as to why this happens. We haven't upgraded either of the Rust toolchain or `elf2tab`, and -- as far as I understand -- `cargo install elf2tab` should use the `Cargo.lock` file, so dependencies shouldn't change. In any case, this update seems to fix it. Besides the failing `litex-sim-ci` workflow, it seems like a good idea to pin a `rustc` version on which vital tools such as `elf2tab` properly compile. I can also reproduce the `elf2tab` build failure locally while the `rust-toolchain` of the Tock repository is used. ### Testing Strategy This pull request was tested by CI. ### TODO or Help Wanted N/A ### Documentation Updated - [x] ~Updated the relevant files in `/docs`,~ or no updates are required. ### Formatting - [x] Ran `make prepush`. Co-authored-by: Leon Schuermann <leon@is.currently.online>
- Loading branch information
Showing
10 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"rust-client.channel": "nightly-2021-10-05", | ||
"rust-client.channel": "nightly-2021-12-04", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
nightly-2021-10-05 | ||
nightly-2021-12-04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters