Skip to content

Commit dc94664

Browse files
Clean up some bad ui testing annotations
1 parent 1b198b3 commit dc94664

8 files changed

+17
-17
lines changed

tests/ui/generic-associated-types/issue-86218.rs

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ trait Yay<AdditionalValue> {
1717

1818
impl<'a> Yay<&'a ()> for () {
1919
type InnerStream<'s> = impl Stream<Item = i32> + 's;
20-
//^ ERROR does not fulfill the required lifetime
2120
fn foo<'s>() -> Self::InnerStream<'s> {
2221
()
2322
}

tests/ui/generic-associated-types/issue-90014-tait.rs

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ struct Foo<'a>(&'a mut ());
1313

1414
impl Foo<'_> {
1515
type Fut<'a> = impl Future<Output = ()>;
16-
//^ ERROR: the type `&mut ()` does not fulfill the required lifetime
1716

1817
fn make_fut<'a>(&'a self) -> Self::Fut<'a> {
1918
async { () }

tests/ui/generic-associated-types/issue-90014-tait.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
error[E0308]: mismatched types
2-
--> $DIR/issue-90014-tait.rs:19:9
2+
--> $DIR/issue-90014-tait.rs:18:9
33
|
44
LL | type Fut<'a> = impl Future<Output = ()>;
55
| ------------------------ the expected future
6-
...
6+
LL |
77
LL | fn make_fut<'a>(&'a self) -> Self::Fut<'a> {
88
| ------------- expected `Foo<'_>::Fut<'a>` because of return type
99
LL | async { () }
1010
| ^^^^^^^^^^^^ expected future, found `async` block
1111
|
1212
= note: expected opaque type `Foo<'_>::Fut<'a>`
13-
found `async` block `[async block@$DIR/issue-90014-tait.rs:19:9: 19:21]`
13+
found `async` block `[async block@$DIR/issue-90014-tait.rs:18:9: 18:21]`
1414
note: this item must have the opaque type in its signature in order to be able to register hidden types
15-
--> $DIR/issue-90014-tait.rs:18:8
15+
--> $DIR/issue-90014-tait.rs:17:8
1616
|
1717
LL | fn make_fut<'a>(&'a self) -> Self::Fut<'a> {
1818
| ^^^^^^^^

tests/ui/internal/internal-unstable.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ extern crate internal_unstable;
88

99
struct Baz {
1010
#[allow_internal_unstable]
11-
//^ WARN `#[allow_internal_unstable]` is ignored on struct fields and match arms
1211
baz: u8,
1312
}
1413

@@ -50,7 +49,6 @@ fn main() {
5049

5150
match true {
5251
#[allow_internal_unstable]
53-
//^ WARN `#[allow_internal_unstable]` is ignored on struct fields and match arms
5452
_ => {}
5553
}
5654
}

tests/ui/internal/internal-unstable.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
error[E0658]: use of unstable library feature 'function'
2-
--> $DIR/internal-unstable.rs:41:25
2+
--> $DIR/internal-unstable.rs:40:25
33
|
44
LL | pass_through_allow!(internal_unstable::unstable());
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= help: add `#![feature(function)]` to the crate attributes to enable
88

99
error[E0658]: use of unstable library feature 'function'
10-
--> $DIR/internal-unstable.rs:43:27
10+
--> $DIR/internal-unstable.rs:42:27
1111
|
1212
LL | pass_through_noallow!(internal_unstable::unstable());
1313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1414
|
1515
= help: add `#![feature(function)]` to the crate attributes to enable
1616

1717
error[E0658]: use of unstable library feature 'function'
18-
--> $DIR/internal-unstable.rs:47:22
18+
--> $DIR/internal-unstable.rs:46:22
1919
|
2020
LL | println!("{:?}", internal_unstable::unstable());
2121
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2222
|
2323
= help: add `#![feature(function)]` to the crate attributes to enable
2424

2525
error[E0658]: use of unstable library feature 'function'
26-
--> $DIR/internal-unstable.rs:49:10
26+
--> $DIR/internal-unstable.rs:48:10
2727
|
2828
LL | bar!(internal_unstable::unstable());
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030
|
3131
= help: add `#![feature(function)]` to the crate attributes to enable
3232

3333
error[E0658]: use of unstable library feature 'function'
34-
--> $DIR/internal-unstable.rs:19:9
34+
--> $DIR/internal-unstable.rs:18:9
3535
|
3636
LL | internal_unstable::unstable();
3737
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/ui/parser/issues/issue-70583-block-is-empty-2.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ pub enum ErrorHandled {
66
impl ErrorHandled {
77
pub fn assert_reported(self) {
88
match self {
9+
//~^ NOTE this delimiter might not be properly closed...
910
ErrorHandled::Reported => {}}
10-
//^~ ERROR block is empty, you might have not meant to close it
11+
//~^ NOTE block is empty, you might have not meant to close it
12+
//~| NOTE as it matches this but it has different indentation
1113
ErrorHandled::TooGeneric => panic!(),
1214
}
1315
}
14-
} //~ ERROR unexpected closing delimiter: `}`
16+
}
17+
//~^ ERROR unexpected closing delimiter: `}`
18+
//~| NOTE unexpected closing delimiter

tests/ui/parser/issues/issue-70583-block-is-empty-2.stderr

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
error: unexpected closing delimiter: `}`
2-
--> $DIR/issue-70583-block-is-empty-2.rs:14:1
2+
--> $DIR/issue-70583-block-is-empty-2.rs:16:1
33
|
44
LL | match self {
55
| - this delimiter might not be properly closed...
6+
LL |
67
LL | ErrorHandled::Reported => {}}
78
| --- ...as it matches this but it has different indentation
89
| |

tests/ui/where-clauses/where-clause-bounds-inconsistency.rs

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ trait Trait {
1414

1515
impl Trait for bool {
1616
fn a<T: Bound>(&self, _: T) {}
17-
//^~ This gets rejected but should be accepted
1817
fn b<T>(&self, _: T) where T: Bound {}
1918
fn c<T: Bound>(&self, _: T) {}
2019
fn d<T>(&self, _: T) where T: Bound {}

0 commit comments

Comments
 (0)