Skip to content

Commit

Permalink
Rollup merge of rust-lang#93672 - lcnr:const-param-defaults-xx, r=mat…
Browse files Browse the repository at this point in the history
…thewjasper

update comment wrt const param defaults

after rust-lang#93669 i looked through all other uses of `GenericParamKind::Const` again to detect if we missed the `default` there as well, but afaict we really only missed lifetime resolution '^^ at least i found an outdated comment :3
  • Loading branch information
matthiaskrgr committed Feb 8, 2022
2 parents 54ecec9 + ac0027d commit b7f7850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_builtin_macros/src/deriving/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ fn inject_impl_of_structural_trait(

// Create the type of `self`.
//
// in addition, remove defaults from type params (impls cannot have them).
// in addition, remove defaults from generic params (impls cannot have them).
let self_params: Vec<_> = generics
.params
.iter_mut()
Expand Down

0 comments on commit b7f7850

Please sign in to comment.