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.
#![allow(unused_imports)]
#![feature(globs)]
extern crate issue_2316_a;

View File

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

View File

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

View File

@ -11,7 +11,7 @@
// force-host
#![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;

View File

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

View File

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

View File

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

View File

@ -11,7 +11,6 @@
// Test that import shadowing using globs causes errors
#![no_implicit_prelude]
#![feature(globs)]
use foo::*;
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
#![no_implicit_prelude]
#![feature(globs)]
use foo::*;
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
#![no_implicit_prelude]
#![feature(globs)]
use foo::Baz;
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
#![no_implicit_prelude]
#![feature(globs)]
use foo::*;
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
#![no_implicit_prelude]
#![feature(globs)]
use foo::Baz;
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
#![no_implicit_prelude]
#![feature(globs)]
use qux::*;
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
#![no_implicit_prelude]
#![feature(globs)]
use foo::*;
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
#![feature(globs)]
use unresolved::*; //~ ERROR unresolved import `unresolved::*`. Maybe a missing `extern crate unres
fn main() {}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,6 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(globs)]
mod m2 {
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
// item with that name in both the value and type namespaces.
#![feature(globs)]
#![allow(dead_code)]
#![allow(unused_imports)]
@ -64,4 +63,3 @@ fn test_glob3() {
fn main() {
}

View File

@ -11,7 +11,6 @@
// 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.
#![feature(globs)]
#![allow(dead_code)]
#![allow(unused_imports)]
@ -88,4 +87,3 @@ fn test_list3() {
fn main() {
}

View File

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

View File

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(globs)]
#![no_std] // makes debugging this test *a lot* easier (during resolve)
// 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 }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,6 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(globs)]
mod m2 {
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
// item with that name in both the value and type namespaces.
#![feature(globs)]
#![allow(dead_code)]
#![allow(unused_imports)]
@ -115,4 +114,3 @@ fn test_glob3() {
fn main() {
}

View File

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

View File

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

View File

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