Skip to content

Commit 6e09d91

Browse files
committed
default impls for methods can contain existential types inside
1 parent 160cbda commit 6e09d91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_typeck/collect.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,7 @@ fn find_existential_constraints<'a, 'tcx>(
12501250
match tcx.hir.get(parent) {
12511251
NodeItem(ref it) => intravisit::walk_item(&mut locator, it),
12521252
NodeImplItem(ref it) => intravisit::walk_impl_item(&mut locator, it),
1253+
NodeTraitItem(ref it) => intravisit::walk_trait_item(&mut locator, it),
12531254
other => bug!("{:?} is not a valid parent of an existential type item", other),
12541255
}
12551256
}

0 commit comments

Comments
 (0)