Skip to content

Commit

Permalink
WIP: more improvements for no infer
Browse files Browse the repository at this point in the history
  • Loading branch information
lucarlig committed Apr 11, 2024
1 parent fe8877a commit e668d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lints/par_iter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ fn get_all_methods<'tcx>(
kind: TypeVariableOriginKind::TypeInference,
span: original_expr.span,
});
let args = GenericArgs::for_item(tcx, into_iter_trait, |_, _| ty.into());
let projection_ty = ty::AliasTy::new(tcx, into_iter_trait, args);

let projection_ty = ty::AliasTy::new(tcx, into_iter_trait, GenericArgs::empty());
let projection = ty::Binder::dummy(ty::PredicateKind::Clause(ty::ClauseKind::Projection(
ty::ProjectionPredicate {
projection_ty,
Expand Down

0 comments on commit e668d7c

Please sign in to comment.