Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b8d3c62

Browse files
committed
Fixup tests
1 parent 12e23c4 commit b8d3c62

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

tests/mir-opt/issue_76432.test.SimplifyComparisonIntegral.panic-abort.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
let _4: [T; 3];
1010
let mut _5: usize;
1111
let mut _6: bool;
12-
let _10: !;
12+
let mut _10: !;
1313
scope 1 {
1414
debug v => _2;
1515
let _7: &T;

tests/mir-opt/issue_76432.test.SimplifyComparisonIntegral.panic-unwind.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
let _4: [T; 3];
1010
let mut _5: usize;
1111
let mut _6: bool;
12-
let _10: !;
12+
let mut _10: !;
1313
scope 1 {
1414
debug v => _2;
1515
let _7: &T;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error[E0308]: mismatched types
2+
--> $DIR/issue-5500-1.rs:10:18
3+
|
4+
LL | _iter.node = &panic!()
5+
| ---------- ^^^^^^^^^ expected `&usize`, found `&!`
6+
| |
7+
| expected due to the type of this binding
8+
|
9+
= note: expected reference `&usize`
10+
found reference `&!`
11+
12+
error: aborting due to 1 previous error
13+
14+
For more information about this error, try `rustc --explain E0308`.

tests/ui/proc-macro/quote-debug.stdout

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ fn main() {
3232
(iter.next(), iter.next()) {
3333
lit.set_span(crate::Span::recover_proc_macro_span(2));
3434
lit
35-
} else {
36-
{ ::core::panicking::unreachable_cold_explicit(); }
37-
}
35+
} else { ::core::panicking::unreachable_cold_explicit() }
3836
})),
3937
crate::TokenStream::from(crate::TokenTree::Punct(crate::Punct::new(';',
4038
crate::Spacing::Alone)))].iter().cloned().collect::<crate::TokenStream>()

0 commit comments

Comments
 (0)