diff options
| author | bors <bors@rust-lang.org> | 2025-09-09 18:14:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-09-09 18:14:23 +0000 |
| commit | 7ad23f43a225546c095123de52cc07d8719f8e2b (patch) | |
| tree | 0e99435039bfbf29f791983825ed7062bc785f77 /compiler/rustc_parse/src/parser/mod.rs | |
| parent | 364da5d88d772fa40fb20353443595385443ac25 (diff) | |
| parent | a40ec4c50a0a0475123675c3f4202eaf5cbedb77 (diff) | |
| download | rust-7ad23f43a225546c095123de52cc07d8719f8e2b.tar.gz rust-7ad23f43a225546c095123de52cc07d8719f8e2b.zip | |
Auto merge of #146375 - matthiaskrgr:rollup-utik9zj, r=matthiaskrgr
Rollup of 6 pull requests Successful merges: - rust-lang/rust#145463 (Reject invalid literal suffixes in tuple indexing, tuple struct indexing, and struct field name position) - rust-lang/rust#145929 (fix APITIT being treated as a normal generic parameter in suggestions) - rust-lang/rust#146001 (Update getopts to remove unicode-width dependency) - rust-lang/rust#146365 (triagebot: warn about #[rustc_intrinsic_const_stable_indirect]) - rust-lang/rust#146366 (add approx_delta to all gamma tests) - rust-lang/rust#146373 (fix comments about trait solver cycle heads) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src/parser/mod.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index 3bbca622975..ed4069dae93 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -1335,7 +1335,10 @@ impl<'a> Parser<'a> { if let token::Literal(token::Lit { kind: token::Integer, symbol, suffix }) = self.token.kind { if let Some(suffix) = suffix { - self.expect_no_tuple_index_suffix(self.token.span, suffix); + self.dcx().emit_err(errors::InvalidLiteralSuffixOnTupleIndex { + span: self.token.span, + suffix, + }); } self.bump(); Ok(Ident::new(symbol, self.prev_token.span)) |
