Skip to content

Commit 1f5b201

Browse files
committed
Remove NOTE/HELP annotations from UI tests
1 parent d4e51a8 commit 1f5b201

File tree

462 files changed

+1756
-2814
lines changed

Some content is hidden

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

462 files changed

+1756
-2814
lines changed

src/test/ui/arbitrary-self-types-not-object-safe.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ impl Bar for usize {
3939
fn make_foo() {
4040
let x = Box::new(5usize) as Box<Foo>;
4141
//~^ ERROR E0038
42-
//~| NOTE method `foo` has a non-standard `self` type
43-
//~| NOTE the trait `Foo` cannot be made into an object
4442
//~| ERROR E0038
45-
//~| NOTE method `foo` has a non-standard `self` type
46-
//~| NOTE the trait `Foo` cannot be made into an object
47-
//~| NOTE requirements on the impl of `std::ops::CoerceUnsized<std::boxed::Box<Foo>>`
4843
}
4944

5045
fn make_bar() {

src/test/ui/asm-out-assign-imm.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ fn foo(x: isize) { println!("{}", x); }
2323
target_arch = "aarch64"))]
2424
pub fn main() {
2525
let x: isize;
26-
x = 1; //~ NOTE first assignment
26+
x = 1;
2727
foo(x);
2828
unsafe {
2929
asm!("mov $1, $0" : "=r"(x) : "r"(5));
3030
//~^ ERROR cannot assign twice to immutable variable `x`
31-
//~| NOTE cannot assign twice to immutable
3231
}
3332
foo(x);
3433
}

src/test/ui/asm-out-assign-imm.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0384]: cannot assign twice to immutable variable `x`
22
--> $DIR/asm-out-assign-imm.rs:29:9
33
|
4-
26 | x = 1; //~ NOTE first assignment
4+
26 | x = 1;
55
| ----- first assignment to `x`
66
...
77
29 | asm!("mov $1, $0" : "=r"(x) : "r"(5));

src/test/ui/associated-const-impl-wrong-lifetime.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@ trait Foo {
1515

1616

1717
impl<'a> Foo for &'a () {
18-
//~^ NOTE the lifetime 'a as defined
1918
const NAME: &'a str = "unit";
2019
//~^ ERROR mismatched types [E0308]
21-
//~| NOTE lifetime mismatch
22-
//~| NOTE expected type `&'static str`
23-
//~| NOTE ...does not necessarily outlive the static lifetime
2420
}
2521

2622
fn main() {}

src/test/ui/associated-const-impl-wrong-lifetime.stderr

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0308]: mismatched types
2-
--> $DIR/associated-const-impl-wrong-lifetime.rs:19:5
2+
--> $DIR/associated-const-impl-wrong-lifetime.rs:18:5
33
|
4-
19 | const NAME: &'a str = "unit";
4+
18 | const NAME: &'a str = "unit";
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
66
|
77
= note: expected type `&'static str`
@@ -10,12 +10,9 @@ note: the lifetime 'a as defined on the impl at 17:1...
1010
--> $DIR/associated-const-impl-wrong-lifetime.rs:17:1
1111
|
1212
17 | / impl<'a> Foo for &'a () {
13-
18 | | //~^ NOTE the lifetime 'a as defined
14-
19 | | const NAME: &'a str = "unit";
15-
20 | | //~^ ERROR mismatched types [E0308]
16-
... |
17-
23 | | //~| NOTE ...does not necessarily outlive the static lifetime
18-
24 | | }
13+
18 | | const NAME: &'a str = "unit";
14+
19 | | //~^ ERROR mismatched types [E0308]
15+
20 | | }
1916
| |_^
2017
= note: ...does not necessarily outlive the static lifetime
2118

src/test/ui/associated-const-impl-wrong-type.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010

1111

1212
trait Foo {
13-
const BAR: u32; //~ NOTE type in trait
13+
const BAR: u32;
1414
}
1515

1616
struct SignedBar;
1717

1818
impl Foo for SignedBar {
1919
const BAR: i32 = -1;
2020
//~^ ERROR implemented const `BAR` has an incompatible type for trait [E0326]
21-
//~| NOTE expected u32, found i32
2221
}
2322

2423
fn main() {}

src/test/ui/associated-const-impl-wrong-type.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0326]: implemented const `BAR` has an incompatible type for trait
22
--> $DIR/associated-const-impl-wrong-type.rs:19:16
33
|
4-
13 | const BAR: u32; //~ NOTE type in trait
4+
13 | const BAR: u32;
55
| --- type in trait
66
...
77
19 | const BAR: i32 = -1;

