1
Fork 0

Remove use of globs feature gate from tests.

This commit is contained in:
Huon Wilson 2015-01-05 17:32:59 +11:00
parent 4016c729f1
commit b98a589e23
49 changed files with 8 additions and 76 deletions

View file

@ -9,7 +9,6 @@
// except according to those terms. // except according to those terms.
#![allow(unused_imports)] #![allow(unused_imports)]
#![feature(globs)]
extern crate issue_2316_a; extern crate issue_2316_a;

View file

@ -10,7 +10,7 @@
// force-host // force-host
#![feature(globs, plugin_registrar, macro_rules, quote)] #![feature(plugin_registrar, macro_rules, quote)]
extern crate syntax; extern crate syntax;
extern crate rustc; extern crate rustc;

View file

@ -7,7 +7,6 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
pub use Foo::*; pub use Foo::*;
@ -34,5 +33,3 @@ pub mod nest {
pub fn foo() {} pub fn foo() {}
} }
} }

View file

@ -11,7 +11,7 @@
// force-host // force-host
#![crate_type = "dylib"] #![crate_type = "dylib"]
#![feature(plugin_registrar, quote, globs)] #![feature(plugin_registrar, quote)]
extern crate "syntax-extension-with-dll-deps-1" as other; extern crate "syntax-extension-with-dll-deps-1" as other;
extern crate syntax; extern crate syntax;

View file

