about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOli Scherer <github35764891676564198441@oli-obk.de>2022-05-16 22:02:48 +0200
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-05-30 08:52:25 +0000
commit2f96fbe2200d5928faafdf068b591170b6a127b7 (patch)
treea6ce32539aa79f95382ebfdcdf9c99103a37b4d1
parent0e3d8d2b137227d6cee74c80bf9a47620cd0e365 (diff)
downloadrust-2f96fbe2200d5928faafdf068b591170b6a127b7.tar.gz
rust-2f96fbe2200d5928faafdf068b591170b6a127b7.zip
update diagnostic message on removed attribute
Co-authored-by: fee1-dead <ent3rm4n@gmail.com>
-rw-r--r--compiler/rustc_passes/src/check_attr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs
index 7753c20d3b5..18e6445636d 100644
--- a/compiler/rustc_passes/src/check_attr.rs
+++ b/compiler/rustc_passes/src/check_attr.rs
@@ -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;
         };