Open
Description
A part of #44690.
Some tools (rustfmt
and clippy
) used in tool attributes are hardcoded in the compiler.
We need some way to introduce them without hardcoding as well.
#66070 introduced a way to do it with a crate level attribute:
#![register_tool(my_tool)]
#[my_tool::anything] // OK
fn main() {}
The previous attempt to introduce them through command line (#57921) met some resistance.
This probably needs to go through an RFC before stabilization.
Metadata
Metadata
Assignees
Labels
Area: Attributes (`#[…]`, `#![…]`)Blocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFC`#![feature(register_tool)]`Status: There are blocking design concerns.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the language team, which will review and decide on the PR/issue.This change is insta-stable, or significant enough to need a team FCP to proceed.