We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a60e267 commit fec6ffcCopy full SHA for fec6ffc
compiler/rustc_hir_typeck/src/intrinsicck.rs
@@ -47,7 +47,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
47
let to = normalize(to);
48
trace!(?from, ?to);
49
if from.has_non_region_infer() || to.has_non_region_infer() {
50
- // We can't check anything if there are inference variables.
+ tcx.sess.delay_span_bug(span, "argument to transmute has inference variables");
51
return;
52
}
53
// Transmutes that are only changing lifetimes are always ok.
0 commit comments