aboutsummaryrefslogtreecommitdiff
path: root/src/internals/receiver.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/internals/receiver.rs')
-rw-r--r--src/internals/receiver.rs17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/internals/receiver.rs b/src/internals/receiver.rs
index b08c670..5dc01db 100644
--- a/src/internals/receiver.rs
+++ b/src/internals/receiver.rs
@@ -179,10 +179,13 @@ impl ReplaceReceiver<'_> {
for arg in &mut arguments.args {
match arg {
GenericArgument::Type(arg) => self.visit_type_mut(arg),
- GenericArgument::Binding(arg) => self.visit_type_mut(&mut arg.ty),
+ GenericArgument::AssocType(arg) => self.visit_type_mut(&mut arg.ty),
GenericArgument::Lifetime(_)
- | GenericArgument::Constraint(_)
- | GenericArgument::Const(_) => {}
+ | GenericArgument::Const(_)
+ | GenericArgument::AssocConst(_)
+ | GenericArgument::Constraint(_) => {}
+ #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
+ _ => {}
}
}
}
@@ -205,7 +208,9 @@ impl ReplaceReceiver<'_> {
fn visit_type_param_bound_mut(&mut self, bound: &mut TypeParamBound) {
match bound {
TypeParamBound::Trait(bound) => self.visit_path_mut(&mut bound.path),
- TypeParamBound::Lifetime(_) => {}
+ TypeParamBound::Lifetime(_) | TypeParamBound::Verbatim(_) => {}
+ #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
+ _ => {}
}
}
@@ -229,7 +234,9 @@ impl ReplaceReceiver<'_> {
self.visit_type_param_bound_mut(bound);
}
}
- WherePredicate::Lifetime(_) | WherePredicate::Eq(_) => {}
+ WherePredicate::Lifetime(_) => {}
+ #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
+ _ => {}
}
}
}