Fix typos in rustc_infer::infer::nll_relate

This commit is contained in:
pierwill 2021-02-28 10:10:58 -08:00
parent 1b1d85fd4c
commit ebe798e31e
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ where
{
infcx: &'me InferCtxt<'me, 'tcx>,
/// Callback to use when we deduce an outlives relationship
/// Callback to use when we deduce an outlives relationship.
delegate: D,
/// How are we relating `a` and `b`?
@ -768,7 +768,7 @@ impl<'me, 'tcx> TypeVisitor<'tcx> for ScopeInstantiator<'me, 'tcx> {
}
}
/// The "type generalize" is used when handling inference variables.
/// The "type generalizer" is used when handling inference variables.
///
/// The basic strategy for handling a constraint like `?A <: B` is to
/// apply a "generalization strategy" to the type `B` -- this replaces