mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 17:44:28 +00:00
Under the RFC, it's not an error to register tool multiple times, but it is an error to register "rustc" tool.
12 lines
326 B
Rust
12 lines
326 B
Rust
#![feature(register_tool)]
|
|
// Registering predefined tool is okay.
|
|
#![register_tool(clippy)]
|
|
#![register_attribute_tool(miri)]
|
|
#![register_lint_tool(rustfmt)]
|
|
#![register_tool(diagnostic)]
|
|
#![register_attribute_tool(rust_analyzer)]
|
|
// Registering "rustc" is an error.
|
|
#![register_tool(rustc)] //~ ERROR reserved
|
|
|
|
fn main() {}
|