From 17c94c6746e94a4349a05bbf6326bebe35893acc Mon Sep 17 00:00:00 2001 From: Bastian Kauschke Date: Fri, 20 Mar 2020 00:28:49 +0100 Subject: [PATCH] fix FIXME comment Co-Authored-By: varkor --- src/librustc_typeck/collect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_typeck/collect.rs b/src/librustc_typeck/collect.rs index 42d6e945ee2c..dadc5b1c1295 100644 --- a/src/librustc_typeck/collect.rs +++ b/src/librustc_typeck/collect.rs @@ -1295,7 +1295,7 @@ fn generics_of(tcx: TyCtxt<'_>, def_id: DefId) -> &ty::Generics { // FIXME(const_generics): a few places in the compiler expect generic params // to be in the order lifetimes, then type params, then const params. // - // To prevent internal errors in case a const params are supplied in front of + // To prevent internal errors in case const parameters are supplied before // type parameters we first add all type params, then all const params. params.extend(ast_generics.params.iter().filter_map(|param| { if let GenericParamKind::Type { ref default, synthetic, .. } = param.kind {