diff options
| author | bors <bors@rust-lang.org> | 2015-02-22 10:15:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-22 10:15:40 +0000 |
| commit | eb1b500a9a69b149295c37c2fe2c9409f406f9ea (patch) | |
| tree | 038fef94f8b208553ce2bc0409d9f051bc88693d /src/libsyntax/parse/parser.rs | |
| parent | 2b01a37ec38db9301239f0c0abcf3c695055b0ff (diff) | |
| parent | 686648d15546cead638ababda5a70d8f36fbc78a (diff) | |
| download | rust-eb1b500a9a69b149295c37c2fe2c9409f406f9ea.tar.gz rust-eb1b500a9a69b149295c37c2fe2c9409f406f9ea.zip | |
Auto merge of #22548 - Manishearth:rollup, r=Manishearth
I had most of these tested locally, why not get them out of the way too?
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 370201e5382..88c34937159 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2562,7 +2562,8 @@ impl<'a> Parser<'a> { let index = self.mk_index(e, ix); e = self.mk_expr(lo, hi, index); - self.obsolete(span, ObsoleteSyntax::EmptyIndex); + let obsolete_span = mk_sp(bracket_pos, hi); + self.obsolete(obsolete_span, ObsoleteSyntax::EmptyIndex); } else { let ix = self.parse_expr(); hi = self.span.hi; @@ -5190,7 +5191,7 @@ impl<'a> Parser<'a> { -> (ast::Item_, Vec<ast::Attribute> ) { let mut prefix = Path::new(self.sess.span_diagnostic.cm.span_to_filename(self.span)); prefix.pop(); - let mod_path = Path::new(".").join_many(&self.mod_path_stack[]); + let mod_path = Path::new(".").join_many(&self.mod_path_stack); let dir_path = prefix.join(&mod_path); let mod_string = token::get_ident(id); let (file_path, owns_directory) = match ::attr::first_attr_value_str_by_name( |
