1
Fork 0

Cleanups and comments

This commit is contained in:
Jack Huey 2021-03-26 17:40:15 -04:00
parent 0c98dc66fd
commit 7108918db6
7 changed files with 216 additions and 267 deletions

View file

@ -82,7 +82,6 @@ impl<'tcx> AutoTraitFinder<'tcx> {
) -> AutoTraitResult<A> {
let tcx = self.tcx;
debug_assert!(!ty.has_escaping_bound_vars());
let trait_ref = ty::TraitRef { def_id: trait_did, substs: tcx.mk_substs_trait(ty, &[]) };
let trait_pred = ty::Binder::dummy(trait_ref);