1
Fork 0

try to get rid of mir::Const::normalize

This commit is contained in:
Ralf Jung 2024-09-28 21:15:18 +02:00
parent e6eb45143c
commit 921a5ef6d7
3 changed files with 3 additions and 19 deletions

View file

@ -703,8 +703,7 @@ impl<'tcx> Cx<'tcx> {
tcx,
anon_const.def_id.to_def_id(),
)
.instantiate_identity()
.normalize(tcx, self.param_env);
.instantiate_identity();
let span = tcx.def_span(anon_const.def_id);
InlineAsmOperand::Const { value, span }
@ -714,8 +713,7 @@ impl<'tcx> Cx<'tcx> {
tcx,
anon_const.def_id.to_def_id(),
)
.instantiate_identity()
.normalize(tcx, self.param_env);
.instantiate_identity();
let span = tcx.def_span(anon_const.def_id);
InlineAsmOperand::SymFn { value, span }