make char::is_whitespace unstably const

This commit is contained in:
Ralf Jung 2024-11-02 10:17:16 +01:00
parent b5f4883a06
commit 0804815e69
3 changed files with 5 additions and 4 deletions

View file

@ -65,7 +65,7 @@ impl RawEmitter {
self.bytes_used += 256;
writeln!(&mut self.file, "#[inline]").unwrap();
writeln!(&mut self.file, "pub fn lookup(c: char) -> bool {{").unwrap();
writeln!(&mut self.file, "pub const fn lookup(c: char) -> bool {{").unwrap();
writeln!(&mut self.file, " match c as u32 >> 8 {{").unwrap();
for arm in arms {
writeln!(&mut self.file, " {},", arm).unwrap();