Skip to content

Commit dd0bba8

Browse files
Alexander Regueiropietroalbini
authored andcommitted
Fixed ICEs.
1 parent 4dd5baa commit dd0bba8

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/librustc_resolve/lib.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2519,17 +2519,7 @@ impl<'a> Resolver<'a> {
25192519
debug!("(resolving item) resolving {} ({:?})", name, item.node);
25202520

25212521
match item.node {
2522-
ItemKind::Ty(_, ref generics) => {
2523-
self.with_current_self_item(item, |this| {
2524-
this.with_generic_param_rib(HasGenericParams(generics, ItemRibKind), |this| {
2525-
let item_def_id = this.definitions.local_def_id(item.id);
2526-
this.with_self_rib(Res::SelfTy(Some(item_def_id), None), |this| {
2527-
visit::walk_item(this, item)
2528-
})
2529-
})
2530-
});
2531-
}
2532-
2522+
ItemKind::Ty(_, ref generics) |
25332523
ItemKind::Existential(_, ref generics) |
25342524
ItemKind::Fn(_, _, ref generics, _) => {
25352525
self.with_generic_param_rib(

0 commit comments

Comments
 (0)