mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
update diagnostic message on removed attribute
Co-authored-by: fee1-dead <ent3rm4n@gmail.com>
This commit is contained in:
parent
0e3d8d2b13
commit
2f96fbe220
@ -2181,7 +2181,7 @@ impl CheckAttrVisitor<'_> {
|
||||
attr.name_or_empty()
|
||||
)
|
||||
} else if attr.name_or_empty() == sym::default_method_body_is_const {
|
||||
format!("`default_method_body_is_const` has been removed")
|
||||
format!("`default_method_body_is_const` has been replaced with `#[const_trait]` on traits")
|
||||
} else {
|
||||
return;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user