We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cb5846 commit 17c94c6Copy full SHA for 17c94c6
src/librustc_typeck/collect.rs
@@ -1295,7 +1295,7 @@ fn generics_of(tcx: TyCtxt<'_>, def_id: DefId) -> &ty::Generics {
1295
// FIXME(const_generics): a few places in the compiler expect generic params
1296
// to be in the order lifetimes, then type params, then const params.
1297
//
1298
- // 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
1299
// type parameters we first add all type params, then all const params.
1300
params.extend(ast_generics.params.iter().filter_map(|param| {
1301
if let GenericParamKind::Type { ref default, synthetic, .. } = param.kind {
0 commit comments