diff options
| author | bors <bors@rust-lang.org> | 2021-12-01 20:14:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-12-01 20:14:07 +0000 |
| commit | 48a5999fceeea84a8971634355287faa349909d4 (patch) | |
| tree | 9ad663ffaf4c2f4fa545f7123dc7b3bba066ff2d /compiler/rustc_parse/src/parser | |
| parent | 3c51718ae7ae3160058e220b879d2a69533973a7 (diff) | |
| parent | 4ae75cfa2e01f383ba610038aca2356197f8ac75 (diff) | |
| download | rust-48a5999fceeea84a8971634355287faa349909d4.tar.gz rust-48a5999fceeea84a8971634355287faa349909d4.zip | |
Auto merge of #91433 - matthiaskrgr:rollup-118ql06, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #88502 (Add slice take methods) - #91313 (expand: Turn `ast::Crate` into a first class expansion target) - #91424 (Update LLVM with patches for better llvm-cov diagnostics) - #91425 (Include lint errors in error count for `-Ztreat-err-as-bug`) - #91430 (Add tests for `normalize-docs` overflow errors) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index 24a8df49ac7..cbeaf675be4 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -26,7 +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)?; - Ok(ast::Crate { attrs, items, span }) + Ok(ast::Crate { attrs, items, span, is_placeholder: None }) } /// Parses a `mod <foo> { ... }` or `mod <foo>;` item. |
