mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
Remove use of globs feature gate from tests.
This commit is contained in:
parent
4016c729f1
commit
b98a589e23
@ -9,7 +9,6 @@
|
||||
// except according to those terms.
|
||||
|
||||
#![allow(unused_imports)]
|
||||
#![feature(globs)]
|
||||
|
||||
extern crate issue_2316_a;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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() {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// Make sure that globs only bring in public things.
|
||||
|
||||
#![feature(globs)]
|
||||
|
||||
use bar::*;
|
||||
|
||||
mod bar {
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// error-pattern: unresolved name
|
||||
|
||||
#![feature(globs)]
|
||||
|
||||
use module_of_many_things::*;
|
||||
|
||||
mod module_of_many_things {
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// error-pattern: unresolved
|
||||
|
||||
#![feature(globs)]
|
||||
|
||||
mod circ1 {
|
||||
pub use circ2::f2;
|
||||
pub fn f1() { println!("f1"); }
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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() {}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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() {
|
||||
}
|
||||
|
||||
|
@ -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)]
|
||||
|
@ -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)]
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
// aux-build:lint-unused-extern-crate.rs
|
||||
|
||||
#![feature(globs)]
|
||||
#![deny(unused_extern_crates)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
@ -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)]
|
||||
|
||||
|
@ -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::*;
|
||||
|
||||
|
@ -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`
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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() {
|
||||
}
|
||||
|
||||
|
@ -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() {
|
||||
}
|
||||
|
||||
|
@ -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"]
|
||||
|
@ -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 }
|
||||
|
||||
|
@ -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
|
||||
|
@ -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? {}
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
// Issue #8380
|
||||
|
||||
#![feature(globs)]
|
||||
|
||||
use std::sync::atomic::*;
|
||||
use std::ptr;
|
||||
|
@ -15,7 +15,6 @@
|
||||
// Expanded pretty printing causes resolve conflicts.
|
||||
|
||||
// error-pattern:panic works
|
||||
#![feature(globs)]
|
||||
|
||||
use std::*;
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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::*;
|
||||
|
||||
|
@ -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::*;
|
||||
|
@ -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;
|
||||
|
@ -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" {
|
||||
|
@ -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) => ({
|
||||
|
@ -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::*;
|
||||
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
// aux-build:issue-2526.rs
|
||||
|
||||
#![feature(globs)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
extern crate issue_2526;
|
||||
|
@ -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 {
|
||||
|
@ -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};
|
||||
|
@ -9,7 +9,6 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:namespaced_enums.rs
|
||||
#![feature(globs)]
|
||||
|
||||
extern crate namespaced_enums;
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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() {
|
||||
}
|
||||
|
||||
|
@ -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() {}
|
||||
|
@ -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::*;
|
||||
|
||||
|
@ -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"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user