update diagnostic message on removed attribute

Co-authored-by: fee1-dead <ent3rm4n@gmail.com>
This commit is contained in:
Oli Scherer 2022-05-16 22:02:48 +02:00 committed by Oli Scherer
parent 0e3d8d2b13
commit 2f96fbe220

View file

@ -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;
};