Skip to content

Commit 2f96fbe

Browse files
oli-obkfee1-dead
andcommitted
update diagnostic message on removed attribute
Co-authored-by: fee1-dead <ent3rm4n@gmail.com>
1 parent 0e3d8d2 commit 2f96fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_passes/src/check_attr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2181,7 +2181,7 @@ impl CheckAttrVisitor<'_> {
21812181
attr.name_or_empty()
21822182
)
21832183
} else if attr.name_or_empty() == sym::default_method_body_is_const {
2184-
format!("`default_method_body_is_const` has been removed")
2184+
format!("`default_method_body_is_const` has been replaced with `#[const_trait]` on traits")
21852185
} else {
21862186
return;
21872187
};

0 commit comments

Comments
 (0)