diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-02-07 12:01:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-07 12:01:57 +0100 |
| commit | 3ce7d9c638d1a55a18912b7396ae1aace74047dd (patch) | |
| tree | d800abf6bb5a25cbd16a69d4ede760fa314fa7d0 /compiler/rustc_parse/src | |
| parent | 1c794b908b3b4be83c2916a66b29f2d457ec003d (diff) | |
| parent | dc62b8fd11fe02f58cb24d63e02c5d5d4069c64f (diff) | |
| download | rust-3ce7d9c638d1a55a18912b7396ae1aace74047dd.tar.gz rust-3ce7d9c638d1a55a18912b7396ae1aace74047dd.zip | |
Rollup merge of #136191 - klensy:const_a, r=compiler-errors
compiler: replace few consts arrays with statics to remove const dupes Locally on `x86_64-pc-windows-msvc` -100kb for `rustc_driver.dll`
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/lexer/unicode_chars.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/lexer/unicode_chars.rs b/compiler/rustc_parse/src/lexer/unicode_chars.rs index ef8d0f96b61..648a352efd9 100644 --- a/compiler/rustc_parse/src/lexer/unicode_chars.rs +++ b/compiler/rustc_parse/src/lexer/unicode_chars.rs @@ -8,7 +8,7 @@ use crate::errors::TokenSubstitution; use crate::token::{self, Delimiter}; #[rustfmt::skip] // for line breaks -pub(super) const UNICODE_ARRAY: &[(char, &str, &str)] = &[ +pub(super) static UNICODE_ARRAY: &[(char, &str, &str)] = &[ (' ', "Line Separator", " "), (' ', "Paragraph Separator", " "), (' ', "Ogham Space mark", " "), |
