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).
This commit is contained in:
commit
9d24ecc37b
@ -140,9 +140,10 @@ pub(crate) fn registered_tools(tcx: TyCtxt<'_>, (): ()) -> RegisteredTools {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// We implicitly add `rustfmt`, `clippy`, `diagnostic` to known tools,
|
// We implicitly add `rustfmt`, `clippy`, `diagnostic`, `miri` and `rust_analyzer` to known
|
||||||
// but it's not an error to register them explicitly.
|
// tools, but it's not an error to register them explicitly.
|
||||||
let predefined_tools = [sym::clippy, sym::rustfmt, sym::diagnostic, sym::miri];
|
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.extend(predefined_tools.iter().cloned().map(Ident::with_dummy_span));
|
||||||
registered_tools
|
registered_tools
|
||||||
}
|
}
|
||||||
|
@ -1559,6 +1559,7 @@
|
|||||||
rust_2018_preview,
|
rust_2018_preview,
|
||||||
rust_2021,
|
rust_2021,
|
||||||
rust_2024,
|
rust_2024,
|
||||||
|
rust_analyzer,
|
||||||
rust_begin_unwind,
|
rust_begin_unwind,
|
||||||
rust_cold_cc,
|
rust_cold_cc,
|
||||||
rust_eh_catch_typeinfo,
|
rust_eh_catch_typeinfo,
|
||||||
|
Loading…
Reference in New Issue
Block a user