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.
This commit is contained in:
Aaron Hill 2020-02-03 18:34:36 -05:00
parent 61d9231ff2
commit 51a16e574a
No known key found for this signature in database
GPG key ID: B4087E510E98B164
12 changed files with 78 additions and 34 deletions

View file

@ -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
}