This commit is contained in:
lcnr 2023-06-30 10:57:17 +02:00
parent a2dfed6711
commit 412c6e0b07
4 changed files with 27 additions and 16 deletions

View file

@ -409,7 +409,12 @@ pub fn normalize_param_env_or_error<'tcx>(
)
}
/// Normalize a type and process all resulting obligations, returning any errors
/// Normalize a type and process all resulting obligations, returning any errors.
///
/// FIXME(-Ztrait-solver=next): This should be replaced by `At::deeply_normalize`
/// which has the same behavior with the new solver. Because using a separate
/// fulfillment context worsens caching in the old solver, `At::deeply_normalize`
/// is still lazy with the old solver as it otherwise negatively impacts perf.
#[instrument(skip_all)]
pub fn fully_normalize<'tcx, T>(
infcx: &InferCtxt<'tcx>,