update diagnostic message on removed attribute
Co-authored-by: fee1-dead <ent3rm4n@gmail.com>
This commit is contained in:
parent
0e3d8d2b13
commit
2f96fbe220
1 changed files with 1 additions and 1 deletions
|
@ -2181,7 +2181,7 @@ impl CheckAttrVisitor<'_> {
|
||||||
attr.name_or_empty()
|
attr.name_or_empty()
|
||||||
)
|
)
|
||||||
} else if attr.name_or_empty() == sym::default_method_body_is_const {
|
} 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 {
|
} else {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue