case-related lints (non_snake_case, non_camel_case_types, โฆ) did not suggest actual case-changed characters with Mathematical Alphanumeric Symbols #77273
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
A-Unicode
Area: Unicode
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
F-non_ascii_idents
`#![feature(non_ascii_idents)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This example code:
Produced a useless conversion suggestion:
The problem here is that while these characters are in the Uppercase Letter (Lu) general category, they do not have a proper lowercase mapping: the lowercase of ๐ is still ๐, not ๐ช (thus Rust cannot suggest
๐ผ๐ท๐ช๐ช๐ช๐ช๐ด๐ฎ๐ผ
).This is the same for the other direction:
It shouldn't produce the suggestion at all if the conversion result is not changed, but I'm not sure about cases involving adding or removing underscores.
Meta
rustc on playground, 1.48.0-nightly (2020-09-26 623fb90).
The text was updated successfully, but these errors were encountered: