You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I launch system installed rustc or clippy-driver in the librustc_driver's get_codegen_sysroot happened next:
filesearch::get_or_default_sysroot gets current binary /usr/bin/clippy-driver-9999 and gets sysroot /usr from it.
then it concatenates sysroot with relative libdir from filesearch::relative_target_lib_pathlib64/rust-9999/rustlib/x86_64-unknown-linux-gnu/lib and replace last element with codegen-backends
Correct codegen /usr/lib64/rust-9999/rustlib/x86_64-unknown-linux-gnu/codegen-backends folder found.
When I launch ./target/release/clippy-driver from /tmp/rust-clippy in won't work:
filesearch::get_or_default_sysroot gets current binary /tmp/rust-clippy/target/release/clippy-driver and gets sysroot /tmp/rust-clippy/target from it.
then it concatenates sysroot with relative libdir from filesearch::relative_target_lib_pathlib64/rust-9999/rustlib/x86_64-unknown-linux-gnu/lib and replace last element with codegen-backends /tmp/rust-clippy/target/lib64/rust-9999/rustlib/x86_64-unknown-linux-gnu/codegen-backends isn't correct folder.
But also it tries /usr/lib64 sysroot which also incorrect.
While looking for other #2874 solutions found another bug. Compiled with
rustc
clippy
correctly finds codegen folder while built from sources doesn't:rustc config.toml:
OS: Gentoo Linux AMD64
Clippy from sources rev: 691e5e7
Rustc rev: rust-lang/rust@e7b4bc3
The text was updated successfully, but these errors were encountered: