Home
last modified time | relevance | path

Searched defs:ExpandError (Results 1 – 9 of 9) sorted by relevance

/third_party/rust/rust/src/tools/rust-analyzer/crates/mbe/src/
Dlib.rs74 pub enum ExpandError { enum
86 impl ExpandError { impl
87 fn binding_error(e: impl Into<Box<str>>) -> ExpandError { in binding_error()
92 impl fmt::Display for ExpandError { implementation
/third_party/rust/rust/src/tools/rust-analyzer/crates/mbe/src/expander/
Dtranscriber.rs18 fn get(&self, name: &str) -> Result<&Binding, ExpandError> { in get() argument
29 ) -> Result<Fragment, ExpandError> { in get_fragment() argument
Dmatcher.rs106 fn add_err(&mut self, err: ExpandError) { in add_err()
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-expand/src/
Dbuiltin_fn_macro.rs605 ) -> Result<(), ExpandError> { in concat_bytes_expand_subtree() argument
655 ) -> Result<FileId, ExpandError> { in relative_file() argument
669 fn parse_string(tt: &tt::Subtree) -> Result<String, ExpandError> { in parse_string() argument
693 ) -> Result<(triomphe::Arc<(::tt::Subtree<::tt::TokenId>, TokenMap)>, FileId), ExpandError> { in include_arg_to_tt() argument
Dlib.rs57 pub enum ExpandError { enum
64 impl ExpandError { impl
70 impl From<mbe::ExpandError> for ExpandError { implementation
76 impl fmt::Display for ExpandError { implementation
Dbuiltin_derive_macro.rs121 fn from(value: Option<FieldList>, token_map: &TokenMap) -> Result<Self, ExpandError> { in from() argument
193 fn parse_adt(tt: &tt::Subtree) -> Result<BasicAdtInfo, ExpandError> { in parse_adt() argument
305 fn name_to_token(token_map: &TokenMap, name: Option<ast::Name>) -> Result<tt::Ident, ExpandError> { in name_to_token() argument
Ddb.rs139 ExpandError, in include_expand() argument
/third_party/rust/rust/library/proc_macro/src/
Dlib.rs111 pub struct ExpandError; struct
114 impl fmt::Display for ExpandError { implementation
121 impl error::Error for ExpandError {} implementation
124 impl !Send for ExpandError {} implementation
127 impl !Sync for ExpandError {} implementation
153 pub fn expand_expr(&self) -> Result<TokenStream, ExpandError> { in expand_expr() argument
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/
Dexpander.rs114 error: Option<ExpandError>, in enter_expand_inner()