Auto merge of #107197 - aliemjay:patch-2, r=jackh726
assume MIR types are fully normalized in ascribe_user_type
This FIXME was introduced in c6a17bf8bc
but it should've been restricted to `ascribe_user_type_skip_wf`.
This commit is contained in:
commit
001a77fac3
@ -181,9 +181,6 @@ pub(super) fn ascribe_user_type(
|
||||
user_ty: ty::UserType<'tcx>,
|
||||
span: Span,
|
||||
) {
|
||||
// FIXME: Ideally MIR types are normalized, but this is not always true.
|
||||
let mir_ty = self.normalize(mir_ty, Locations::All(span));
|
||||
|
||||
self.fully_perform_op(
|
||||
Locations::All(span),
|
||||
ConstraintCategory::Boring,
|
||||
@ -217,7 +214,9 @@ pub(super) fn ascribe_user_type_skip_wf(
|
||||
return;
|
||||
}
|
||||
|
||||
// FIXME: Ideally MIR types are normalized, but this is not always true.
|
||||
let mir_ty = self.normalize(mir_ty, Locations::All(span));
|
||||
|
||||
let cause = ObligationCause::dummy_with_span(span);
|
||||
let param_env = self.param_env;
|
||||
let op = |infcx: &'_ _| {
|
||||
|
Loading…
Reference in New Issue
Block a user