Skip to content

Commit b98a589

Browse files
committed
Remove use of globs feature gate from tests.
1 parent 4016c72 commit b98a589

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+8
-76
lines changed

src/test/auxiliary/issue_2316_b.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
#![allow(unused_imports)]
12-
#![feature(globs)]
1312

1413
extern crate issue_2316_a;
1514

src/test/auxiliary/macro_crate_test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// force-host
1212

13-
#![feature(globs, plugin_registrar, macro_rules, quote)]
13+
#![feature(plugin_registrar, macro_rules, quote)]
1414

1515
extern crate syntax;
1616
extern crate rustc;

src/test/auxiliary/namespaced_enum_emulate_flat.rs

-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10-
#![feature(globs)]
1110

1211
pub use Foo::*;
1312

@@ -34,5 +33,3 @@ pub mod nest {
3433
pub fn foo() {}
3534
}
3635
}
37-
38-

src/test/auxiliary/syntax-extension-with-dll-deps-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// force-host
1212

1313
#![crate_type = "dylib"]
14-
#![feature(plugin_registrar, quote, globs)]
14+
#![feature(plugin_registrar, quote)]
1515

1616
extern crate "syntax-extension-with-dll-deps-1" as other;
1717
extern crate syntax;

src/test/compile-fail/glob-resolve1.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Make sure that globs only bring in public things.
1212

13-
#![feature(globs)]
14-
1513
use bar::*;
1614

