We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1b3fba0 + 2d5a226 commit 9934077Copy full SHA for 9934077
compiler/rustc_hir_analysis/src/hir_ty_lowering/generics.rs
@@ -228,8 +228,8 @@ pub fn lower_generic_args<'tcx: 'a, 'a>(
228
// Check whether this segment takes generic arguments and the user has provided any.
229
let (generic_args, infer_args) = ctx.args_for_def_id(def_id);
230
231
- let args_iter = generic_args.iter().flat_map(|generic_args| generic_args.args.iter());
232
- let mut args_iter = args_iter.clone().peekable();
+ let mut args_iter =
+ generic_args.iter().flat_map(|generic_args| generic_args.args.iter()).peekable();
233
234
// If we encounter a type or const when we expect a lifetime, we infer the lifetimes.
235
// If we later encounter a lifetime, we know that the arguments were provided in the
0 commit comments