You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to compile a file containing just \ results in the error: error: unknown start of token: \\, which is incorrect as only one backslash is contained in the file.
The text was updated successfully, but these errors were encountered:
…r-msg, r=petrochenkov Improve char escaping in lexer messages Currently ', " and \ are escaped as \', \" and \\ respectively. This leads to confusing messages such as `error: unknown start of token: \\` when encountering a single backslash. Fix by emitting printable ASCII characters directly. This will still escape \r, \n, \t and Unicode characters. Fixesrust-lang#47902
Attempting to compile a file containing just
\
results in the error:error: unknown start of token: \\
, which is incorrect as only one backslash is contained in the file.The text was updated successfully, but these errors were encountered: