Skip to content

Commit 0592976

Browse files
Bless tests
1 parent bd8a6d7 commit 0592976

File tree

6 files changed

+4
-29
lines changed

6 files changed

+4
-29
lines changed

src/test/compile-fail/consts/const-fn-error.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const fn f(x: usize) -> usize {
1010
//~| ERROR E0658
1111
//~| ERROR E0080
1212
//~| ERROR E0744
13-
//~| ERROR E0019
1413
sum += i;
1514
}
1615
sum

src/test/compile-fail/issue-52443.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ fn main() {
1111
//~| ERROR calls in constants are limited to constant functions
1212
//~| ERROR references in constants may only refer to immutable values
1313
//~| ERROR calls in constants are limited to constant functions
14-
//~| ERROR constant contains unimplemented expression type
1514
//~| ERROR evaluation of constant value failed
1615
}

src/test/ui/consts/control-flow/feature-gate-const-if-match.rs

-1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,5 @@ fn main() { //[if_match]~ ERROR fatal error triggered by #[rustc_error]
113113
//[stock]~^ ERROR `match` is not allowed in a `const`
114114
if let Some(x) = Some(x) { x } else { 1 }
115115
//[stock]~^ ERROR `if` is not allowed in a `const`
116-
//[stock]~| ERROR constant contains unimplemented expression type
117116
}];
118117
}

src/test/ui/consts/control-flow/feature-gate-const-if-match.stock.stderr

+2-9
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,6 @@ LL | const MATCH: i32 = match 0 { 1 => 2, _ => 0 };
237237
= note: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information
238238
= help: add `#![feature(const_if_match)]` to the crate attributes to enable
239239

240-
error[E0019]: constant contains unimplemented expression type
241-
--> $DIR/feature-gate-const-if-match.rs:114:21
242-
|
243-
LL | if let Some(x) = Some(x) { x } else { 1 }
244-
| ^
245-
246-
error: aborting due to 25 previous errors
240+
error: aborting due to 24 previous errors
247241

248-
Some errors have detailed explanations: E0019, E0658.
249-
For more information about an error, try `rustc --explain E0019`.
242+
For more information about this error, try `rustc --explain E0658`.

src/test/ui/or-patterns/feature-gate-const-fn.rs

-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ fn main() {
3030
let x = Ok(3);
3131
let Ok(y) | Err(y) = x;
3232
//~^ ERROR or-pattern is not allowed in a `const`
33-
//~| ERROR constant contains unimplemented expression type
34-
//~| ERROR constant contains unimplemented expression type
3533
2
3634
}];
3735
}

src/test/ui/or-patterns/feature-gate-const-fn.stderr

+2-15
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,6 @@ LL | let Ok(y) | Err(y) = x;
5252
= note: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information
5353
= help: add `#![feature(const_if_match)]` to the crate attributes to enable
5454

55-
error[E0019]: constant contains unimplemented expression type
56-
--> $DIR/feature-gate-const-fn.rs:31:25
57-
|
58-
LL | let Ok(y) | Err(y) = x;
59-
| ^
60-
61-
error[E0019]: constant contains unimplemented expression type
62-
--> $DIR/feature-gate-const-fn.rs:31:16
63-
|
64-
LL | let Ok(y) | Err(y) = x;
65-
| ^
66-
67-
error: aborting due to 8 previous errors
55+
error: aborting due to 6 previous errors
6856

69-
Some errors have detailed explanations: E0019, E0658.
70-
For more information about an error, try `rustc --explain E0019`.
57+
For more information about this error, try `rustc --explain E0658`.

0 commit comments

Comments
 (0)