]> git.lizzy.rs Git - rust.git/commitdiff
Add some warnings
authorbjorn3 <bjorn3@users.noreply.github.com>
Sat, 30 Jun 2018 16:56:29 +0000 (18:56 +0200)
committerbjorn3 <bjorn3@users.noreply.github.com>
Sat, 14 Jul 2018 10:07:35 +0000 (12:07 +0200)
src/base.rs

index 29ec4c14d2c3f79d7d9c1ad261131b3a107e585b..41ff8ec5d24474955b0f72b6910fd9e37c86619f 100644 (file)
@@ -47,9 +47,9 @@ pub fn trans_mono_item<'a, 'tcx: 'a>(cx: &mut CodegenCx<'a, 'tcx, CurrentBackend
                 cx.module.define_function(func_id, context).unwrap();
                 context.clear();
             }
-            _ => {}
+            inst => cx.tcx.sess.warn(&format!("Unimplemented instance {:?}", inst)),
         }
-        _ => {}
+        mono_item => cx.tcx.sess.warn(&format!("Unimplemented mono item {:?}", mono_item)),
     }
 }