Skip to content

Commit 3a2ad57

Browse files
committed
Remove NOTE/HELP annotations from error index tests
1 parent 2974104 commit 3a2ad57

Some content is hidden

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

119 files changed

+22
-216
lines changed

src/test/compile-fail/E0005.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@
1111
fn main() {
1212
let x = Some(1);
1313
let Some(y) = x; //~ ERROR E0005
14-
//~| NOTE pattern `None` not covered
1514
}

src/test/compile-fail/E0007.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ fn main() {
1313
match x {
1414
op_string @ Some(s) => {},
1515
//~^ ERROR E0007
16-
//~| NOTE binds an already bound by-move value by moving it
1716
//~| ERROR E0303
18-
//~| NOTE not allowed after `@`
1917
None => {},
2018
}
2119
}

src/test/compile-fail/E0008.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ fn main() {
1212
match Some("hi".to_string()) {
1313
Some(s) if s.len() == 0 => {},
1414
//~^ ERROR E0008
15-
//~| NOTE moves value into pattern guard
1615
_ => {},
1716
}
1817
}

src/test/compile-fail/E0009.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ fn main() {
1414
match x {
1515
Some((y, ref z)) => {},
1616
//~^ ERROR E0009
17-
//~| NOTE by-move pattern here
18-
//~| NOTE both by-ref and by-move used
1917
None => panic!()
2018
}
2119
}

src/test/compile-fail/E0010.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@
1212
#![allow(warnings)]
1313

1414
const CON : Box<i32> = box 0; //~ ERROR E0010
15-
//~| NOTE allocation not allowed in
1615

1716
fn main() {}

src/test/compile-fail/E0017.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ static X: i32 = 1;
1212
const C: i32 = 2;
1313

1414
const CR: &'static mut i32 = &mut C; //~ ERROR E0017
15-
//~| NOTE constants require immutable values
1615
static STATIC_REF: &'static mut i32 = &mut X; //~ ERROR E0017
17-
//~| NOTE statics require immutable values
1816
//~| ERROR cannot borrow
1917
static CONST_REF: &'static mut i32 = &mut C; //~ ERROR E0017
20-
//~| NOTE statics require immutable values
2118
fn main() {}

src/test/compile-fail/E0023.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ fn main() {
1818
let x = Fruit::Apple(String::new(), String::new());
1919
match x {
2020
Fruit::Apple(a) => {}, //~ ERROR E0023
21-
//~| NOTE expected 2 fields, found 1
2221
Fruit::Apple(a, b, c) => {}, //~ ERROR E0023
23-
//~| NOTE expected 2 fields, found 3
2422
Fruit::Pear(1, 2) => {}, //~ ERROR E0023
25-
//~| NOTE expected 1 field, found 2
2623
}
2724
}

src/test/compile-fail/E0025.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,4 @@ fn main() {
1717
let x = Foo { a:1, b:2 };
1818
let Foo { a: x, a: y, b: 0 } = x;
1919
//~^ ERROR field `a` bound multiple times in the pattern
20-
//~| NOTE multiple uses of `a` in pattern
21-
//~| NOTE first use of `a`
2220
}

src/test/compile-fail/E0026.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ fn main() {
1818
match thing {
1919
Thing { x, y, z } => {}
2020
//~^ ERROR struct `Thing` does not have a field named `z` [E0026]
21-
//~| NOTE struct `Thing` does not have field `z`
2221
}
2322
}

src/test/compile-fail/E0027.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ fn main() {
1919
match d {
2020
Dog { age: x } => {}
2121
//~^ ERROR pattern does not mention field `name`
22-
//~| NOTE missing field `name`
2322
}
2423
}

0 commit comments

Comments
 (0)