Skip to content

Commit

Permalink
update diagnostic message on removed attribute
Browse files Browse the repository at this point in the history
Co-authored-by: fee1-dead <[email protected]>
  • Loading branch information
oli-obk and fee1-dead committed May 30, 2022
1 parent 0e3d8d2 commit 2f96fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_passes/src/check_attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 2f96fbe

Please sign in to comment.