diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-11-03 23:54:12 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-11-04 08:13:09 -0800 |
| commit | 68ac44cb97d9f7fd5e552aabb516f61cbb5b6760 (patch) | |
| tree | 11e36298102cbb471aea2471f70e10a5a2cc5f5f /src/test | |
| parent | ec28b4a6c8c0a249fe341afde55d026177aabac6 (diff) | |
| download | rust-68ac44cb97d9f7fd5e552aabb516f61cbb5b6760.tar.gz rust-68ac44cb97d9f7fd5e552aabb516f61cbb5b6760.zip | |
rustc: Support stability attributes on crates
This commit adds support for linting `extern crate` statements for stability attributes attached to the crate itself. This is likely to be the mechanism used to deny access to experimental crates that are part of the standard distribution. cc #18585
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/lint-output-format.rs | 2 | ||||
| -rw-r--r-- | src/test/compile-fail/lint-stability.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/lint-output-format.rs b/src/test/compile-fail/lint-output-format.rs index db60002b468..35721ee5b14 100644 --- a/src/test/compile-fail/lint-output-format.rs +++ b/src/test/compile-fail/lint-output-format.rs @@ -11,7 +11,7 @@ // compile-flags:-F experimental -D unstable // aux-build:lint_output_format.rs -extern crate lint_output_format; +extern crate lint_output_format; //~ ERROR: use of unmarked item use lint_output_format::{foo, bar, baz}; fn main() { diff --git a/src/test/compile-fail/lint-stability.rs b/src/test/compile-fail/lint-stability.rs index fdb0d801164..babf12e97f2 100644 --- a/src/test/compile-fail/lint-stability.rs +++ b/src/test/compile-fail/lint-stability.rs @@ -19,7 +19,7 @@ mod cross_crate { #[phase(plugin, link)] - extern crate lint_stability; + extern crate lint_stability; //~ ERROR: use of unmarked item use self::lint_stability::*; fn test() { @@ -144,7 +144,7 @@ mod cross_crate { } mod inheritance { - extern crate inherited_stability; + extern crate inherited_stability; //~ ERROR: use of experimental item use self::inherited_stability::*; fn test_inheritance() { |
