File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
compiler/rustc_passes/src
src/test/ui/stability-attribute Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -561,10 +561,10 @@ impl Visitor<'tcx> for Checker<'tcx> {
561
561
INEFFECTIVE_UNSTABLE_TRAIT_IMPL ,
562
562
item. hir_id ,
563
563
span,
564
- |lint| lint. build (
565
- "An `#[unstable]` annotation here has no effect. \
566
- See issue #55436 <https://github.com/rust-lang/rust/issues/55436> for more information." ,
567
- ) . emit ( )
564
+ |lint| lint
565
+ . build ( "an `#[unstable]` annotation here has no effect" )
566
+ . note ( "see issue #55436 <https://github.com/rust-lang/rust/issues/55436> for more information" )
567
+ . emit ( )
568
568
) ;
569
569
}
570
570
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ impl StableTrait for UnstableType {}
22
22
impl UnstableTrait for StableType { }
23
23
24
24
#[ unstable( feature = "x" , issue = "none" ) ]
25
- //~^ ERROR An `#[unstable]` annotation here has no effect.
25
+ //~^ ERROR an `#[unstable]` annotation here has no effect [rustc::ineffective_unstable_trait_impl]
26
26
impl StableTrait for StableType { }
27
27
28
28
fn main ( ) { }
Original file line number Diff line number Diff line change 1
- error: An `#[unstable]` annotation here has no effect. See issue #55436 <https://github.com/rust-lang/rust/issues/55436> for more information.
1
+ error: an `#[unstable]` annotation here has no effect
2
2
--> $DIR/stability-attribute-trait-impl.rs:24:1
3
3
|
4
4
LL | #[unstable(feature = "x", issue = "none")]
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `#[deny(rustc::ineffective_unstable_trait_impl)]` on by default
8
+ = note: see issue #55436 <https://github.com/rust-lang/rust/issues/55436> for more information
8
9
9
10
error: aborting due to previous error
10
11
You can’t perform that action at this time.
0 commit comments