1
Fork 0

Address nits

This commit is contained in:
Michael Goulet 2022-09-02 16:55:24 +00:00
parent 249ede4195
commit 70775304cd
4 changed files with 9 additions and 7 deletions

View file

@ -1308,9 +1308,9 @@ fn project<'cx, 'tcx>(
}
}
/// The first thing we have to do is scan through the parameter
/// environment to see whether there are any projection predicates
/// there that can answer this question.
/// If the predicate's item is an `ImplTraitPlaceholder`, we do a select on the
/// corresponding trait ref. If this yields an `impl`, then we're able to project
/// to a concrete type, since we have an `impl`'s method to provide the RPITIT.
fn assemble_candidate_for_impl_trait_in_trait<'cx, 'tcx>(
selcx: &mut SelectionContext<'cx, 'tcx>,
obligation: &ProjectionTyObligation<'tcx>,