Searched refs:new_spanned (Results 1 – 18 of 18) sorted by relevance
/external/rust/crates/thiserror-impl/src/ |
D | valid.rs | 21 return Err(Error::new_spanned( in validate() 27 return Err(Error::new_spanned( in validate() 49 return Err(Error::new_spanned( in validate() 60 return Err(Error::new_spanned( in validate() 76 return Err(Error::new_spanned( in validate() 82 return Err(Error::new_spanned( in validate() 99 return Err(Error::new_spanned( in validate() 110 return Err(Error::new_spanned( in check_non_field_attrs() 116 return Err(Error::new_spanned( in check_non_field_attrs() 122 return Err(Error::new_spanned( in check_non_field_attrs() [all …]
|
D | attr.rs | 47 return Err(Error::new_spanned(attr, "duplicate #[source] attribute")); in get() 53 return Err(Error::new_spanned(attr, "duplicate #[backtrace] attribute")); in get() 62 return Err(Error::new_spanned(attr, "duplicate #[from] attribute")); in get() 77 return Err(Error::new_spanned( in parse_error_attribute() 96 return Err(Error::new_spanned( in parse_error_attribute()
|
D | ast.rs | 48 Data::Union(_) => Err(Error::new_spanned( in from_syn()
|
/external/rust/crates/tokio-macros/src/ |
D | entry.rs | 189 return Err(syn::Error::new_spanned(sig.fn_token, msg)); in parse_knobs() 207 return Err(syn::Error::new_spanned(namevalue, msg)); in parse_knobs() 221 return Err(syn::Error::new_spanned(namevalue, msg)); in parse_knobs() 225 return Err(syn::Error::new_spanned(namevalue, msg)); in parse_knobs() 233 return Err(syn::Error::new_spanned(path, msg)); in parse_knobs() 256 return Err(syn::Error::new_spanned(path, msg)); in parse_knobs() 259 return Err(syn::Error::new_spanned( in parse_knobs() 316 return syn::Error::new_spanned(&input.sig.ident, msg) in main() 331 return syn::Error::new_spanned(&attr, msg) in test() 339 return syn::Error::new_spanned(&input.sig.inputs, msg) in test()
|
/external/rust/cxx/syntax/ |
D | parse.rs | 78 Fields::Unit => return Err(Error::new_spanned(item, "unit structs are not supported")), in parse_struct() 80 return Err(Error::new_spanned(item, "tuple structs are not supported")); in parse_struct() 285 return Err(Error::new_spanned(variant, msg)); in parse_variant() 296 Err(err) => return Err(Error::new_spanned(variant, err)), in parse_variant() 413 return Err(Error::new_spanned( in parse_lang() 423 _ => Err(Error::new_spanned( in parse_lang() 516 return Err(Error::new_spanned( in parse_extern_fn() 523 return Err(Error::new_spanned( in parse_extern_fn() 530 return Err(Error::new_spanned( in parse_extern_fn() 537 return Err(Error::new_spanned( in parse_extern_fn() [all …]
|
D | report.rs | 15 self.errors.push(Error::new_spanned(sp, msg)); in error()
|
D | file.rs | 49 return Err(Error::new_spanned( in parse()
|
D | attrs.rs | 183 Err(Error::new_spanned( in parse_repr_attribute()
|
D | discriminant.rs | 129 Err(Error::new_spanned( in expr_to_discriminant()
|
/external/adhd/cros_alsa/cros_alsa_derive/src/ |
D | common.rs | 44 Err(syn::Error::new_spanned( in try_from() 49 _ => Err(syn::Error::new_spanned( in try_from() 75 _ => Err(syn::Error::new_spanned(attr, "expected #[cros_alsa(...)]")), in get_cros_alsa_meta_items()
|
/external/rust/crates/remain/src/ |
D | format.rs | 26 Error::new_spanned(spans, msg) in error()
|
D | check.rs | 119 return Err(Error::new_spanned(other, msg)); in to_path()
|
/external/rust/crates/serde_derive/src/internals/ |
D | ctxt.rs | 38 .push(syn::Error::new_spanned(obj.into_token_stream(), msg)); in error_spanned_by()
|
/external/rust/cxx/gen/src/ |
D | file.rs | 40 return Err(Error::new_spanned(item, "expected a module")); in parse()
|
/external/rust/crates/syn/src/ |
D | error.rs | 157 pub fn new_spanned<T: ToTokens, U: Display>(tokens: T, message: U) -> Self { in new_spanned() method
|
D | expr.rs | 2228 _ => return Err(Error::new_spanned(expr, $msg)),
|
/external/rust/crates/pin-project-internal/src/ |
D | utils.rs | 20 syn::Error::new_spanned(&$span, $msg)
|
/external/crosvm/bit_field/bit_field_derive/ |
D | bit_field_derive.rs | 387 return Err(Error::new_spanned(attr, "unrecognized attribute")); in parse_bits_attr()
|