Skip to content

Commit 28d62f0

Browse files
committed
Don't take rustc-literal-escaper from sysroot
This resulted in the following error for me: error[E0464]: multiple candidates for `rlib` dependency `rustc_literal_escaper` found --> clippy_dev/src/lib.rs:25:1 | 25 | extern crate rustc_literal_escaper; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: candidate #1: /home/pkrones/.rustup/toolchains/nightly-2025-12-25-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_literal_escaper-4f30574e01c3dad1.rlib = note: candidate rust-lang#2: /home/pkrones/.rustup/toolchains/nightly-2025-12-25-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_literal_escaper-c8a0e29ad1040cee.rmeta Other tools in the Rust repo also take that as an explicit dependency, like rust-analyzer or lint-docs.
1 parent b460a1d commit 28d62f0

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

clippy_dev/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ clap = { version = "4.4", features = ["derive"] }
1010
indoc = "1.0"
1111
itertools = "0.12"
1212
opener = "0.7"
13+
rustc-literal-escaper = "0.0.5"
1314
walkdir = "2.3"
1415

1516
[package.metadata.rust-analyzer]

clippy_dev/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ extern crate rustc_arena;
2222
#[expect(unused_extern_crates, reason = "required to link to rustc crates")]
2323
extern crate rustc_driver;
2424
extern crate rustc_lexer;
25-
extern crate rustc_literal_escaper;
2625

2726
pub mod deprecate_lint;
2827
pub mod dogfood;

0 commit comments

Comments
 (0)