Skip to content

Commit 76c59dc

Browse files
committed
Update tests to use no_prelude
1 parent 97bddc2 commit 76c59dc

12 files changed

+24
-14
lines changed

src/test/compile-fail/associated-types-issue-20346.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
// Test that we reliably check the value of the associated type.
1212

1313
#![crate_type = "lib"]
14-
#![no_implicit_prelude]
14+
#![feature(no_prelude)]
15+
#![no_prelude]
1516

1617
use std::option::Option::{self, None, Some};
1718
use std::vec::Vec;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
// Test that import shadowing using globs causes errors
1212

13-
#![no_implicit_prelude]
13+
#![feature(no_prelude)]
14+
#![no_prelude]
1415

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
// Test that import shadowing using globs causes errors
1212

13-
#![no_implicit_prelude]
13+
#![feature(no_prelude)]
14+
#![no_prelude]
1415

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
// Test that import shadowing using globs causes errors
1212

13-
#![no_implicit_prelude]
13+
#![feature(no_prelude)]
14+
#![no_prelude]
1415

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
// Test that import shadowing using globs causes errors
1212

13-
#![no_implicit_prelude]
13+
#![feature(no_prelude)]
14+
#![no_prelude]
1415

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
// Test that import shadowing using globs causes errors
1212

13-
#![no_implicit_prelude]
13+
#![feature(no_prelude)]
14+
#![no_prelude]
1415

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
// Test that import shadowing using globs causes errors
1212

13-
#![no_implicit_prelude]
13+
#![feature(no_prelude)]
14+
#![no_prelude]
1415

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
// Test that import shadowing using globs causes errors
1212

13-
#![no_implicit_prelude]
13+
#![feature(no_prelude)]
14+
#![no_prelude]
1415

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

src/test/compile-fail/tag-that-dare-not-speak-its-name.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
// Issue #876
1212

13-
#![no_implicit_prelude]
13+
#![feature(no_prelude)]
14+
#![no_prelude]
1415
use std::vec::Vec;
1516

1617
fn last<T>(v: Vec<&T> ) -> std::option::Option<T> {

src/test/run-pass/associated-types-impl-redirect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
// for `ByRef`. The right answer was to consider the result ambiguous
1515
// until more type information was available.
1616

17-
#![feature(lang_items, unboxed_closures)]
18-
#![no_implicit_prelude]
17+
#![feature(no_prelude, lang_items, unboxed_closures)]
18+
#![no_prelude]
1919

2020
use std::marker::Sized;
2121
use std::option::Option::{None, Some, self};

src/test/run-pass/associated-types-where-clause-impl-ambiguity.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
// for `ByRef`. The right answer was to consider the result ambiguous
1515
// until more type information was available.
1616

17-
#![feature(lang_items, unboxed_closures)]
18-
#![no_implicit_prelude]
17+
#![feature(no_prelude, lang_items, unboxed_closures)]
18+
#![no_prelude]
1919

2020
use std::marker::Sized;
2121
use std::option::Option::{None, Some, self};

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
// pretty-expanded FIXME #23616
1212

13-
#![no_implicit_prelude]
13+
#![feature(no_prelude)]
14+
#![no_prelude]
1415

1516
trait Iterator {
1617
type Item;

0 commit comments

Comments
 (0)