File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1010
1111// Unstable entities should be caught in import lists
1212
13+ // aux-build:lint_stability.rs
14+
1315#![ allow( unused_imports) ]
1416
15- use std:: thread:: { catch_panic, ScopedKey } ; //~ ERROR use of unstable library feature 'catch_panic'
16- //~^ ERROR use of unstable library feature 'scoped_tls'
17+ extern crate lint_stability;
18+
19+ use lint_stability:: { unstable, deprecated} ; //~ ERROR use of unstable library feature 'test_feature'
20+ //~^ WARNING use of deprecated item
1721
18- use std :: rt :: { self } ; //~ ERROR use of unstable library feature 'rt '
22+ use lint_stability :: unstable :: { self as u } ; //~ ERROR use of unstable library feature 'test_feature '
1923
2024fn main ( ) {
2125}
Original file line number Diff line number Diff line change 1010
1111// Prefix in imports with empty braces should be resolved and checked privacy, stability, etc.
1212
13- use std:: rt:: { } ; //~ ERROR use of unstable library feature 'rt'
14- use std:: { } ; // OK
13+ // aux-build:lint_stability.rs
14+
15+ extern crate lint_stability;
16+
17+ use lint_stability:: UnstableStruct :: { } ; //~ ERROR use of unstable library feature 'test_feature'
18+ use lint_stability:: StableStruct :: { } ; // OK
1519
1620fn main ( ) { }
You can’t perform that action at this time.
0 commit comments