facebookincubator / fastmod

A fast partial replacement for the codemod tool
Apache License 2.0
1.68k stars 42 forks source link

Compilation error #39

Closed Amxx closed 1 year ago

Amxx commented 1 year ago

When compiling, I get the following error

error: edition 2021 is unstable and only available with -Z unstable-options.

error: could not compile `crossterm`

Caused by:
  process didn't exit successfully: `rustc --crate-name crossterm --edition=2021 /home/amxx/.cargo/registry/src/github.com-1ecc6299db9ec823/crossterm-0.24.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' -C metadata=e0e88cdfb7629f77 -C extra-filename=-e0e88cdfb7629f77 --out-dir /tmp/fastmod/target/release/deps -L dependency=/tmp/fastmod/target/release/deps --extern bitflags=/tmp/fastmod/target/release/deps/libbitflags-b1998aea2bb93e0b.rmeta --extern libc=/tmp/fastmod/target/release/deps/liblibc-a0aa1b259a998b18.rmeta --extern mio=/tmp/fastmod/target/release/deps/libmio-c753201384e66968.rmeta --extern parking_lot=/tmp/fastmod/target/release/deps/libparking_lot-3f7e58475b5e1462.rmeta --extern signal_hook=/tmp/fastmod/target/release/deps/libsignal_hook-5fa19eae6b6a1422.rmeta --extern signal_hook_mio=/tmp/fastmod/target/release/deps/libsignal_hook_mio-8af779fa7545dfd1.rmeta --cap-lints allow` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: build failed
Amxx commented 1 year ago

I also tried

$ cargo build --release -Z unstable-options
error: the `-Z` flag is only accepted on the nightly channel of Cargo, but this is the `stable` channel
See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information about Rust release channels.
Amxx commented 1 year ago

My bad, I had two competing installs of rust and the old one was taking priority.