Skip to content

Commit

Permalink
Only consider a module to be a directory owner if it is located withi…
Browse files Browse the repository at this point in the history
…n a directory owner
  • Loading branch information
jseyfried committed Feb 13, 2016
1 parent 97842f5 commit dbc2466
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5096,11 +5096,8 @@ impl<'a> Parser<'a> {
self.push_mod_path(id, outer_attrs);
try!(self.expect(&token::OpenDelim(token::Brace)));
let mod_inner_lo = self.span.lo;
let old_owns_directory = self.owns_directory;
self.owns_directory = true;
let attrs = try!(self.parse_inner_attributes());
let m = try!(self.parse_mod_items(&token::CloseDelim(token::Brace), mod_inner_lo));
self.owns_directory = old_owns_directory;
self.pop_mod_path();
Ok((id, ItemKind::Mod(m), Some(attrs)))
}
Expand Down

0 comments on commit dbc2466

Please sign in to comment.