Skip to content

Commit

Permalink
Move rust-analyzer to DUP_TOOLS
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ehuss committed Jul 19, 2022
1 parent b5639d3 commit 205c451
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ pub static TOOLS: &[&str] = &[
"rust-gdb",
"rust-gdbgui",
"rls",
"rust-analyzer",
"cargo-clippy",
"clippy-driver",
"cargo-miri",
Expand All @@ -36,7 +35,7 @@ pub static TOOLS: &[&str] = &[
// Tools which are commonly installed by Cargo as well as rustup. We take a bit
// more care with these to ensure we don't overwrite the user's previous
// installation.
pub static DUP_TOOLS: &[&str] = &["rustfmt", "cargo-fmt"];
pub static DUP_TOOLS: &[&str] = &["rust-analyzer", "rustfmt", "cargo-fmt"];

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

0 comments on commit 205c451

Please sign in to comment.