Skip to content

Commit fec6ffc

Browse files
committed
Add delay span bug
Signed-off-by: hi-rustin <[email protected]>
1 parent a60e267 commit fec6ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_hir_typeck/src/intrinsicck.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
4747
let to = normalize(to);
4848
trace!(?from, ?to);
4949
if from.has_non_region_infer() || to.has_non_region_infer() {
50-
// We can't check anything if there are inference variables.
50+
tcx.sess.delay_span_bug(span, "argument to transmute has inference variables");
5151
return;
5252
}
5353
// Transmutes that are only changing lifetimes are always ok.

0 commit comments

Comments
 (0)