1
Fork 0

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`
This commit is contained in:
Matthias Krüger 2025-02-07 12:01:57 +01:00 committed by GitHub
commit 3ce7d9c638
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 15 additions and 15 deletions

View file

@ -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", " "),