1
Fork 0

make sure we still eagerly emit errors

This commit is contained in:
Michael Goulet 2023-10-05 09:43:55 +00:00
parent a992defc8b
commit 82f23d56b7
3 changed files with 28 additions and 2 deletions

View file

@ -652,7 +652,8 @@ impl<'tcx> Cx<'tcx> {
promoted: None,
},
tcx.type_of(anon_const.def_id).instantiate_identity(),
);
)
.normalize(tcx, self.param_env);
let span = tcx.def_span(anon_const.def_id);
InlineAsmOperand::Const { value, span }
@ -668,7 +669,8 @@ impl<'tcx> Cx<'tcx> {
promoted: None,
},
tcx.type_of(anon_const.def_id).instantiate_identity(),
);
)
.normalize(tcx, self.param_env);
let span = tcx.def_span(anon_const.def_id);
InlineAsmOperand::SymFn { value, span }