Rollup merge of #93672 - lcnr:const-param-defaults-xx, r=matthewjasper

update comment wrt const param defaults

after #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
This commit is contained in:
Matthias Krüger 2022-02-08 06:47:35 +01:00 committed by GitHub
commit b7f785092d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()