mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Don't use std in stability tests
This commit is contained in:
parent
1599c1675f
commit
b44cb01bd7
@ -10,12 +10,16 @@
|
|||||||
|
|
||||||
// Unstable entities should be caught in import lists
|
// Unstable entities should be caught in import lists
|
||||||
|
|
||||||
|
// aux-build:lint_stability.rs
|
||||||
|
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use std::thread::{catch_panic, ScopedKey}; //~ ERROR use of unstable library feature 'catch_panic'
|
extern crate lint_stability;
|
||||||
//~^ ERROR use of unstable library feature 'scoped_tls'
|
|
||||||
|
|
||||||
use std::rt::{self}; //~ ERROR use of unstable library feature 'rt'
|
use lint_stability::{unstable, deprecated}; //~ ERROR use of unstable library feature 'test_feature'
|
||||||
|
//~^ WARNING use of deprecated item
|
||||||
|
|
||||||
|
use lint_stability::unstable::{self as u}; //~ ERROR use of unstable library feature 'test_feature'
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,11 @@
|
|||||||
|
|
||||||
// Prefix in imports with empty braces should be resolved and checked privacy, stability, etc.
|
// Prefix in imports with empty braces should be resolved and checked privacy, stability, etc.
|
||||||
|
|
||||||
use std::rt::{}; //~ ERROR use of unstable library feature 'rt'
|
// aux-build:lint_stability.rs
|
||||||
use std::{}; // OK
|
|
||||||
|
extern crate lint_stability;
|
||||||
|
|
||||||
|
use lint_stability::UnstableStruct::{}; //~ ERROR use of unstable library feature 'test_feature'
|
||||||
|
use lint_stability::StableStruct::{}; // OK
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user