diff options
| author | bors <bors@rust-lang.org> | 2021-09-03 14:47:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-09-03 14:47:13 +0000 |
| commit | 577a76f0031f727735410b99a5cc5f0b61b92eef (patch) | |
| tree | 60f9cfd8627c093755e9637a1f614f66e444b92a /compiler/rustc_parse/src/parser | |
| parent | c5799b2a73bd03d1d7b4a432fa0a0cb93e7288db (diff) | |
| parent | 5e3cd6a8b29b312c796c5a83afd4a5fa21513f8e (diff) | |
| download | rust-577a76f0031f727735410b99a5cc5f0b61b92eef.tar.gz rust-577a76f0031f727735410b99a5cc5f0b61b92eef.zip | |
Auto merge of #88597 - cjgillot:lower-global, r=petrochenkov
Move global analyses from lowering to resolution Split off https://github.com/rust-lang/rust/pull/87234 r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -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 e5537d43eba..10c73fd64bc 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -26,8 +26,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, span) = self.parse_mod(&token::Eof)?; - let proc_macros = Vec::new(); // Filled in by `proc_macro_harness::inject()`. - Ok(ast::Crate { attrs, items, span, proc_macros }) + Ok(ast::Crate { attrs, items, span }) } /// Parses a `mod <foo> { ... }` or `mod <foo>;` item. |
