diff options
| author | bors <bors@rust-lang.org> | 2022-01-05 15:28:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-01-05 15:28:36 +0000 |
| commit | f1ce0e6a00593493a12e0e3662119786c761f375 (patch) | |
| tree | 6aee1796cbafc3679884be8a99b43791d3f2ca20 /compiler/rustc_parse/src/parser | |
| parent | 181e91567c9f347e055b33b1d7e9894f769aafe3 (diff) | |
| parent | 439a1254b9de9b82384f41c904a13c415f9e5600 (diff) | |
| download | rust-f1ce0e6a00593493a12e0e3662119786c761f375.tar.gz rust-f1ce0e6a00593493a12e0e3662119786c761f375.zip | |
Auto merge of #92587 - matthiaskrgr:rollup-qnwa8qx, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #92092 (Drop guards in slice sorting derive src pointers from &mut T, which is invalidated by interior mutation in comparison) - #92388 (Fix a minor mistake in `String::try_reserve_exact` examples) - #92442 (Add negative `impl` for `Ord`, `PartialOrd` on `LocalDefId`) - #92483 (Stabilize `result_cloned` and `result_copied`) - #92574 (Add RISC-V detection macro and more architecture instructions) - #92575 (ast: Always keep a `NodeId` in `ast::Crate`) - #92583 (:arrow_up: rust-analyzer) 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 d335ef8788b..ade441b0e7d 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -27,7 +27,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, is_placeholder: None }) + Ok(ast::Crate { attrs, items, span, id: DUMMY_NODE_ID, is_placeholder: false }) } /// Parses a `mod <foo> { ... }` or `mod <foo>;` item. |
