diff options
| author | The Miri Cronjob Bot <miri@cron.bot> | 2024-09-12 05:15:02 +0000 |
|---|---|---|
| committer | The Miri Cronjob Bot <miri@cron.bot> | 2024-09-12 05:15:02 +0000 |
| commit | 93ef7cd2dd40b4661bf918a33336558784248103 (patch) | |
| tree | c16367f9b4c3a659aa924238daef9704756e4bcb /compiler/rustc_parse/src/parser | |
| parent | 2f09cac1a4e3ec93c11e88aa91db1635fbd0d1f4 (diff) | |
| parent | b72b42d36faf301f8cd6c31372525ab69ed752cc (diff) | |
| download | rust-93ef7cd2dd40b4661bf918a33336558784248103.tar.gz rust-93ef7cd2dd40b4661bf918a33336558784248103.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/diagnostics.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs index f6f66821df7..bee73c58cb7 100644 --- a/compiler/rustc_parse/src/parser/diagnostics.rs +++ b/compiler/rustc_parse/src/parser/diagnostics.rs @@ -2553,7 +2553,7 @@ impl<'a> Parser<'a> { err.delay_as_bug(); } } - return Ok(false); // Don't continue. + Ok(false) // Don't continue. } /// Attempt to parse a generic const argument that has not been enclosed in braces. diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index c6a5e1908f7..83d10dea6a8 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -457,7 +457,7 @@ impl<'a> Parser<'a> { fn parse_item_builtin(&mut self) -> PResult<'a, Option<ItemInfo>> { // To be expanded - return Ok(None); + Ok(None) } /// Parses an item macro, e.g., `item!();`. |
