Skip to content

Commit 4fc10be

Browse files
committed
test: Fix fallout in tests
1 parent 701d6a6 commit 4fc10be

File tree

112 files changed

+205
-466
lines changed

Some content is hidden

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

112 files changed

+205
-466
lines changed

src/test/auxiliary/issue_3907.rs

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

11-
#![feature(core)]
12-
13-
use std::marker::MarkerTrait;
14-
15-
pub trait Foo : MarkerTrait {
11+
pub trait Foo {
1612
fn bar();
1713
}

src/test/auxiliary/private_trait_xc.rs

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

11-
#![feature(core)]
12-
13-
trait Foo : ::std::marker::MarkerTrait {}
11+
trait Foo {}

src/test/auxiliary/rustdoc-default-impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
pub mod bar {
1515
use std::marker;
1616

17-
pub trait Bar: marker::MarkerTrait + 'static {}
17+
pub trait Bar: 'static {}
1818

1919
impl Bar for .. {}
2020

src/test/auxiliary/svh-a-base.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
//! (#14132).
1515
1616
#![crate_name = "a"]
17-
#![feature(core)]
18-
19-
use std::marker::MarkerTrait;
2017

2118
macro_rules! three {
2219
() => { 3 }
2320
}
2421

25-
pub trait U : MarkerTrait {}
26-
pub trait V : MarkerTrait {}
22+
pub trait U {}
23+
pub trait V {}
2724
impl U for () {}
2825
impl V for () {}
2926

src/test/auxiliary/svh-a-change-lit.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
//! (#14132).
1515
1616
#![crate_name = "a"]
17-
#![feature(core)]
18-
19-
use std::marker::MarkerTrait;
2017

2118
macro_rules! three {
2219
() => { 3 }
2320
}
2421

25-
pub trait U : MarkerTrait {}
26-
pub trait V : MarkerTrait {}
22+
pub trait U {}
23+
pub trait V {}
2724
impl U for () {}
2825
impl V for () {}
2926

src/test/auxiliary/svh-a-change-significant-cfg.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
//! (#14132).
1515
1616
#![crate_name = "a"]
17-
#![feature(core)]
18-
19-
use std::marker::MarkerTrait;
2017

2118
macro_rules! three {
2219
() => { 3 }
2320
}
2421

25-
pub trait U : MarkerTrait {}
26-
pub trait V : MarkerTrait {}
22+
pub trait U {}
23+
pub trait V {}
2724
impl U for () {}
2825
impl V for () {}
2926

src/test/auxiliary/svh-a-change-trait-bound.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
//! (#14132).
1515
1616
#![crate_name = "a"]
17-
#![feature(core)]
18-
19-
use std::marker::MarkerTrait;
2017

2118
macro_rules! three {
2219
() => { 3 }
2320
}
2421

25-
pub trait U : MarkerTrait {}
26-
pub trait V : MarkerTrait {}
22+
pub trait U {}
23+
pub trait V {}
2724
impl U for () {}
2825
impl V for () {}
2926

src/test/auxiliary/svh-a-change-type-arg.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
//! (#14132).
1515
1616
#![crate_name = "a"]
17-
#![feature(core)]
18-
19-
use std::marker::MarkerTrait;
2017

2118
macro_rules! three {
2219
() => { 3 }
2320
}
2421

25-
pub trait U : MarkerTrait {}
26-
pub trait V : MarkerTrait {}
22+
pub trait U {}
23+
pub trait V {}
2724
impl U for () {}
2825
impl V for () {}
2926

src/test/auxiliary/svh-a-change-type-ret.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
//! (#14132).
1515
1616
#![crate_name = "a"]
17-
#![feature(core)]
18-
19-
use std::marker::MarkerTrait;
2017

2118
macro_rules! three {
2219
() => { 3 }
2320
}
2421

25-
pub trait U : MarkerTrait {}
26-
pub trait V : MarkerTrait {}
22+
pub trait U {}
23+
pub trait V {}
2724
impl U for () {}
2825
impl V for () {}
2926

src/test/auxiliary/svh-a-change-type-static.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616
#![crate_name = "a"]
1717
#![feature(core)]
1818

19-
use std::marker::MarkerTrait;
20-
2119
macro_rules! three {
2220
() => { 3 }
2321
}
2422

25-
pub trait U : MarkerTrait {}
26-
pub trait V : MarkerTrait {}
23+
pub trait U {}
24+
pub trait V {}
2725
impl U for () {}
2826
impl V for () {}
2927

src/test/auxiliary/svh-a-comment.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
//! (#14132).
1515
1616
#![crate_name = "a"]
17-
#![feature(core)]
18-
19-
use std::marker::MarkerTrait;
2017

2118
macro_rules! three {
2219
() => { 3 }
2320
}
2421

25-
pub trait U : MarkerTrait {}
26-
pub trait V : MarkerTrait {}
22+
pub trait U {}
23+
pub trait V {}
2724
impl U for () {}
2825
impl V for () {}
2926

src/test/auxiliary/svh-a-doc.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
//! (#14132).
1515
1616
#![crate_name = "a"]
17-
#![feature(core)]
18-
19-
use std::marker::MarkerTrait;
2017

2118
macro_rules! three {
2219
() => { 3 }
2320
}
2421

25-
pub trait U : MarkerTrait {}
26-
pub trait V : MarkerTrait {}
22+
pub trait U {}
23+
pub trait V {}
2724
impl U for () {}
2825
impl V for () {}
2926

src/test/auxiliary/svh-a-macro.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
//! (#14132).
1515
1616
#![crate_name = "a"]
17-
#![feature(core)]
18-
19-
use std::marker::MarkerTrait;
2017

2118
macro_rules! three {
2219
() => { 3 }
2320
}
2421

25-
pub trait U : MarkerTrait {}
26-
pub trait V : MarkerTrait {}
22+
pub trait U {}
23+
pub trait V {}
2724
impl U for () {}
2825
impl V for () {}
2926

src/test/auxiliary/svh-a-no-change.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
//! (#14132).
1515
1616
#![crate_name = "a"]
17-
#![feature(core)]
18-
19-
use std::marker::MarkerTrait;
2017

2118
macro_rules! three {
2219
() => { 3 }
2320
}
2421

25-
pub trait U : MarkerTrait {}
26-
pub trait V : MarkerTrait {}
22+
pub trait U {}
23+
pub trait V {}
2724
impl U for () {}
2825
impl V for () {}
2926

src/test/auxiliary/svh-a-redundant-cfg.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
//! (#14132).
1515
1616
#![crate_name = "a"]
17-
#![feature(core)]
18-
19-
use std::marker::MarkerTrait;
2017

2118
macro_rules! three {
2219
() => { 3 }
2320
}
2421

25-
pub trait U : MarkerTrait {}
26-
pub trait V : MarkerTrait {}
22+
pub trait U {}
23+
pub trait V {}
2724
impl U for () {}
2825
impl V for () {}
2926

src/test/auxiliary/svh-a-whitespace.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
//! (#14132).
1515
1616
#![crate_name = "a"]
17-
#![feature(core)]
18-
19-
use std::marker::MarkerTrait;
2017

2118
macro_rules! three {
2219
() => { 3 }
2320
}
2421

25-
pub trait U : MarkerTrait {}
26-
pub trait V : MarkerTrait {}
22+
pub trait U {}
23+
pub trait V {}
2724
impl U for () {}
2825
impl V for () {}
2926

src/test/auxiliary/trait_impl_conflict.rs

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

11-
#![feature(core)]
12-
13-
pub trait Foo : ::std::marker::MarkerTrait {
11+
pub trait Foo {
1412
}
1513

1614
impl Foo for isize {

src/test/auxiliary/typeck_default_trait_impl_cross_crate_coherence_lib.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
#![feature(optin_builtin_traits, core)]
1212
#![crate_type = "rlib"]
1313

14-
use std::marker::MarkerTrait;
15-
16-
pub trait DefaultedTrait : MarkerTrait { }
14+
pub trait DefaultedTrait { }
1715
impl DefaultedTrait for .. { }
1816

1917
pub struct Something<T> { t: T }

src/test/compile-fail/associated-types-eq-expr-path.rs

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

1111
// Check that an associated type cannot be bound in an expression path.
1212

13-
trait Foo : ::std::marker::MarkerTrait {
13+
trait Foo {
1414
type A;
1515
fn bar() -> isize;
1616
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Test that we do not ICE when an impl is missing an associated type (and that we report
1212
// a useful error, of course).
1313

14-
trait Trait : ::std::marker::MarkerTrait {
14+
trait Trait {
1515
type Type;
1616
}
1717

src/test/compile-fail/associated-types-multiple-types-one-trait.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-
trait Foo : ::std::marker::MarkerTrait {
11+
trait Foo {
1212
type X;
1313
type Y;
1414
}

src/test/compile-fail/associated-types-no-suitable-supertrait-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// which checks that the trait interface itself is not considered an
2020
// error as long as all impls satisfy the constraint.
2121

22-
trait Get : ::std::marker::MarkerTrait {
22+
trait Get {
2323
type Value;
2424
}
2525

src/test/compile-fail/associated-types-no-suitable-supertrait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// which checks that the trait interface itself is not considered an
2020
// error as long as all impls satisfy the constraint.
2121

22-
trait Get : ::std::marker::MarkerTrait {
22+
trait Get {
2323
type Value;
2424
}
2525

src/test/compile-fail/associated-types-unconstrained.rs

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

1111
// Check that an associated type cannot be bound in an expression path.
1212

13-
trait Foo : ::std::marker::MarkerTrait {
13+
trait Foo {
1414
type A;
1515
fn bar() -> isize;
1616
}

src/test/compile-fail/bad-sized.rs

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

1111
use std::cell::RefCell;
1212

13-
trait Trait : ::std::marker::MarkerTrait {}
13+
trait Trait {}
1414

1515
pub fn main() {
1616
let x: Vec<Trait + Sized> = Vec::new();

src/test/compile-fail/coherence-blanket-conflicts-with-blanket-implemented.rs

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

1111
use std::fmt::Debug;
1212
use std::default::Default;
13-
use std::marker::MarkerTrait;
1413

1514
// Test that two blanket impls conflict (at least without negative
1615
// bounds). After all, some other crate could implement Even or Odd
@@ -20,9 +19,9 @@ trait MyTrait {
2019
fn get(&self) -> usize;
2120
}
2221

23-
trait Even : MarkerTrait { }
22+
trait Even { }
2423

25-
trait Odd : MarkerTrait { }
24+
trait Odd { }
2625

2726
impl Even for isize { }
2827

src/test/compile-fail/coherence-blanket-conflicts-with-blanket-unimplemented.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ trait MyTrait {
1919
fn get(&self) -> usize;
2020
}
2121

22-
trait Even : ::std::marker::MarkerTrait { }
22+
trait Even {}
2323

24-
trait Odd : ::std::marker::MarkerTrait { }
24+
trait Odd {}
2525

2626
impl<T:Even> MyTrait for T { //~ ERROR E0119
2727
fn get(&self) -> usize { 0 }

src/test/compile-fail/coherence-conflicting-negative-trait-impl.rs

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

1111
#![feature(optin_builtin_traits)]
1212

13-
trait MyTrait : ::std::marker::MarkerTrait {}
13+
trait MyTrait {}
1414

1515
struct TestType<T>(::std::marker::PhantomData<T>);
1616

0 commit comments

Comments
 (0)