Skip to content

Commit 64f7d4c

Browse files
author
The Miri Conjob Bot
committed
Merge from rustc
2 parents 2f5b717 + 96086aa commit 64f7d4c

File tree

4 files changed

+2
-26
lines changed

4 files changed

+2
-26
lines changed

tests/ui/crashes/ice-6254.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ fn main() {
1111
// This used to cause an ICE (https://github.com/rust-lang/rust/issues/78071)
1212
match FOO_REF_REF {
1313
FOO_REF_REF => {},
14-
//~^ ERROR: to use a constant of type `Foo` in a pattern, `Foo` must be annotated
15-
//~| NOTE: for more information, see issue #62411 <https://github.com/rust-lang/ru
1614
Foo(_) => {},
1715
}
1816
}

tests/ui/crashes/ice-6254.stderr

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/ui/modulo_one.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ fn main() {
3333
INT_MIN % NEG_ONE;
3434
//~^ ERROR: this operation will panic at runtime
3535
//~| ERROR: any number modulo -1 will panic/overflow or result in 0
36-
// ONLY caught by rustc
36+
// Not caught by lint, we don't look into static items, even if entirely immutable.
3737
INT_MIN % STATIC_NEG_ONE;
38-
//~^ ERROR: this operation will panic at runtime
3938
}

tests/ui/modulo_one.stderr

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ error: this operation will panic at runtime
1212
LL | INT_MIN % NEG_ONE;
1313
| ^^^^^^^^^^^^^^^^^ attempt to compute `i64::MIN % -1_i64`, which would overflow
1414

15-
error: this operation will panic at runtime
16-
--> $DIR/modulo_one.rs:37:5
17-
|
18-
LL | INT_MIN % STATIC_NEG_ONE;
19-
| ^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `i64::MIN % -1_i64`, which would overflow
20-
2115
error: any number modulo 1 will be 0
2216
--> $DIR/modulo_one.rs:8:5
2317
|
@@ -57,5 +51,5 @@ error: any number modulo -1 will panic/overflow or result in 0
5751
LL | INT_MIN % NEG_ONE;
5852
| ^^^^^^^^^^^^^^^^^
5953

60-
error: aborting due to 9 previous errors
54+
error: aborting due to 8 previous errors
6155

0 commit comments

Comments
 (0)