Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed ICEs.
  • Loading branch information
Alexander Regueiro committed Jul 6, 2019
1 parent ac9dd1b commit da44141
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/librustc_resolve/lib.rs
Expand Up @@ -2518,17 +2518,7 @@ impl<'a> Resolver<'a> {
debug!("(resolving item) resolving {} ({:?})", name, item.node);

match item.node {
ItemKind::Ty(_, ref generics) => {
self.with_current_self_item(item, |this| {
this.with_generic_param_rib(HasGenericParams(generics, ItemRibKind), |this| {
let item_def_id = this.definitions.local_def_id(item.id);
this.with_self_rib(Res::SelfTy(Some(item_def_id), None), |this| {
visit::walk_item(this, item)
})
})
});
}

ItemKind::Ty(_, ref generics) |
ItemKind::Existential(_, ref generics) |
ItemKind::Fn(_, _, ref generics, _) => {
self.with_generic_param_rib(
Expand Down

0 comments on commit da44141

Please sign in to comment.