Skip to content

Commit fd70788

Browse files
committed
Do not use const Rib for associated constants
1 parent c049541 commit fd70788

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustc_resolve/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,9 +1949,7 @@ impl<'a> Resolver<'a> {
19491949
this.check_trait_item(impl_item.ident.name,
19501950
impl_item.span,
19511951
|n, s| ResolutionError::ConstNotMemberOfTrait(n, s));
1952-
this.with_constant_rib(|this| {
1953-
visit::walk_impl_item(this, impl_item);
1954-
});
1952+
visit::walk_impl_item(this, impl_item);
19551953
}
19561954
ImplItemKind::Method(ref sig, _) => {
19571955
// If this is a trait impl, ensure the method

0 commit comments

Comments
 (0)