Skip to content

Commit 1795b29

Browse files
authored
Rollup merge of rust-lang#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 1d96de2 + 4c5e954 commit 1795b29

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: compiler/rustc_resolve/src/macros.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ 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 = [sym::clippy, sym::rustfmt, sym::diagnostic, sym::miri, sym::rust_analyzer];
146146
registered_tools.extend(predefined_tools.iter().cloned().map(Ident::with_dummy_span));
147147
registered_tools
148148
}

Diff for: compiler/rustc_span/src/symbol.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1557,6 +1557,7 @@ symbols! {
15571557
rust_2018_preview,
15581558
rust_2021,
15591559
rust_2024,
1560+
rust_analyzer,
15601561
rust_begin_unwind,
15611562
rust_cold_cc,
15621563
rust_eh_catch_typeinfo,

0 commit comments

Comments
 (0)