Lines Matching refs:LexError
53 pub(crate) struct LexError { struct
57 impl LexError { argument
63 LexError { in call_site()
76 pub(crate) fn from_str_checked(src: &str) -> Result<Self, LexError> { in from_str_checked() argument
212 impl Display for LexError { implementation
951 pub(crate) fn from_str_checked(repr: &str) -> Result<Self, LexError> { in from_str_checked() argument
960 return Err(LexError::call_site()); in from_str_checked()
978 Err(LexError::call_site()) in from_str_checked()
1218 pub(crate) trait FromStr2: FromStr<Err = proc_macro::LexError> {
1223 fn from_str_checked(src: &str) -> Result<Self, imp::LexError> { in from_str_checked() argument
1228 return Err(imp::LexError::CompilerPanic); in from_str_checked()
1234 Ok(Err(lex)) => Err(imp::LexError::Compiler(lex)), in from_str_checked()
1235 Err(_panic) => Err(imp::LexError::CompilerPanic), in from_str_checked()