This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +0
-19
lines changed Expand file tree Collapse file tree 3 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -390,8 +390,6 @@ parse_invalid_dyn_keyword = invalid `dyn` keyword
390390parse_invalid_expression_in_let_else = a `{ $operator } ` expression cannot be directly assigned in `let...else`
391391parse_invalid_identifier_with_leading_number = identifiers cannot start with a number
392392
393- parse_invalid_interpolated_expression = invalid interpolated expression
394-
395393parse_invalid_literal_suffix_on_tuple_index = suffixes on a tuple index are invalid
396394 .label = invalid suffix `{ $suffix } `
397395 .tuple_exception_line_1 = `{ $suffix } ` is *temporarily* accepted on tuple index fields as it was incorrectly accepted on stable for a few releases
Original file line number Diff line number Diff line change @@ -850,13 +850,6 @@ pub(crate) struct StructLiteralNotAllowedHereSugg {
850850 pub right : Span ,
851851}
852852
853- #[ derive( Diagnostic ) ]
854- #[ diag( parse_invalid_interpolated_expression) ]
855- pub ( crate ) struct InvalidInterpolatedExpression {
856- #[ primary_span]
857- pub span : Span ,
858- }
859-
860853#[ derive( Diagnostic ) ]
861854#[ diag( parse_invalid_literal_suffix_on_tuple_index) ]
862855pub ( crate ) struct InvalidLiteralSuffixOnTupleIndex {
Original file line number Diff line number Diff line change @@ -2043,16 +2043,6 @@ impl<'a> Parser<'a> {
20432043 & mut self ,
20442044 mk_lit_char : impl FnOnce ( Symbol , Span ) -> L ,
20452045 ) -> PResult < ' a , L > {
2046- if let token:: Interpolated ( nt) = & self . token . kind
2047- && let token:: NtExpr ( e) | token:: NtLiteral ( e) = & nt. 0
2048- && matches ! ( e. kind, ExprKind :: Err ( _) )
2049- {
2050- let mut err = self
2051- . dcx ( )
2052- . create_err ( errors:: InvalidInterpolatedExpression { span : self . token . span } ) ;
2053- err. downgrade_to_delayed_bug ( ) ;
2054- return Err ( err) ;
2055- }
20562046 let token = self . token . clone ( ) ;
20572047 let err = |self_ : & Self | {
20582048 let msg = format ! ( "unexpected token: {}" , super :: token_descr( & token) ) ;
You can’t perform that action at this time.
0 commit comments