ICE: Special char (like RTL(U+202E)) in comment for value in vec!
would cause ICE if not add #[allow(text_direction_codepoint_in_literal)]
#140281
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
L-text_direction_codepoint_in_literal
Lint: text_direction_codepoint_in_literal
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Note: the string comment is:
\u+202e test \u+2066 RTL in doc in vec!
And actually if you ADD the
#[allow(text_direction_codepoint_in_literal)]
, ICE would disappear.However, I think with out it should get a error just like other situation has a special character, instead of an ICE directly?
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: