Skip to content

Commit 17c94c6

Browse files
lcnrvarkor
andauthored
fix FIXME comment
Co-Authored-By: varkor <github@varkor.com>
1 parent 6cb5846 commit 17c94c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/collect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ fn generics_of(tcx: TyCtxt<'_>, def_id: DefId) -> &ty::Generics {
12951295
// FIXME(const_generics): a few places in the compiler expect generic params
12961296
// to be in the order lifetimes, then type params, then const params.
12971297
//
1298-
// To prevent internal errors in case a const params are supplied in front of
1298+
// To prevent internal errors in case const parameters are supplied before
12991299
// type parameters we first add all type params, then all const params.
13001300
params.extend(ast_generics.params.iter().filter_map(|param| {
13011301
if let GenericParamKind::Type { ref default, synthetic, .. } = param.kind {

0 commit comments

Comments
 (0)