rustc_lint::non_ascii_idents

Static UNCOMMON_CODEPOINTS

source
pub static UNCOMMON_CODEPOINTS: &Lint
Expand description

The uncommon_codepoints lint detects uncommon Unicode codepoints in identifiers.

§Example

const µ: f64 = 0.000001;

{{produces}}

§Explanation

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.