Skip to content

Commit 3390159

Browse files
committed
Add rust_analyzer as a predefined tool
1 parent 7b06810 commit 3390159

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
@@ -1544,6 +1544,7 @@ symbols! {
15441544
rust_2018_preview,
15451545
rust_2021,
15461546
rust_2024,
1547+
rust_analyzer,
15471548
rust_begin_unwind,
15481549
rust_cold_cc,
15491550
rust_eh_catch_typeinfo,

0 commit comments

Comments
 (0)