[−][src]Static rustc_lint::non_ascii_idents::UNCOMMON_CODEPOINTS
pub static UNCOMMON_CODEPOINTS: &Lint
The uncommon_codepoints lint detects uncommon Unicode codepoints in
identifiers.
Example
#![feature(non_ascii_idents)] const µ: f64 = 0.000001;
{{produces}}
Explanation
With the non_ascii_idents nightly-only feature enabled,
identifiers are allowed to use non-ASCII characters. This lint warns
about using characters which are not commonly used, and may cause
visual confusion.
This lint is triggered by identifiers that contain a codepoint that is not part of the set of "Allowed" codepoints as described by Unicode® Technical Standard #39 Unicode Security Mechanisms Section 3.1 General Security Profile for Identifiers.
Note that the set of uncommon codepoints may change over time. Beware that if you "forbid" this lint that existing code may fail in the future.