Remove support for register_attr

This was removed in rustc in 2022: https://github.com/rust-lang/rust/pull/101123

Closes #20525.
This commit is contained in:
Wilfred Hughes 2025-09-08 15:56:56 +01:00
parent a91fb2b9a1
commit bca5d59627
7 changed files with 14 additions and 62 deletions

View file

@ -144,16 +144,13 @@ macro_rules! concat { () => {} }
}
#[test]
fn register_attr_and_tool() {
cov_mark::check!(register_attr);
fn register_tool() {
cov_mark::check!(register_tool);
check_diagnostics(
r#"
#![register_tool(tool)]
#![register_attr(attr)]
#[tool::path]
#[attr]
struct S;
"#,
);