Closed
Description
Code
fn main() {
assert!('\x0c'.is_ascii_whitespace());
println!("Hello,\
world!");
}
Current output
warning: non-ASCII whitespace symbol '\u{c}' is not skipped
--> src/main.rs:3:21
|
3 | println!("Hello,\
| _____________________^
4 | |
world!");
| | ^- non-ASCII whitespace symbol '\u{c}' is not skipped
| |______|
|
Desired output
warning: non-ASCII whitespace symbol '\u{c}' is not skipped
--> src/main.rs:3:21
|
3 | println!("Hello,\
| _____________________^
4 | |
world!");
| | ^- '\u{c}' is not skipped, only `\n`, `\r`, `\t` and ` ` are skipped
| |______|
|
Rationale and extra context
According to char::is_ascii_whitespace
, \x0c
is ASCII whitespace.
Other cases
No response
Anything else?
Not sure if this is actually an issue, just an inconsistency I found.