diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-02-03 18:34:36 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-02-15 15:48:36 -0500 |
| commit | 51a16e574aa1b20dbaa94436065ce80f3ba725d1 (patch) | |
| tree | d6fa3883ccbf762ad7db9e535c6d69840d5317db /src/librustc_parse/parser | |
| parent | 61d9231ff2604a0467987042d9ebf9ff9ea739b5 (diff) | |
| download | rust-51a16e574aa1b20dbaa94436065ce80f3ba725d1.tar.gz rust-51a16e574aa1b20dbaa94436065ce80f3ba725d1.zip | |
Record proc macro harness order for use during metadata deserialization
Fixes #68690 When we generate the proc macro harness, we now explicitly recorder the order in which we generate entries. We then use this ordering data to deserialize the correct proc-macro-data from the crate metadata.
Diffstat (limited to 'src/librustc_parse/parser')
| -rw-r--r-- | src/librustc_parse/parser/module.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_parse/parser/module.rs b/src/librustc_parse/parser/module.rs index 754923ae55e..9dba813c9a7 100644 --- a/src/librustc_parse/parser/module.rs +++ b/src/librustc_parse/parser/module.rs @@ -35,6 +35,8 @@ impl<'a> Parser<'a> { attrs: self.parse_inner_attributes()?, module: self.parse_mod_items(&token::Eof, lo)?, span: lo.to(self.token.span), + // Filled in by proc_macro_harness::inject() + proc_macros: Vec::new(), }); krate } |
