diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2021-08-19 11:40:00 -0700 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2021-10-31 13:12:54 +0100 |
| commit | 20c6049a55e674e6f62dbb8c47b0da70d224b15c (patch) | |
| tree | 672c3904a8d2bd73e7268a15a81590d68396cd89 /compiler/rustc_lint/src/lib.rs | |
| parent | 7e4c9eebd82e9fa71f74626e5ba4e3494b8aba25 (diff) | |
| download | rust-20c6049a55e674e6f62dbb8c47b0da70d224b15c.tar.gz rust-20c6049a55e674e6f62dbb8c47b0da70d224b15c.zip | |
Lint against RTL unicode codepoints in literals and comments
Address CVE-2021-42574.
Diffstat (limited to 'compiler/rustc_lint/src/lib.rs')
| -rw-r--r-- | compiler/rustc_lint/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/lib.rs b/compiler/rustc_lint/src/lib.rs index 6f684a0fe51..d98d65385e5 100644 --- a/compiler/rustc_lint/src/lib.rs +++ b/compiler/rustc_lint/src/lib.rs @@ -48,6 +48,7 @@ pub mod builtin; mod context; mod early; mod enum_intrinsics_non_enums; +pub mod hidden_unicode_codepoints; mod internal; mod late; mod levels; @@ -78,6 +79,7 @@ use rustc_span::Span; use array_into_iter::ArrayIntoIter; use builtin::*; use enum_intrinsics_non_enums::EnumIntrinsicsNonEnums; +use hidden_unicode_codepoints::*; use internal::*; use methods::*; use non_ascii_idents::*; @@ -129,6 +131,7 @@ macro_rules! early_lint_passes { DeprecatedAttr: DeprecatedAttr::new(), WhileTrue: WhileTrue, NonAsciiIdents: NonAsciiIdents, + HiddenUnicodeCodepoints: HiddenUnicodeCodepoints, IncompleteFeatures: IncompleteFeatures, RedundantSemicolons: RedundantSemicolons, UnusedDocComment: UnusedDocComment, |
