diff options
| author | bors <bors@rust-lang.org> | 2024-06-24 13:42:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-24 13:42:05 +0000 |
| commit | d371d17496f2ce3a56da76aa083f4ef157572c20 (patch) | |
| tree | 4e6530dc971d74b1ca867dbe24ee16ae082ac432 /compiler/rustc_resolve/src/macros.rs | |
| parent | 06c072f158c91296a2f802f2a10c9fe2499f314d (diff) | |
| parent | a80ee9159b053f27fdf3e974aab44f2dc74b2868 (diff) | |
| download | rust-d371d17496f2ce3a56da76aa083f4ef157572c20.tar.gz rust-d371d17496f2ce3a56da76aa083f4ef157572c20.zip | |
Auto merge of #126900 - matthiaskrgr:rollup-24ah97b, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - #125241 (Add `rust_analyzer` as a predefined tool) - #126213 (Update docs for AtomicBool/U8/I8 with regard to alignment) - #126414 (Tier 2 std support must always be known) - #126882 (Special case when a code line only has multiline span starts) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_resolve/src/macros.rs')
| -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 } |
