File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 10
10
11
11
// Unstable entities should be caught in import lists
12
12
13
+ // aux-build:lint_stability.rs
14
+
13
15
#![ allow( unused_imports) ]
14
16
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
17
21
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 '
19
23
20
24
fn main ( ) {
21
25
}
Original file line number Diff line number Diff line change 10
10
11
11
// Prefix in imports with empty braces should be resolved and checked privacy, stability, etc.
12
12
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
15
19
16
20
fn main ( ) { }
You can’t perform that action at this time.
0 commit comments