remove unnecessary .. patterns

This commit is contained in:
Takayuki Maeda 2022-03-07 02:18:36 +09:00
parent d53e19540e
commit 51a53bf4df
6 changed files with 7 additions and 11 deletions

View file

@ -852,7 +852,7 @@ impl ReachEverythingInTheInterfaceVisitor<'_, '_> {
self.visit(self.ev.tcx.type_of(param.def_id));
}
}
GenericParamDefKind::Const { has_default, .. } => {
GenericParamDefKind::Const { has_default } => {
self.visit(self.ev.tcx.type_of(param.def_id));
if has_default {
self.visit(self.ev.tcx.const_param_default(param.def_id));