Skip to content

Commit 9d24ecc

Browse files
authored
Rollup merge of #125241 - Veykril:tool-rust-analyzer, r=davidtwco
Add `rust_analyzer` as a predefined tool Given all the other rust-lang tools have it, I'd expect r-a to have it too. (we have a few ideas for using this rust-lang/rust-analyzer#11556).
2 parents 2c243d9 + 3390159 commit 9d24ecc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

compiler/rustc_resolve/src/macros.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,10 @@ pub(crate) fn registered_tools(tcx: TyCtxt<'_>, (): ()) -> RegisteredTools {
140140
}
141141
}
142142
}
143-
// We implicitly add `rustfmt`, `clippy`, `diagnostic` to known tools,
144-
// but it's not an error to register them explicitly.
145-
let predefined_tools = [sym::clippy, sym::rustfmt, sym::diagnostic, sym::miri];
143+
// We implicitly add `rustfmt`, `clippy`, `diagnostic`, `miri` and `rust_analyzer` to known
144+
// tools, but it's not an error to register them explicitly.
145+
let predefined_tools =
146+
[sym::clippy, sym::rustfmt, sym::diagnostic, sym::miri, sym::rust_analyzer];
146147
registered_tools.extend(predefined_tools.iter().cloned().map(Ident::with_dummy_span));
147148
registered_tools
148149
}

compiler/rustc_span/src/symbol.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1559,6 +1559,7 @@ symbols! {
15591559
rust_2018_preview,
15601560
rust_2021,
15611561
rust_2024,
1562+
rust_analyzer,
15621563
rust_begin_unwind,
15631564
rust_cold_cc,
15641565
rust_eh_catch_typeinfo,

0 commit comments

Comments
 (0)