Open
Description
Summary
./x clippy --fix
does not work, but ./x clippy
does.
Command used
./x clippy --fix -- --allow clippy::all --warn clippy::manual_div_ceil
Expected behaviour
It works, and applies fixes to both the standard library and the compiler code base
Actual behaviour
Building bootstrap
Finished `dev` profile [unoptimized] target(s) in 0.03s
Building compiler artifacts (stage0 -> stage1, x86_64-unknown-linux-gnu)
Finished `release` profile [optimized] target(s) in 0.15s
Creating a sysroot for stage1 compiler (use `rustup toolchain link 'name' build/host/stage1`)
Building tool clippy-driver (stage0 -> stage1, x86_64-unknown-linux-gnu)
Finished `release` profile [optimized] target(s) in 0.10s
Building tool cargo-clippy (stage0 -> stage1, x86_64-unknown-linux-gnu)
Finished `release` profile [optimized] target(s) in 0.10s
Linting stage1 library {alloc, compiler_builtins, core, panic_abort, panic_unwind, proc_macro, std, sysroot, test, unwind} (x86_64-unknown-linux-gnu)
Compiling compiler_builtins v0.1.160 (/home/folkertdev/rust/rust/library/compiler-builtins/compiler-builtins)
Compiling std v0.0.0 (/home/folkertdev/rust/rust/library/std)
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-unknown-linux-gnu` target may not be installed
= help: consider adding the standard library to the sysroot with `x build library --target x86_64-unknown-linux-gnu`
= help: consider building the standard library from source with `cargo build -Zbuild-std`
For more information about this error, try `rustc --explain E0463`.
Bootstrap configuration (bootstrap.toml)
Nothing special
Operating system
Linux Mint 22.0.0 (wilma) [64-bit]
HEAD
Additional context
The --fix
seems to cause the issue. Without --fix
, the command works fine, reporting clippy warnings in the standard library and the compiler code base.