Home
last modified time | relevance | path

Searched refs:new_spanned (Results 1 – 18 of 18) sorted by relevance

/external/rust/crates/thiserror-impl/src/
Dvalid.rs21 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 …]
Dattr.rs47 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()
Dast.rs48 Data::Union(_) => Err(Error::new_spanned( in from_syn()
/external/rust/crates/tokio-macros/src/
Dentry.rs189 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/
Dparse.rs78 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 …]
Dreport.rs15 self.errors.push(Error::new_spanned(sp, msg)); in error()
Dfile.rs49 return Err(Error::new_spanned( in parse()
Dattrs.rs183 Err(Error::new_spanned( in parse_repr_attribute()
Ddiscriminant.rs129 Err(Error::new_spanned( in expr_to_discriminant()
/external/adhd/cros_alsa/cros_alsa_derive/src/
Dcommon.rs44 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/
Dformat.rs26 Error::new_spanned(spans, msg) in error()
Dcheck.rs119 return Err(Error::new_spanned(other, msg)); in to_path()
/external/rust/crates/serde_derive/src/internals/
Dctxt.rs38 .push(syn::Error::new_spanned(obj.into_token_stream(), msg)); in error_spanned_by()
/external/rust/cxx/gen/src/
Dfile.rs40 return Err(Error::new_spanned(item, "expected a module")); in parse()
/external/rust/crates/syn/src/
Derror.rs157 pub fn new_spanned<T: ToTokens, U: Display>(tokens: T, message: U) -> Self { in new_spanned() method
Dexpr.rs2228 _ => return Err(Error::new_spanned(expr, $msg)),
/external/rust/crates/pin-project-internal/src/
Dutils.rs20 syn::Error::new_spanned(&$span, $msg)
/external/crosvm/bit_field/bit_field_derive/
Dbit_field_derive.rs387 return Err(Error::new_spanned(attr, "unrecognized attribute")); in parse_bits_attr()