]> git.lizzy.rs Git - rust.git/commitdiff
Fix test for windows os
authorPaweł Romanowski <pawroman@gmail.com>
Tue, 9 Oct 2018 06:24:29 +0000 (08:24 +0200)
committerPaweł Romanowski <pawroman@gmail.com>
Tue, 9 Oct 2018 06:24:29 +0000 (08:24 +0200)
src/test/ui/range/issue-54505-no-std.rs
src/test/ui/range/issue-54505-no-std.stderr

index a6a49cc222e894c42a6d9e342165313f299dc527..1915fd82899aa2669898059cf37cce77d0bcc945 100644 (file)
 #[lang = "eh_personality"]
 extern fn eh_personality() {}
 
+#[cfg(target_os = "windows")]
+#[lang = "eh_unwind_resume"]
+extern fn eh_unwind_resume() {}
+
 
 // take a reference to any built-in range
 fn take_range(_r: &impl RangeBounds<i8>) {}
index 00eb9cda9c3e3d161b81f7d36636bed144c1cc40..4922e59953c9c8daaa4c02af8675bfb84d98d53d 100644 (file)
@@ -1,7 +1,7 @@
 error: `#[panic_handler]` function required, but not found
 
 error[E0308]: mismatched types
-  --> $DIR/issue-54505-no-std.rs:24:16
+  --> $DIR/issue-54505-no-std.rs:28:16
    |
 LL |     take_range(0..1);
    |                ^^^^
@@ -13,7 +13,7 @@ LL |     take_range(0..1);
               found type `core::ops::Range<{integer}>`
 
 error[E0308]: mismatched types
-  --> $DIR/issue-54505-no-std.rs:29:16
+  --> $DIR/issue-54505-no-std.rs:33:16
    |
 LL |     take_range(1..);
    |                ^^^
@@ -25,7 +25,7 @@ LL |     take_range(1..);
               found type `core::ops::RangeFrom<{integer}>`
 
 error[E0308]: mismatched types
-  --> $DIR/issue-54505-no-std.rs:34:16
+  --> $DIR/issue-54505-no-std.rs:38:16
    |
 LL |     take_range(..);
    |                ^^
@@ -37,7 +37,7 @@ LL |     take_range(..);
               found type `core::ops::RangeFull`
 
 error[E0308]: mismatched types
-  --> $DIR/issue-54505-no-std.rs:39:16
+  --> $DIR/issue-54505-no-std.rs:43:16
    |
 LL |     take_range(0..=1);
    |                ^^^^^
@@ -49,7 +49,7 @@ LL |     take_range(0..=1);
               found type `core::ops::RangeInclusive<{integer}>`
 
 error[E0308]: mismatched types
-  --> $DIR/issue-54505-no-std.rs:44:16
+  --> $DIR/issue-54505-no-std.rs:48:16
    |
 LL |     take_range(..5);
    |                ^^^
@@ -61,7 +61,7 @@ LL |     take_range(..5);
               found type `core::ops::RangeTo<{integer}>`
 
 error[E0308]: mismatched types
-  --> $DIR/issue-54505-no-std.rs:49:16
+  --> $DIR/issue-54505-no-std.rs:53:16
    |
 LL |     take_range(..=42);
    |                ^^^^^