Skip to content

Commit ae22938

Browse files
Change some tests to use the shorter comment style
1 parent 701f6e5 commit ae22938

File tree

5 files changed

+6
-17
lines changed

5 files changed

+6
-17
lines changed

src/test/ui/associated-types/cache/project-fn-ret-contravariant.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,4 @@ fn transmute<'a,'b>(x: &'a u32, y: &'b u32) -> (&'a u32, &'b u32) {
4747
}
4848

4949
#[rustc_error]
50-
fn main() { }
51-
//[ok]~^ ERROR fatal error triggered by #[rustc_error]
52-
//[oneuse]~^^ ERROR fatal error triggered by #[rustc_error]
50+
fn main() { } //[ok,oneuse]~ ERROR fatal error triggered by #[rustc_error]

src/test/ui/error-codes/E0161.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,8 @@
2020

2121
fn foo(x: Box<[i32]>) {
2222
box *x;
23-
//[migrate]~^ ERROR E0161
24-
//[nll]~^^ ERROR E0161
25-
//[zflags]~^^^ ERROR E0161
26-
//[edition]~^^^^ ERROR E0161
27-
//[migrateul]~^^^^^ ERROR E0161
28-
//[nllul]~^^^^^^ ERROR E0161
29-
//[zflagsul]~^^^^^^^ ERROR E0161
30-
//[editionul]~^^^^^^^^ ERROR E0161
23+
//[migrate,nll,zflags,edition]~^ ERROR E0161
24+
//[migrateul,nllul,zflagsul,editionul]~^^ ERROR E0161
3125
}
3226

3327
fn main() {}

src/test/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ struct Foo<T> {
1111
impl<T> Foo<T>
1212
where
1313
T: WithRegion<'_>
14-
//[rust2015]~^ ERROR `'_` cannot be used here
15-
//[rust2018]~^^ ERROR `'_` cannot be used here
14+
//[rust2015,rust2018]~^ ERROR `'_` cannot be used here
1615
{ }
1716

1817
fn main() {}

src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ trait Foo { }
99
impl<T> Foo for Vec<T>
1010
where
1111
T: WithType<&u32>
12-
//[rust2015]~^ ERROR `&` without an explicit lifetime name cannot be used here
13-
//[rust2018]~^^ ERROR `&` without an explicit lifetime name cannot be used here
12+
//[rust2015,rust2018]~^ ERROR `&` without an explicit lifetime name cannot be used here
1413
{ }
1514

1615
fn main() {}

src/test/ui/underscore-lifetime/where-clause-trait-impl-underscore.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ trait Foo { }
99
impl<T> Foo for Vec<T>
1010
where
1111
T: WithRegion<'_>
12-
//[rust2015]~^ ERROR `'_` cannot be used here
13-
//[rust2018]~^^ ERROR `'_` cannot be used here
12+
//[rust2015,rust2018]~^ ERROR `'_` cannot be used here
1413
{ }
1514

1615
fn main() {}

0 commit comments

Comments
 (0)