@@ -10,7 +10,6 @@ declare_lint! {
1010 ///
1111 /// ```rust,compile_fail
1212 /// # #![allow(unused)]
13- /// #![feature(non_ascii_idents)]
1413 /// #![deny(non_ascii_idents)]
1514 /// fn main() {
1615 /// let föö = 1;
@@ -21,14 +20,11 @@ declare_lint! {
2120 ///
2221 /// ### Explanation
2322 ///
24- /// Currently on stable Rust, identifiers must contain ASCII characters.
25- /// The [`non_ascii_idents`] nightly-only feature allows identifiers to
26- /// contain non-ASCII characters. This lint allows projects that wish to
27- /// retain the limit of only using ASCII characters to switch this lint to
28- /// "forbid" (for example to ease collaboration or for security reasons).
23+ /// This lint allows projects that wish to retain the limit of only using
24+ /// ASCII characters to switch this lint to "forbid" (for example to ease
25+ /// collaboration or for security reasons).
2926 /// See [RFC 2457] for more details.
3027 ///
31- /// [`non_ascii_idents`]: https://doc.rust-lang.org/nightly/unstable-book/language-features/non-ascii-idents.html
3228 /// [RFC 2457]: https://github.com/rust-lang/rfcs/blob/master/text/2457-non-ascii-idents.md
3329 pub NON_ASCII_IDENTS ,
3430 Allow ,
@@ -44,18 +40,15 @@ declare_lint! {
4440 ///
4541 /// ```rust
4642 /// # #![allow(unused)]
47- /// #![feature(non_ascii_idents)]
4843 /// const µ: f64 = 0.000001;
4944 /// ```
5045 ///
5146 /// {{produces}}
5247 ///
5348 /// ### Explanation
5449 ///
55- /// With the [`non_ascii_idents`] nightly-only feature enabled,
56- /// identifiers are allowed to use non-ASCII characters. This lint warns
57- /// about using characters which are not commonly used, and may cause
58- /// visual confusion.
50+ /// This lint warns about using characters which are not commonly used, and may
51+ /// cause visual confusion.
5952 ///
6053 /// This lint is triggered by identifiers that contain a codepoint that is
6154 /// not part of the set of "Allowed" codepoints as described by [Unicode®
@@ -66,7 +59,6 @@ declare_lint! {
6659 /// that if you "forbid" this lint that existing code may fail in the
6760 /// future.
6861 ///
69- /// [`non_ascii_idents`]: https://doc.rust-lang.org/nightly/unstable-book/language-features/non-ascii-idents.html
7062 /// [TR39Allowed]: https://www.unicode.org/reports/tr39/#General_Security_Profile
7163 pub UNCOMMON_CODEPOINTS ,
7264 Warn ,
@@ -81,8 +73,6 @@ declare_lint! {
8173 /// ### Example
8274 ///
8375 /// ```rust
84- /// #![feature(non_ascii_idents)]
85- ///
8676 /// // Latin Capital Letter E With Caron
8777 /// pub const Ě: i32 = 1;
8878 /// // Latin Capital Letter E With Breve
@@ -93,10 +83,8 @@ declare_lint! {
9383 ///
9484 /// ### Explanation
9585 ///
96- /// With the [`non_ascii_idents`] nightly-only feature enabled,
97- /// identifiers are allowed to use non-ASCII characters. This lint warns
98- /// when different identifiers may appear visually similar, which can
99- /// cause confusion.
86+ /// This lint warns when different identifiers may appear visually similar,
87+ /// which can cause confusion.
10088 ///
10189 /// The confusable detection algorithm is based on [Unicode® Technical
10290 /// Standard #39 Unicode Security Mechanisms Section 4 Confusable
@@ -110,7 +98,6 @@ declare_lint! {
11098 /// Beware that if you "forbid" this lint that existing code may fail in
11199 /// the future.
112100 ///
113- /// [`non_ascii_idents`]: https://doc.rust-lang.org/nightly/unstable-book/language-features/non-ascii-idents.html
114101 /// [TR39Confusable]: https://www.unicode.org/reports/tr39/#Confusable_Detection
115102 pub CONFUSABLE_IDENTS ,
116103 Warn ,
@@ -127,8 +114,6 @@ declare_lint! {
127114 /// ### Example
128115 ///
129116 /// ```rust
130- /// #![feature(non_ascii_idents)]
131- ///
132117 /// // The Japanese katakana character エ can be confused with the Han character 工.
133118 /// const エ: &'static str = "アイウ";
134119 /// ```
@@ -137,10 +122,8 @@ declare_lint! {
137122 ///
138123 /// ### Explanation
139124 ///
140- /// With the [`non_ascii_idents`] nightly-only feature enabled,
141- /// identifiers are allowed to use non-ASCII characters. This lint warns
142- /// when characters between different scripts may appear visually similar,
143- /// which can cause confusion.
125+ /// This lint warns when characters between different scripts may appear
126+ /// visually similar, which can cause confusion.
144127 ///
145128 /// If the crate contains other identifiers in the same script that have
146129 /// non-confusable characters, then this lint will *not* be issued. For
@@ -152,8 +135,6 @@ declare_lint! {
152135 /// Note that the set of confusable characters may change over time.
153136 /// Beware that if you "forbid" this lint that existing code may fail in
154137 /// the future.
155- ///
156- /// [`non_ascii_idents`]: https://doc.rust-lang.org/nightly/unstable-book/language-features/non-ascii-idents.html
157138 pub MIXED_SCRIPT_CONFUSABLES ,
158139 Warn ,
159140 "detects Unicode scripts whose mixed script confusables codepoints are solely used" ,
0 commit comments