mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 13:06:28 +03:00
@@ -47,7 +47,7 @@ pub fn check_transmute(&self, from: Ty<'tcx>, to: Ty<'tcx>, hir_id: HirId) {
|
||||
let to = normalize(to);
|
||||
trace!(?from, ?to);
|
||||
if from.has_non_region_infer() || to.has_non_region_infer() {
|
||||
// We can't check anything if there are inference variables.
|
||||
tcx.sess.delay_span_bug(span, "argument to transmute has inference variables");
|
||||
return;
|
||||
}
|
||||
// Transmutes that are only changing lifetimes are always ok.
|
||||
|
||||
Reference in New Issue
Block a user