@ -10,8 +10,6 @@
// Make sure that globs only bring in public things. // Make sure that globs only bring in public things.
#![feature(globs)]
use bar::*; use bar::*;
mod bar { mod bar {

View file

@ -10,8 +10,6 @@
// error-pattern: unresolved name // error-pattern: unresolved name
#![feature(globs)]
use module_of_many_things::*; use module_of_many_things::*;
mod module_of_many_things { mod module_of_many_things {

View file

@ -10,8 +10,6 @@
// error-pattern: unresolved // error-pattern: unresolved
#![feature(globs)]
mod circ1 { mod circ1 {
pub use circ2::f2; pub use circ2::f2;
pub fn f1() { println!("f1"); } pub fn f1() { println!("f1"); }

View file

@ -11,7 +11,6 @@
// Test that import shadowing using globs causes errors // Test that import shadowing using globs causes errors
#![no_implicit_prelude] #![no_implicit_prelude]
#![feature(globs)]
use foo::*; use foo::*;
use bar::*; //~ERROR a type named `Baz` has already been imported in this module use bar::*; //~ERROR a type named `Baz` has already been imported in this module

View file

@ -11,7 +11,6 @@
// Test that import shadowing using globs causes errors // Test that import shadowing using globs causes errors
#![no_implicit_prelude] #![no_implicit_prelude]
#![feature(globs)]
use foo::*; use foo::*;
use foo::*; //~ERROR a type named `Baz` has already been imported in this module use foo::*; //~ERROR a type named `Baz` has already been imported in this module

View file

@ -11,7 +11,6 @@
// Test that import shadowing using globs causes errors // Test that import shadowing using globs causes errors
#![no_implicit_prelude] #![no_implicit_prelude]
#![feature(globs)]
use foo::Baz; use foo::Baz;
use bar::*; //~ERROR a type named `Baz` has already been imported in this module use bar::*; //~ERROR a type named `Baz` has already been imported in this module

View file

@ -11,7 +11,6 @@
// Test that import shadowing using globs causes errors // Test that import shadowing using globs causes errors
#![no_implicit_prelude] #![no_implicit_prelude]
#![feature(globs)]
use foo::*; use foo::*;
use bar::Baz; //~ERROR a type named `Baz` has already been imported in this module use bar::Baz; //~ERROR a type named `Baz` has already been imported in this module

View file

@ -11,7 +11,6 @@
// Test that import shadowing using globs causes errors // Test that import shadowing using globs causes errors
#![no_implicit_prelude] #![no_implicit_prelude]
#![feature(globs)]
use foo::Baz; use foo::Baz;
use bar::Baz; //~ERROR a type named `Baz` has already been imported in this module use bar::Baz; //~ERROR a type named `Baz` has already been imported in this module

View file

@ -11,7 +11,6 @@
// Test that import shadowing using globs causes errors // Test that import shadowing using globs causes errors
#![no_implicit_prelude] #![no_implicit_prelude]
#![feature(globs)]
use qux::*; use qux::*;
use foo::*; //~ERROR a type named `Baz` has already been imported in this module use foo::*; //~ERROR a type named `Baz` has already been imported in this module

View file

@ -11,7 +11,6 @@
// Test that import shadowing using globs causes errors // Test that import shadowing using globs causes errors
#![no_implicit_prelude] #![no_implicit_prelude]
#![feature(globs)]
use foo::*; use foo::*;
use qux::*; //~ERROR a type named `Baz` has already been imported in this module use qux::*; //~ERROR a type named `Baz` has already been imported in this module

View file

@ -10,8 +10,6 @@
// Testing that we don't fail abnormally after hitting the errors // Testing that we don't fail abnormally after hitting the errors
#![feature(globs)]
use unresolved::*; //~ ERROR unresolved import `unresolved::*`. Maybe a missing `extern crate unres use unresolved::*; //~ ERROR unresolved import `unresolved::*`. Maybe a missing `extern crate unres
fn main() {} fn main() {}

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
// ensures that 'use foo:*' doesn't import non-public item // ensures that 'use foo:*' doesn't import non-public item
use m1::*; use m1::*;
@ -36,4 +34,3 @@ mod m1 {
fn main() { fn main() {
foo(); //~ ERROR: unresolved name foo(); //~ ERROR: unresolved name
} }

View file

@ -13,8 +13,6 @@
// ensures that 'use foo:*' doesn't import non-public 'use' statements in the // ensures that 'use foo:*' doesn't import non-public 'use' statements in the
// module 'foo' // module 'foo'
#![feature(globs)]
use m1::*; use m1::*;
mod foo { mod foo {

View file

@ -8,10 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
use self::*; //~ ERROR: unresolved import use self::*; //~ ERROR: unresolved import
fn main() { fn main() {
} }

View file

@ -10,7 +10,6 @@
// When denying at the crate level, be sure to not get random warnings from the // When denying at the crate level, be sure to not get random warnings from the
// injected intrinsics by the compiler. // injected intrinsics by the compiler.
#![feature(globs)]
#![deny(missing_docs)] #![deny(missing_docs)]
#![allow(dead_code)] #![allow(dead_code)]
#![allow(missing_copy_implementations)] #![allow(missing_copy_implementations)]

View file

@ -13,7 +13,7 @@
// aux-build:stability_cfg1.rs // aux-build:stability_cfg1.rs
// aux-build:stability_cfg2.rs // aux-build:stability_cfg2.rs
#![feature(globs, phase)] #![feature(phase)]
#![deny(unstable)] #![deny(unstable)]
#![deny(deprecated)] #![deny(deprecated)]
#![deny(experimental)] #![deny(experimental)]

View file

@ -10,7 +10,6 @@
// aux-build:lint-unused-extern-crate.rs // aux-build:lint-unused-extern-crate.rs
#![feature(globs)]
#![deny(unused_extern_crates)] #![deny(unused_extern_crates)]
#![allow(unused_variables)] #![allow(unused_variables)]

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
#![deny(unused_imports)] #![deny(unused_imports)]
#![allow(dead_code)] #![allow(dead_code)]

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
// error-pattern:declaration of `None` shadows // error-pattern:declaration of `None` shadows
use std::option::*; use std::option::*;

View file

@ -9,8 +9,6 @@
// except according to those terms. // except according to those terms.
// aux-build:namespaced_enums.rs // aux-build:namespaced_enums.rs
#![feature(globs)]
extern crate namespaced_enums; extern crate namespaced_enums;
mod m { mod m {
@ -25,4 +23,3 @@ pub fn main() {
bar(); //~ ERROR unresolved name `bar` bar(); //~ ERROR unresolved name `bar`
m::bar(); //~ ERROR unresolved name `m::bar` m::bar(); //~ ERROR unresolved name `m::bar`
} }

View file

@ -7,7 +7,6 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
mod m2 { mod m2 {
pub enum Foo { pub enum Foo {

View file

@ -11,7 +11,6 @@
// Check we do the correct privacy checks when we import a name and there is an // Check we do the correct privacy checks when we import a name and there is an
// item with that name in both the value and type namespaces. // item with that name in both the value and type namespaces.
#![feature(globs)]
#![allow(dead_code)] #![allow(dead_code)]
#![allow(unused_imports)] #![allow(unused_imports)]
@ -64,4 +63,3 @@ fn test_glob3() {
fn main() { fn main() {
} }

View file

@ -11,7 +11,6 @@
// Check we do the correct privacy checks when we import a name and there is an // Check we do the correct privacy checks when we import a name and there is an
// item with that name in both the value and type namespaces. // item with that name in both the value and type namespaces.
#![feature(globs)]
#![allow(dead_code)] #![allow(dead_code)]
#![allow(unused_imports)] #![allow(unused_imports)]
@ -88,4 +87,3 @@ fn test_list3() {
fn main() { fn main() {
} }

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs, lang_items)] #![feature(lang_items)]
#![no_std] // makes debugging this test *a lot* easier (during resolve) #![no_std] // makes debugging this test *a lot* easier (during resolve)
#[lang="sized"] #[lang="sized"]

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
#![no_std] // makes debugging this test *a lot* easier (during resolve) #![no_std] // makes debugging this test *a lot* easier (during resolve)
// Test to make sure that globs don't leak in regular `use` statements. // Test to make sure that globs don't leak in regular `use` statements.
@ -34,4 +33,3 @@ fn test2() {
} }
#[start] fn main(_: int, _: *const *const u8) -> int { 3 } #[start] fn main(_: int, _: *const *const u8) -> int { 3 }

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
#![no_std] // makes debugging this test *a lot* easier (during resolve) #![no_std] // makes debugging this test *a lot* easier (during resolve)
// Test to make sure that private items imported through globs remain private // Test to make sure that private items imported through globs remain private

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs, lang_items)] #![feature(lang_items)]
#![no_std] // makes debugging this test *a lot* easier (during resolve) #![no_std] // makes debugging this test *a lot* easier (during resolve)
#[lang = "sized"] pub trait Sized for Sized? {} #[lang = "sized"] pub trait Sized for Sized? {}

View file

@ -10,7 +10,6 @@
// Issue #8380 // Issue #8380
#![feature(globs)]
use std::sync::atomic::*; use std::sync::atomic::*;
use std::ptr; use std::ptr;

View file

@ -15,7 +15,6 @@
// Expanded pretty printing causes resolve conflicts. // Expanded pretty printing causes resolve conflicts.
// error-pattern:panic works // error-pattern:panic works
#![feature(globs)]
use std::*; use std::*;

View file

@ -1,4 +1,3 @@
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at // file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT. // http://rust-lang.org/COPYRIGHT.
@ -14,8 +13,6 @@
// Modified to not use export since it's going away. --pcw // Modified to not use export since it's going away. --pcw
#![feature(globs)]
mod foo { mod foo {
use foo::bar::*; use foo::bar::*;
pub mod bar { pub mod bar {

View file

@ -1,4 +1,3 @@
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at // file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT. // http://rust-lang.org/COPYRIGHT.
@ -9,8 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
use module_of_many_things::*; use module_of_many_things::*;
use dug::too::greedily::and::too::deep::*; use dug::too::greedily::and::too::deep::*;

View file

@ -1,4 +1,3 @@
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at // file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT. // http://rust-lang.org/COPYRIGHT.
@ -9,7 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
#![allow(dead_assignment)] #![allow(dead_assignment)]
use std::mem::*; use std::mem::*;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
pub fn main() { pub fn main() {
use std::mem::replace; use std::mem::replace;
let mut x = 5i; let mut x = 5i;

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs, intrinsics)] #![feature(intrinsics)]
mod rusti { mod rusti {
extern "rust-intrinsic" { extern "rust-intrinsic" {

View file

@ -9,7 +9,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs, macro_rules, intrinsics)] #![feature(macro_rules, intrinsics)]
macro_rules! assert_approx_eq( macro_rules! assert_approx_eq(
($a:expr, $b:expr) => ({ ($a:expr, $b:expr) => ({

View file

@ -11,8 +11,6 @@
// compile-flags:--test // compile-flags:--test
// ignore-pretty turns out the pretty-printer doesn't handle gensym'd things... // ignore-pretty turns out the pretty-printer doesn't handle gensym'd things...
#![feature(globs)]
mod test { mod test {
use super::*; use super::*;

View file

@ -10,7 +10,6 @@
// aux-build:issue-2526.rs // aux-build:issue-2526.rs
#![feature(globs)]
#![allow(unused_imports)] #![allow(unused_imports)]
extern crate issue_2526; extern crate issue_2526;

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
#![allow(unused_imports, dead_code)] #![allow(unused_imports, dead_code)]
mod test1 { mod test1 {

View file

@ -7,7 +7,6 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
pub use Foo::*; pub use Foo::*;
use nest::{Bar, D, E, F}; use nest::{Bar, D, E, F};

View file

@ -9,7 +9,6 @@
// except according to those terms. // except according to those terms.
// aux-build:namespaced_enums.rs // aux-build:namespaced_enums.rs
#![feature(globs)]
extern crate namespaced_enums; extern crate namespaced_enums;

View file

@ -7,7 +7,6 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
mod m2 { mod m2 {
pub enum Foo { pub enum Foo {

View file

@ -12,7 +12,6 @@
// Check we do the correct privacy checks when we import a name and there is an // Check we do the correct privacy checks when we import a name and there is an
// item with that name in both the value and type namespaces. // item with that name in both the value and type namespaces.
#![feature(globs)]
#![allow(dead_code)] #![allow(dead_code)]
#![allow(unused_imports)] #![allow(unused_imports)]
@ -115,4 +114,3 @@ fn test_glob3() {
fn main() { fn main() {
} }

View file

@ -1,4 +1,3 @@
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at // file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT. // http://rust-lang.org/COPYRIGHT.
@ -9,7 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
mod a { mod a {
pub fn f() {} pub fn f() {}

View file

@ -1,4 +1,3 @@
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at // file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT. // http://rust-lang.org/COPYRIGHT.
@ -9,7 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(globs)]
use alder::*; use alder::*;

View file

@ -16,7 +16,7 @@
// one test task to ensure that errors are timeouts, not file descriptor // one test task to ensure that errors are timeouts, not file descriptor
// exhaustion. // exhaustion.
#![feature(macro_rules, globs)] #![feature(macro_rules)]
#![allow(experimental)] #![allow(experimental)]
#![reexport_test_harness_main = "test_main"] #![reexport_test_harness_main = "test_main"]