diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-06-24 15:06:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-24 15:06:21 +0200 |
| commit | 9d24ecc37b206ca73e427ba8c7f17f35d5c5817b (patch) | |
| tree | b7e7c37da7c7ab2c3952ecc70c56ba41274a0ab4 /compiler/rustc_resolve/src | |
| parent | 2c243d957008f5909f7a4af19e486ea8a3814be7 (diff) | |
| parent | 339015920d0787ea14aee05fca2c205683c525f9 (diff) | |
| download | rust-9d24ecc37b206ca73e427ba8c7f17f35d5c5817b.tar.gz rust-9d24ecc37b206ca73e427ba8c7f17f35d5c5817b.zip | |
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 https://github.com/rust-lang/rust-analyzer/issues/11556).
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/macros.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/rustc_resolve/src/macros.rs b/compiler/rustc_resolve/src/macros.rs index 87794d11cea..8763e7aec43 100644 --- a/compiler/rustc_resolve/src/macros.rs +++ b/compiler/rustc_resolve/src/macros.rs @@ -140,9 +140,10 @@ pub(crate) fn registered_tools(tcx: TyCtxt<'_>, (): ()) -> RegisteredTools { } } } - // We implicitly add `rustfmt`, `clippy`, `diagnostic` to known tools, - // but it's not an error to register them explicitly. - let predefined_tools = [sym::clippy, sym::rustfmt, sym::diagnostic, sym::miri]; + // We implicitly add `rustfmt`, `clippy`, `diagnostic`, `miri` and `rust_analyzer` to known + // tools, but it's not an error to register them explicitly. + let predefined_tools = + [sym::clippy, sym::rustfmt, sym::diagnostic, sym::miri, sym::rust_analyzer]; registered_tools.extend(predefined_tools.iter().cloned().map(Ident::with_dummy_span)); registered_tools } |
