]> git.lizzy.rs Git - rust.git/blobdiff - src/comp/middle/trans.rs
Distinguish #924
[rust.git] / src / comp / middle / trans.rs
index 06acf7ded06eaabeccbb1a39631f05a0514dc090..9815870cb00218d6ef53264af9aea866f87c0eb2 100644 (file)
@@ -4036,7 +4036,12 @@ fn trans_rec(bcx: @block_ctxt, fields: [ast::field],
       none. { C_nil() }
     };
 
-    let ty_fields = alt ty::struct(bcx_tcx(bcx), t) { ty::ty_rec(f) { f } };
+    let ty_fields = alt ty::struct(bcx_tcx(bcx), t) {
+        ty::ty_rec(f) { f }
+        ty::ty_bot. {
+          bcx_ccx(bcx).sess.bug("https://github.com/graydon/rust/issues/924")
+        }
+    };
     let temp_cleanups = [], i = 0;
     for tf in ty_fields {
         let fdest = alt dest {