diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2022-03-03 18:45:25 -0500 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2022-03-03 18:45:25 -0500 |
| commit | b82795244e31ce1ad60bbb823c4e4b91f921c296 (patch) | |
| tree | d15cc8383c1abb95e6c577587732f352219545ef /compiler/rustc_parse/src/parser/item.rs | |
| parent | e9035f7bef47c21b575af517dce309d96df4eb51 (diff) | |
| download | rust-b82795244e31ce1ad60bbb823c4e4b91f921c296.tar.gz rust-b82795244e31ce1ad60bbb823c4e4b91f921c296.zip | |
Associate multiple with a crate too.
Diffstat (limited to 'compiler/rustc_parse/src/parser/item.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index aa0d8d68748..484a27fa59d 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -27,8 +27,7 @@ impl<'a> Parser<'a> { /// Parses a source module as a crate. This is the main entry point for the parser. pub fn parse_crate_mod(&mut self) -> PResult<'a, ast::Crate> { let (attrs, items, spans) = self.parse_mod(&token::Eof)?; - let span = spans.inner_span; - Ok(ast::Crate { attrs, items, span, id: DUMMY_NODE_ID, is_placeholder: false }) + Ok(ast::Crate { attrs, items, spans, id: DUMMY_NODE_ID, is_placeholder: false }) } /// Parses a `mod <foo> { ... }` or `mod <foo>;` item. |
