1
Fork 0

split compare_predicate_entailment and collect_trait_impl_trait_tys out

This commit is contained in:
Michael Goulet 2022-09-09 21:57:38 +00:00
parent 395e56f398
commit bec079d1a9
7 changed files with 137 additions and 33 deletions

View file

@ -1772,7 +1772,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
// In some (most?) cases cause.body_id points to actual body, but in some cases
// it's an actual definition. According to the comments (e.g. in
// librustc_typeck/check/compare_method.rs:compare_predicates_and_trait_impl_trait_tys) the latter
// librustc_typeck/check/compare_method.rs:compare_predicate_entailment) the latter
// is relied upon by some other code. This might (or might not) need cleanup.
let body_owner_def_id =
self.tcx.hir().opt_local_def_id(cause.body_id).unwrap_or_else(|| {