X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_hir_analysis%2Fsrc%2Fastconv%2Fgenerics.rs;h=7a499327dbf240f1f08e9874a417a24e3e31ee82;hb=5e37043d63bfe2f3be8fa5a05b07d6c0dad5775d;hp=ce3682a8f2d5cda48084a4566eb84e76ccb4e9c4;hpb=278e02a5b614d8a50a6549bbeb5b10ed4a42b6f8;p=rust.git diff --git a/compiler/rustc_hir_analysis/src/astconv/generics.rs b/compiler/rustc_hir_analysis/src/astconv/generics.rs index ce3682a8f2d..7a499327dbf 100644 --- a/compiler/rustc_hir_analysis/src/astconv/generics.rs +++ b/compiler/rustc_hir_analysis/src/astconv/generics.rs @@ -337,13 +337,13 @@ pub fn create_substs_for_generic_args<'tcx, 'a>( // We should never be able to reach this point with well-formed input. // There are three situations in which we can encounter this issue. // - // 1. The number of arguments is incorrect. In this case, an error - // will already have been emitted, and we can ignore it. - // 2. There are late-bound lifetime parameters present, yet the - // lifetime arguments have also been explicitly specified by the - // user. - // 3. We've inferred some lifetimes, which have been provided later (i.e. - // after a type or const). We want to throw an error in this case. + // 1. The number of arguments is incorrect. In this case, an error + // will already have been emitted, and we can ignore it. + // 2. There are late-bound lifetime parameters present, yet the + // lifetime arguments have also been explicitly specified by the + // user. + // 3. We've inferred some lifetimes, which have been provided later (i.e. + // after a type or const). We want to throw an error in this case. if arg_count.correct.is_ok() && arg_count.explicit_late_bound == ExplicitLateBound::No