1
Fork 0

Add some warnings

This commit is contained in:
bjorn3 2018-06-30 18:56:29 +02:00
parent 92b14263a4
commit 0c592a6bb1

View 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)),
}
}