src/test/ui/associated-type-projection-from-multiple-supertraits.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,12 @@
1313

1414
pub trait Vehicle {
1515
type Color;
16-
//~^ NOTE ambiguous `Color` from `Vehicle`
17-
//~| NOTE ambiguous `Color` from `Vehicle`
18-
//~| NOTE ambiguous `Color` from `Vehicle`
1916

2017
fn go(&self) { }
2118
}
2219

2320
pub trait Box {
2421
type Color;
25-
//~^ NOTE ambiguous `Color` from `Box`
26-
//~| NOTE ambiguous `Color` from `Box`
27-
//~| NOTE ambiguous `Color` from `Box`
2822
//
2923
fn mail(&self) { }
3024
}
@@ -34,19 +28,15 @@ pub trait BoxCar : Box + Vehicle {
3428

3529
fn dent<C:BoxCar>(c: C, color: C::Color) {
3630
//~^ ERROR ambiguous associated type `Color` in bounds of `C`
37-
//~| NOTE ambiguous associated type `Color`
3831
}
3932

4033
fn dent_object<COLOR>(c: BoxCar<Color=COLOR>) {
4134
//~^ ERROR ambiguous associated type
4235
//~| ERROR the value of the associated type `Color` (from the trait `Vehicle`) must be specified
43-
//~| NOTE ambiguous associated type `Color`
44-
//~| NOTE missing associated type `Color` value
4536
}
4637

4738
fn paint<C:BoxCar>(c: C, d: C::Color) {
4839
//~^ ERROR ambiguous associated type `Color` in bounds of `C`
49-
//~| NOTE ambiguous associated type `Color`
5040
}
5141

5242
pub fn main() { }

src/test/ui/associated-type-projection-from-multiple-supertraits.stderr

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
error[E0221]: ambiguous associated type `Color` in bounds of `C`
2-
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:35:32
2+
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:29:32
33
|
44
15 | type Color;
55
| ----------- ambiguous `Color` from `Vehicle`
66
...
7-
24 | type Color;
7+
21 | type Color;
88
| ----------- ambiguous `Color` from `Box`
99
...
10-
35 | fn dent<C:BoxCar>(c: C, color: C::Color) {
10+
29 | fn dent<C:BoxCar>(c: C, color: C::Color) {
1111
| ^^^^^^^^ ambiguous associated type `Color`
1212

1313
error[E0221]: ambiguous associated type `Color` in bounds of `BoxCar`
14-
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:40:33
14+
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:33:33
1515
|
1616
15 | type Color;
1717
| ----------- ambiguous `Color` from `Vehicle`
1818
...
19-
24 | type Color;
19+
21 | type Color;
2020
| ----------- ambiguous `Color` from `Box`
2121
...
22-
40 | fn dent_object<COLOR>(c: BoxCar<Color=COLOR>) {
22+
33 | fn dent_object<COLOR>(c: BoxCar<Color=COLOR>) {
2323
| ^^^^^^^^^^^ ambiguous associated type `Color`
2424

2525
error[E0191]: the value of the associated type `Color` (from the trait `Vehicle`) must be specified
26-
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:40:26
26+
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:33:26
2727
|
28-
40 | fn dent_object<COLOR>(c: BoxCar<Color=COLOR>) {
28+
33 | fn dent_object<COLOR>(c: BoxCar<Color=COLOR>) {
2929
| ^^^^^^^^^^^^^^^^^^^ missing associated type `Color` value
3030

3131
error[E0221]: ambiguous associated type `Color` in bounds of `C`
32-
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:47:29
32+
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:38:29
3333
|
3434
15 | type Color;
3535
| ----------- ambiguous `Color` from `Vehicle`
3636
...
37-
24 | type Color;
37+
21 | type Color;
3838
| ----------- ambiguous `Color` from `Box`
3939
...
40-
47 | fn paint<C:BoxCar>(c: C, d: C::Color) {
40+
38 | fn paint<C:BoxCar>(c: C, d: C::Color) {
4141
| ^^^^^^^^ ambiguous associated type `Color`
4242

4343
error: aborting due to 4 previous errors

src/test/ui/associated-types-ICE-when-projecting-out-of-err.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ fn ice<A>(a: A) {
3232
let r = loop {};
3333
r = r + a;
3434
//~^ ERROR the trait bound `(): Add<A>` is not satisfied
35-
//~| NOTE the trait `Add<A>` is not implemented for `()`
3635
}

0 commit comments

Comments
 (0)