This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -758,8 +758,7 @@ where
758
758
if sess. is_nightly_build ( ) {
759
759
diag. help ( "add `#![feature(deprecated_suggestion)]` to the crate root" ) ;
760
760
}
761
- // FIXME(jhpratt) change this to an actual tracking issue
762
- diag. note ( "see #XXX for more details" ) . emit ( ) ;
761
+ diag. note ( "see #94785 for more details" ) . emit ( ) ;
763
762
}
764
763
765
764
if !get ( mi, & mut suggestion) {
@@ -772,10 +771,10 @@ where
772
771
meta. span ( ) ,
773
772
AttrError :: UnknownMetaItem (
774
773
pprust:: path_to_string ( & mi. path ) ,
775
- if attr. has_name ( sym:: deprecated) {
776
- & [ "since" , "note" ]
777
- } else {
774
+ if sess. features_untracked ( ) . deprecated_suggestion {
778
775
& [ "since" , "note" , "suggestion" ]
776
+ } else {
777
+ & [ "since" , "note" ]
779
778
} ,
780
779
) ,
781
780
) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ LL | #[deprecated(suggestion = "foo")]
5
5
| ^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= help: add `#![feature(deprecated_suggestion)]` to the crate root
8
- = note: see #XXX for more details
8
+ = note: see #94785 for more details
9
9
10
10
error: aborting due to previous error
11
11
You can’t perform that action at this time.
0 commit comments