Skip to content

Commit

Permalink
fix FIXME comment
Browse files Browse the repository at this point in the history
Co-Authored-By: varkor <github@varkor.com>
  • Loading branch information
lcnr and varkor authored Mar 19, 2020
1 parent 6cb5846 commit 17c94c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_typeck/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 17c94c6

Please sign in to comment.