about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorJonathan Birk <jona@jbirk.de>2024-09-26 17:10:03 +0000
committerJonathan Birk <jona@jbirk.de>2024-09-26 17:17:11 +0000
commitb89c6204da4331d5d7c181e5c999cd34bfc54e10 (patch)
tree7ca1532fc7a25e8772689f7fd3aedb31369cc6ef /compiler/rustc_hir_analysis/src
parentca94dd5beac8252f03047a1eeb6a7c456b467c03 (diff)
downloadrust-b89c6204da4331d5d7c181e5c999cd34bfc54e10.tar.gz
rust-b89c6204da4331d5d7c181e5c999cd34bfc54e10.zip
Make new information notes instead of labels
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
-rw-r--r--compiler/rustc_hir_analysis/src/errors.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors.rs b/compiler/rustc_hir_analysis/src/errors.rs
index 9488f2f86cb..25b79518dbb 100644
--- a/compiler/rustc_hir_analysis/src/errors.rs
+++ b/compiler/rustc_hir_analysis/src/errors.rs
@@ -1440,27 +1440,27 @@ pub enum OnlyCurrentTraits {
     #[diag(hir_analysis_only_current_traits_outside, code = E0117)]
     Outside {
         #[primary_span]
-        #[label(hir_analysis_only_current_traits_label)]
-        #[label(hir_analysis_only_current_traits_label_more_info)]
         span: Span,
+        #[note(hir_analysis_only_current_traits_note_uncovered)]
+        #[note(hir_analysis_only_current_traits_note_more_info)]
         #[note(hir_analysis_only_current_traits_note)]
         note: (),
     },
     #[diag(hir_analysis_only_current_traits_primitive, code = E0117)]
     Primitive {
         #[primary_span]
-        #[label(hir_analysis_only_current_traits_label)]
-        #[label(hir_analysis_only_current_traits_label_more_info)]
         span: Span,
+        #[note(hir_analysis_only_current_traits_note_uncovered)]
+        #[note(hir_analysis_only_current_traits_note_more_info)]
         #[note(hir_analysis_only_current_traits_note)]
         note: (),
     },
     #[diag(hir_analysis_only_current_traits_arbitrary, code = E0117)]
     Arbitrary {
         #[primary_span]
-        #[label(hir_analysis_only_current_traits_label)]
-        #[label(hir_analysis_only_current_traits_label_more_info)]
         span: Span,
+        #[note(hir_analysis_only_current_traits_note_uncovered)]
+        #[note(hir_analysis_only_current_traits_note_more_info)]
         #[note(hir_analysis_only_current_traits_note)]
         note: (),
     },