Searched refs:LexError (Results 1 - 6 of 6) sorted by relevance
/third_party/rust/crates/proc-macro2/src/ |
H A D | wrapper.rs | 28 pub(crate) enum LexError { 29 Compiler(proc_macro::LexError), 30 Fallback(fallback::LexError), 32 // Rustc was supposed to return a LexError, but it panicked instead. 109 type Err = LexError; 111 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() 123 fn proc_macro_parse(src: &str) -> Result<proc_macro::TokenStream, LexError> { in proc_macro_parse() 124 let result = panic::catch_unwind(|| src.parse().map_err(LexError::Compiler)); in proc_macro_parse() 125 result.unwrap_or_else(|_| Err(LexError::CompilerPanic)) in proc_macro_parse() 260 impl LexError { impls [all...] |
H A D | lib.rs | 191 pub struct LexError { structure names 192 inner: imp::LexError, 236 /// NOTE: Some errors may cause panics instead of returning `LexError`. We 237 /// reserve the right to change these errors into `LexError`s later. 239 type Err = LexError; 241 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() 242 let e = src.parse().map_err(|e| LexError { in from_str() 314 impl LexError { impls 320 impl Debug for LexError { 326 impl Display for LexError { [all...] |
H A D | parse.rs | 2 self, is_ident_continue, is_ident_start, Group, LexError, Literal, Span, TokenStream, 168 pub(crate) fn token_stream(mut input: Cursor) -> Result<TokenStream, LexError> { 189 return Err(LexError { 194 Some(_frame) => return Err(LexError { span: Span {} }), 253 fn lex_error(cursor: Cursor) -> LexError { in lex_error() 256 LexError { in lex_error()
|
H A D | fallback.rs | 39 pub(crate) struct LexError { 43 impl LexError { impls 49 LexError { 170 type Err = LexError; 172 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() 186 impl Display for LexError { 1097 type Err = LexError; 1108 return Err(LexError::call_site()); in from_str() 1126 Err(LexError::call_site()) in from_str()
|
/third_party/rust/crates/proc-macro2/tests/ |
H A D | marker.rs | 4 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree, 49 assert_impl!(LexError is not Send or Sync); 67 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree, 85 LexError
|
/third_party/rust/crates/syn/src/ |
H A D | error.rs | 5 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree, 405 impl From<LexError> for Error { 406 fn from(err: LexError) -> Self { in from()
|
Completed in 6 milliseconds