@@ -140,9 +140,10 @@ pub(crate) fn registered_tools(tcx: TyCtxt<'_>, (): ()) -> RegisteredTools { |
|
|
140 |
140 |
} |
141 |
141 |
} |
142 |
142 |
} |
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]; |
146 |
147 |
registered_tools.extend(predefined_tools.iter().cloned().map(Ident::with_dummy_span)); |
147 |
148 |
registered_tools |
148 |
149 |
} |