Validate ExistentialPredicate args
This commit is contained in:
parent
9368b9f57e
commit
2239f1c5cd
10 changed files with 103 additions and 32 deletions
|
@ -322,7 +322,7 @@ impl<'tcx> ReachableContext<'tcx> {
|
|||
self.visit(ty);
|
||||
// Manually visit to actually see the trait's `DefId`. Type visitors won't see it
|
||||
if let Some(trait_ref) = dyn_ty.principal() {
|
||||
let ExistentialTraitRef { def_id, args } = trait_ref.skip_binder();
|
||||
let ExistentialTraitRef { def_id, args, .. } = trait_ref.skip_binder();
|
||||
self.visit_def_id(def_id, "", &"");
|
||||
self.visit(args);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue