Skip to content

Commit

Permalink
Do not use const Rib for associated constants
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed May 11, 2016
1 parent c049541 commit fd70788
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/librustc_resolve/lib.rs
Expand Up @@ -1949,9 +1949,7 @@ impl<'a> Resolver<'a> {
this.check_trait_item(impl_item.ident.name,
impl_item.span,
|n, s| ResolutionError::ConstNotMemberOfTrait(n, s));
this.with_constant_rib(|this| {
visit::walk_impl_item(this, impl_item);
});
visit::walk_impl_item(this, impl_item);
}
ImplItemKind::Method(ref sig, _) => {
// If this is a trait impl, ensure the method
Expand Down

0 comments on commit fd70788

Please sign in to comment.