Skip to content

Commit 205c451

Browse files
committed
Move rust-analyzer to DUP_TOOLS
The rust-analyzer documentation includes the step `cargo install` into `~/.cargo/bin` when building from source. Since this has a chance of accidentally overriding the user's copy, move this to DUP_TOOLS.
1 parent b5639d3 commit 205c451

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ pub static TOOLS: &[&str] = &[
2727
"rust-gdb",
2828
"rust-gdbgui",
2929
"rls",
30-
"rust-analyzer",
3130
"cargo-clippy",
3231
"clippy-driver",
3332
"cargo-miri",
@@ -36,7 +35,7 @@ pub static TOOLS: &[&str] = &[
3635
// Tools which are commonly installed by Cargo as well as rustup. We take a bit
3736
// more care with these to ensure we don't overwrite the user's previous
3837
// installation.
39-
pub static DUP_TOOLS: &[&str] = &["rustfmt", "cargo-fmt"];
38+
pub static DUP_TOOLS: &[&str] = &["rust-analyzer", "rustfmt", "cargo-fmt"];
4039

4140
// If the given name is one of the tools we proxy.
4241
pub fn is_proxyable_tools(tool: &str) -> Result<()> {

0 commit comments

Comments
 (0)