File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_privacy/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -846,7 +846,7 @@ impl ReachEverythingInTheInterfaceVisitor<'_, '_> {
846
846
fn generics ( & mut self ) -> & mut Self {
847
847
for param in & self . ev . tcx . generics_of ( self . item_def_id ) . params {
848
848
match param. kind {
849
- GenericParamDefKind :: Lifetime => { }
849
+ GenericParamDefKind :: Constness | GenericParamDefKind :: Lifetime => { }
850
850
GenericParamDefKind :: Type { has_default, .. } => {
851
851
if has_default {
852
852
self . visit ( self . ev . tcx . type_of ( param. def_id ) ) ;
@@ -1674,7 +1674,7 @@ impl SearchInterfaceForPrivateItemsVisitor<'_> {
1674
1674
fn generics ( & mut self ) -> & mut Self {
1675
1675
for param in & self . tcx . generics_of ( self . item_def_id ) . params {
1676
1676
match param. kind {
1677
- GenericParamDefKind :: Lifetime => { }
1677
+ GenericParamDefKind :: Constness | GenericParamDefKind :: Lifetime => { }
1678
1678
GenericParamDefKind :: Type { has_default, .. } => {
1679
1679
if has_default {
1680
1680
self . visit ( self . tcx . type_of ( param. def_id ) ) ;
You can’t perform that action at this time.
0 commit comments