make sure we still eagerly emit errors
This commit is contained in:
parent
a992defc8b
commit
82f23d56b7
3 changed files with 28 additions and 2 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue