Skip to content

Commit

Permalink
default impls for methods can contain existential types inside
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jul 18, 2018
1 parent 160cbda commit 6e09d91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_typeck/collect.rs
Expand Up @@ -1250,6 +1250,7 @@ fn find_existential_constraints<'a, 'tcx>(
match tcx.hir.get(parent) {
NodeItem(ref it) => intravisit::walk_item(&mut locator, it),
NodeImplItem(ref it) => intravisit::walk_impl_item(&mut locator, it),
NodeTraitItem(ref it) => intravisit::walk_trait_item(&mut locator, it),
other => bug!("{:?} is not a valid parent of an existential type item", other),
}
}
Expand Down

0 comments on commit 6e09d91

Please sign in to comment.