1
Fork 0

make it semantic error

This commit is contained in:
Deadbeef 2023-03-10 14:18:58 +00:00
parent bf3ca5979e
commit abb181dfd9
7 changed files with 22 additions and 1 deletions

View file

@ -8,6 +8,7 @@ use rustc_lexer::unescape::{
};
use rustc_span::symbol::{kw, sym, Symbol};
use rustc_span::Span;
use std::ops::Range;
use std::{ascii, fmt, str};
// Escapes a string, represented as a symbol. Reuses the original symbol,
@ -38,6 +39,7 @@ pub enum LitError {
InvalidFloatSuffix,
NonDecimalFloat(u32),
IntTooLarge(u32),
NulInCStr(Range<usize>),
}
impl LitKind {