Skip to content

Commit 1f7dafb

Browse files
committed
Fix test for windows os
1 parent 882e373 commit 1f7dafb

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Diff for: src/test/ui/range/issue-54505-no-std.rs

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ use core::ops::RangeBounds;
1515
#[lang = "eh_personality"]
1616
extern fn eh_personality() {}
1717

18+
#[cfg(target_os = "windows")]
19+
#[lang = "eh_unwind_resume"]
20+
extern fn eh_unwind_resume() {}
21+
1822

1923
// take a reference to any built-in range
2024
fn take_range(_r: &impl RangeBounds<i8>) {}

Diff for: src/test/ui/range/issue-54505-no-std.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: `#[panic_handler]` function required, but not found
22

33
error[E0308]: mismatched types
4-
--> $DIR/issue-54505-no-std.rs:24:16
4+
--> $DIR/issue-54505-no-std.rs:28:16
55
|
66
LL | take_range(0..1);
77
| ^^^^
@@ -13,7 +13,7 @@ LL | take_range(0..1);
1313
found type `core::ops::Range<{integer}>`
1414

1515
error[E0308]: mismatched types
16-
--> $DIR/issue-54505-no-std.rs:29:16
16+
--> $DIR/issue-54505-no-std.rs:33:16
1717
|
1818
LL | take_range(1..);
1919
| ^^^
@@ -25,7 +25,7 @@ LL | take_range(1..);
2525
found type `core::ops::RangeFrom<{integer}>`
2626

2727
error[E0308]: mismatched types
28-
--> $DIR/issue-54505-no-std.rs:34:16
28+
--> $DIR/issue-54505-no-std.rs:38:16
2929
|
3030
LL | take_range(..);
3131
| ^^
@@ -37,7 +37,7 @@ LL | take_range(..);
3737
found type `core::ops::RangeFull`
3838

3939
error[E0308]: mismatched types
40-
--> $DIR/issue-54505-no-std.rs:39:16
40+
--> $DIR/issue-54505-no-std.rs:43:16
4141
|
4242
LL | take_range(0..=1);
4343
| ^^^^^
@@ -49,7 +49,7 @@ LL | take_range(0..=1);
4949
found type `core::ops::RangeInclusive<{integer}>`
5050

5151
error[E0308]: mismatched types
52-
--> $DIR/issue-54505-no-std.rs:44:16
52+
--> $DIR/issue-54505-no-std.rs:48:16
5353
|
5454
LL | take_range(..5);
5555
| ^^^
@@ -61,7 +61,7 @@ LL | take_range(..5);
6161
found type `core::ops::RangeTo<{integer}>`
6262

6363
error[E0308]: mismatched types
64-
--> $DIR/issue-54505-no-std.rs:49:16
64+
--> $DIR/issue-54505-no-std.rs:53:16
6565
|
6666
LL | take_range(..=42);
6767
| ^^^^^

0 commit comments

Comments
 (0)