1715
mod bar {

src/test/compile-fail/import-glob-0.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// error-pattern: unresolved name
1212

13-
#![feature(globs)]
14-
1513
use module_of_many_things::*;
1614

1715
mod module_of_many_things {

src/test/compile-fail/import-glob-circular.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// error-pattern: unresolved
1212

13-
#![feature(globs)]
14-
1513
mod circ1 {
1614
pub use circ2::f2;
1715
pub fn f1() { println!("f1"); }

src/test/compile-fail/import-shadow-1.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// Test that import shadowing using globs causes errors
1212

1313
#![no_implicit_prelude]
14-
#![feature(globs)]
1514

1615
use foo::*;
1716
use bar::*; //~ERROR a type named `Baz` has already been imported in this module

src/test/compile-fail/import-shadow-2.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// Test that import shadowing using globs causes errors
1212

1313
#![no_implicit_prelude]
14-
#![feature(globs)]
1514

1615
use foo::*;
1716
use foo::*; //~ERROR a type named `Baz` has already been imported in this module

src/test/compile-fail/import-shadow-3.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// Test that import shadowing using globs causes errors
1212

1313
#![no_implicit_prelude]
14-
#![feature(globs)]
1514

1615
use foo::Baz;
1716
use bar::*; //~ERROR a type named `Baz` has already been imported in this module

src/test/compile-fail/import-shadow-4.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// Test that import shadowing using globs causes errors
1212

1313
#![no_implicit_prelude]
14-
#![feature(globs)]
1514

1615
use foo::*;
1716
use bar::Baz; //~ERROR a type named `Baz` has already been imported in this module

src/test/compile-fail/import-shadow-5.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// Test that import shadowing using globs causes errors
1212

1313
#![no_implicit_prelude]
14-
#![feature(globs)]
1514

1615
use foo::Baz;
1716
use bar::Baz; //~ERROR a type named `Baz` has already been imported in this module

src/test/compile-fail/import-shadow-6.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// Test that import shadowing using globs causes errors
1212

1313
#![no_implicit_prelude]
14-
#![feature(globs)]
1514

1615
use qux::*;
1716
use foo::*; //~ERROR a type named `Baz` has already been imported in this module

src/test/compile-fail/import-shadow-7.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// Test that import shadowing using globs causes errors
1212

1313
#![no_implicit_prelude]
14-
#![feature(globs)]
1514

1615
use foo::*;
1716
use qux::*; //~ERROR a type named `Baz` has already been imported in this module

src/test/compile-fail/issue-1697.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Testing that we don't fail abnormally after hitting the errors
1212

13-
#![feature(globs)]
14-
1513
use unresolved::*; //~ ERROR unresolved import `unresolved::*`. Maybe a missing `extern crate unres
1614

1715
fn main() {}

src/test/compile-fail/issue-4366-2.rs

-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(globs)]
12-
1311
// ensures that 'use foo:*' doesn't import non-public item
1412

1513
use m1::*;
@@ -36,4 +34,3 @@ mod m1 {
3634
fn main() {
3735
foo(); //~ ERROR: unresolved name
3836
}
39-

src/test/compile-fail/issue-4366.rs

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
// ensures that 'use foo:*' doesn't import non-public 'use' statements in the
1414
// module 'foo'
1515

16-
#![feature(globs)]
17-
1816
use m1::*;
1917

2018
mod foo {

src/test/compile-fail/issue-8208.rs

-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(globs)]
12-
1311
use self::*; //~ ERROR: unresolved import
1412

1513
fn main() {
1614
}
17-

src/test/compile-fail/lint-missing-doc.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// When denying at the crate level, be sure to not get random warnings from the
1212
// injected intrinsics by the compiler.
13-
#![feature(globs)]
1413
#![deny(missing_docs)]
1514
#![allow(dead_code)]
1615
#![allow(missing_copy_implementations)]

src/test/compile-fail/lint-stability.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// aux-build:stability_cfg1.rs
1414
// aux-build:stability_cfg2.rs
1515

16-
#![feature(globs, phase)]
16+
#![feature(phase)]
1717
#![deny(unstable)]
1818
#![deny(deprecated)]
1919
#![deny(experimental)]

src/test/compile-fail/lint-unused-extern-crate.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// aux-build:lint-unused-extern-crate.rs
1212

13-
#![feature(globs)]
1413
#![deny(unused_extern_crates)]
1514
#![allow(unused_variables)]
1615

src/test/compile-fail/lint-unused-imports.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(globs)]
1211
#![deny(unused_imports)]
1312
#![allow(dead_code)]
1413

src/test/compile-fail/name-clash-nullary.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(globs)]
12-
1311
// error-pattern:declaration of `None` shadows
1412
use std::option::*;
1513

src/test/compile-fail/namespaced-enum-glob-import-no-impls-xcrate.rs

-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
// except according to those terms.
1010

1111
// aux-build:namespaced_enums.rs
12-
#![feature(globs)]
13-
1412
extern crate namespaced_enums;
1513

1614
mod m {
@@ -25,4 +23,3 @@ pub fn main() {
2523
bar(); //~ ERROR unresolved name `bar`
2624
m::bar(); //~ ERROR unresolved name `m::bar`
2725
}
28-

src/test/compile-fail/namespaced-enum-glob-import-no-impls.rs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10-
#![feature(globs)]
1110

1211
mod m2 {
1312
pub enum Foo {

src/test/compile-fail/privacy-ns1.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// Check we do the correct privacy checks when we import a name and there is an
1212
// item with that name in both the value and type namespaces.
1313

14-
#![feature(globs)]
1514
#![allow(dead_code)]
1615
#![allow(unused_imports)]
1716

@@ -64,4 +63,3 @@ fn test_glob3() {
6463

6564
fn main() {
6665
}
67-

src/test/compile-fail/privacy-ns2.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// Check we do the correct privacy checks when we import a name and there is an
1212
// item with that name in both the value and type namespaces.
1313

14-
#![feature(globs)]
1514
#![allow(dead_code)]
1615
#![allow(unused_imports)]
1716

@@ -88,4 +87,3 @@ fn test_list3() {
8887

8988
fn main() {
9089
}
91-

src/test/compile-fail/privacy1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(globs, lang_items)]
11+
#![feature(lang_items)]
1212
#![no_std] // makes debugging this test *a lot* easier (during resolve)
1313

1414
#[lang="sized"]

src/test/compile-fail/privacy2.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(globs)]
1211
#![no_std] // makes debugging this test *a lot* easier (during resolve)
1312

1413
// Test to make sure that globs don't leak in regular `use` statements.
@@ -34,4 +33,3 @@ fn test2() {
3433
}
3534

3635
#[start] fn main(_: int, _: *const *const u8) -> int { 3 }
37-

src/test/compile-fail/privacy3.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(globs)]
1211
#![no_std] // makes debugging this test *a lot* easier (during resolve)
1312

1413
// Test to make sure that private items imported through globs remain private

src/test/compile-fail/privacy4.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(globs, lang_items)]
11+
#![feature(lang_items)]
1212
#![no_std] // makes debugging this test *a lot* easier (during resolve)
1313

1414
#[lang = "sized"] pub trait Sized for Sized? {}

src/test/compile-fail/std-uncopyable-atomics.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// Issue #8380
1212

13-
#![feature(globs)]
1413

1514
use std::sync::atomic::*;
1615
use std::ptr;

src/test/run-fail/glob-use-std.rs

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
// Expanded pretty printing causes resolve conflicts.
1616

1717
// error-pattern:panic works
18-
#![feature(globs)]
1918

2019
use std::*;
2120

src/test/run-pass/export-glob-imports-target.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
32
// file at the top-level directory of this distribution and at
43
// http://rust-lang.org/COPYRIGHT.
@@ -14,8 +13,6 @@
1413

1514
// Modified to not use export since it's going away. --pcw
1615

17-
#![feature(globs)]
18-
1916
mod foo {
2017
use foo::bar::*;
2118
pub mod bar {

src/test/run-pass/import-glob-0.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
32
// file at the top-level directory of this distribution and at
43
// http://rust-lang.org/COPYRIGHT.
@@ -9,8 +8,6 @@
98
// option. This file may not be copied, modified, or distributed
109
// except according to those terms.
1110

12-
#![feature(globs)]
13-
1411
use module_of_many_things::*;
1512
use dug::too::greedily::and::too::deep::*;
1613

src/test/run-pass/import-glob-crate.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
32
// file at the top-level directory of this distribution and at
43
// http://rust-lang.org/COPYRIGHT.
@@ -9,7 +8,6 @@
98
// option. This file may not be copied, modified, or distributed
109
// except according to those terms.
1110

12-
#![feature(globs)]
1311
#![allow(dead_assignment)]
1412

1513
use std::mem::*;

src/test/run-pass/import-in-block.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(globs)]
12-
1311
pub fn main() {
1412
use std::mem::replace;
1513
let mut x = 5i;

src/test/run-pass/intrinsics-integer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(globs, intrinsics)]
11+
#![feature(intrinsics)]
1212

1313
mod rusti {
1414
extern "rust-intrinsic" {

src/test/run-pass/intrinsics-math.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// option. This file may not be copied, modified, or distributed
1010
// except according to those terms.
1111

12-
#![feature(globs, macro_rules, intrinsics)]
12+
#![feature(macro_rules, intrinsics)]
1313

1414
macro_rules! assert_approx_eq(
1515
($a:expr, $b:expr) => ({

src/test/run-pass/issue-16597.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// compile-flags:--test
1212
// ignore-pretty turns out the pretty-printer doesn't handle gensym'd things...
1313

14-
#![feature(globs)]
15-
1614
mod test {
1715
use super::*;
1816

src/test/run-pass/issue-2526-a.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// aux-build:issue-2526.rs
1212

13-
#![feature(globs)]
1413
#![allow(unused_imports)]
1514

1615
extern crate issue_2526;

0 commit comments

Comments
 (0)