-
Notifications
You must be signed in to change notification settings - Fork 114
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
Update Rust version #588
Update Rust version #588
Conversation
Unfortunately this is running into this open rust error rust-lang/rust#64450 tl;dr: Updating our toolchain requires us to use an updated version of rustfmt (as its dependency rustc-ap-syntax_pos required an update to compile), which now imports rustc-ap-syntax_pos using an alias (edit: after a little investigation this might not be the exact root cause), which when targeting WebAssembly causes a rustc ICE. |
@@ -11,7 +11,7 @@ source "$SCRIPTS_DIR/common" | |||
# Note that the chat example cannot be run because the client is interactive. | |||
# TODO(#462): Re-enable chat example, even if it may be just loading the server-side code and not | |||
# interact with it. | |||
readonly RUST_EXAMPLES="$(find examples -mindepth 2 -maxdepth 4 -type d -regex '.*/module.*/rust$' | cut -d'/' -f2 | uniq | grep -v chat)" | |||
readonly RUST_EXAMPLES="$(find examples -mindepth 2 -maxdepth 4 -type d -regex '.*/module.*/rust$' | cut -d'/' -f2 | uniq | grep -v chat | grep -v rustfmt)" |
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.
Could we get a TODO(#NNN) to re-instate the rustfmt example?
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.
Done
@@ -255,7 +255,7 @@ rust_repository_set( | |||
name = "rust_linux_x86_64", | |||
exec_triple = "x86_64-unknown-linux-gnu", | |||
extra_target_triples = [], | |||
iso_date = "2019-11-06", | |||
iso_date = "2020-02-06", |
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.
Could you add a comment here and in the Dockerfile to make sure these values are kept in sync?
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.
Done
Note that the build time now has increased because the cached Docker image is no longer useful (see https://pantheon.corp.google.com/cloud-build/builds/34e7619c-fb81-4323-a0ab-38509de54151;step=1?project=oak-ci ). @blaxill could you run |
Done, I think it should be updated now. |
Similar to #443 but slightly newer nightly (with full component set) and fixes to pass tests
edit: due to this rustc ICE rustfmt example has to be disabled temporarily (
grep -v rustfmt
in run_examples)Checklist
cover any TODOs and/or unfinished work.
construction.