diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-07-16 22:22:08 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-09-01 20:13:16 +0200 |
| commit | f8efe5d8222db70964f46b6523be81d6e7c38e65 (patch) | |
| tree | 7d00e473f9c3e54adf3f0b386423ee999814f0d8 /compiler/rustc_parse/src/parser | |
| parent | 635978041d3b65cd89cc109a83fc761221b4f1d0 (diff) | |
| download | rust-f8efe5d8222db70964f46b6523be81d6e7c38e65.tar.gz rust-f8efe5d8222db70964f46b6523be81d6e7c38e65.zip | |
Compute proc_macros in resolutions.
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. |
