File tree 3 files changed +0
-19
lines changed
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
390
390
parse_invalid_expression_in_let_else = a `{ $operator } ` expression cannot be directly assigned in `let...else`
391
391
parse_invalid_identifier_with_leading_number = identifiers cannot start with a number
392
392
393
- parse_invalid_interpolated_expression = invalid interpolated expression
394
-
395
393
parse_invalid_literal_suffix_on_tuple_index = suffixes on a tuple index are invalid
396
394
.label = invalid suffix `{ $suffix } `
397
395
.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 {
850
850
pub right : Span ,
851
851
}
852
852
853
- #[ derive( Diagnostic ) ]
854
- #[ diag( parse_invalid_interpolated_expression) ]
855
- pub ( crate ) struct InvalidInterpolatedExpression {
856
- #[ primary_span]
857
- pub span : Span ,
858
- }
859
-
860
853
#[ derive( Diagnostic ) ]
861
854
#[ diag( parse_invalid_literal_suffix_on_tuple_index) ]
862
855
pub ( crate ) struct InvalidLiteralSuffixOnTupleIndex {
Original file line number Diff line number Diff line change @@ -2040,16 +2040,6 @@ impl<'a> Parser<'a> {
2040
2040
& mut self ,
2041
2041
mk_lit_char : impl FnOnce ( Symbol , Span ) -> L ,
2042
2042
) -> PResult < ' a , L > {
2043
- if let token:: Interpolated ( nt) = & self . token . kind
2044
- && let token:: NtExpr ( e) | token:: NtLiteral ( e) = & nt. 0
2045
- && matches ! ( e. kind, ExprKind :: Err ( _) )
2046
- {
2047
- let mut err = self
2048
- . dcx ( )
2049
- . create_err ( errors:: InvalidInterpolatedExpression { span : self . token . span } ) ;
2050
- err. downgrade_to_delayed_bug ( ) ;
2051
- return Err ( err) ;
2052
- }
2053
2043
let token = self . token . clone ( ) ;
2054
2044
let err = |self_ : & Self | {
2055
2045
let msg = format ! ( "unexpected token: {}" , super :: token_descr( & token) ) ;
You can’t perform that action at this time.
0 commit comments