about summary refs log tree commit diff
path: root/src/test/run-pass
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2017-11-09 00:46:15 +0200
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2017-11-30 15:18:25 +0200
commit5a00b7cb74ba1511c012c0163a29cd6972d64135 (patch)
treeae79023e34f3451eb2273faf04fae0bca75b8e05 /src/test/run-pass
parent7745a7a8177259cd2ea0b48eaf35dd943eec2896 (diff)
downloadrust-5a00b7cb74ba1511c012c0163a29cd6972d64135.tar.gz
rust-5a00b7cb74ba1511c012c0163a29cd6972d64135.zip
make coercions to `!` in unreachable code a hard error
This was added to cover up a lazy extra semicolon in #35849, but does
not actually make sense. This is removed as a part of the stabilization
of `never_type`.
Diffstat (limited to 'src/test/run-pass')
-rw-r--r--src/test/run-pass/diverging-fn-tail-35849.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/diverging-fn-tail-35849.rs b/src/test/run-pass/diverging-fn-tail-35849.rs
index 6c05a02e718..dfd99bcc9fb 100644
--- a/src/test/run-pass/diverging-fn-tail-35849.rs
+++ b/src/test/run-pass/diverging-fn-tail-35849.rs
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[allow(coerce_never)]
 fn assert_sizeof() -> ! {
     unsafe {
         ::std::mem::transmute::<f64, [u8; 8]>(panic!())
@@ -15,4 +16,3 @@ fn assert_sizeof() -> ! {
 }
 
 fn main() { }
-