| 1 | #![allow( |
| 2 | clippy::blocks_in_conditions, |
| 3 | clippy::cast_lossless, |
| 4 | clippy::cast_possible_truncation, |
| 5 | clippy::enum_glob_use, |
| 6 | clippy::expl_impl_clone_on_copy, // https://github.com/rust-lang/rust-clippy/issues/15842 |
| 7 | clippy::manual_find, |
| 8 | clippy::manual_let_else, |
| 9 | clippy::manual_map, |
| 10 | clippy::map_unwrap_or, |
| 11 | clippy::module_name_repetitions, |
| 12 | clippy::needless_pass_by_value, |
| 13 | clippy::range_plus_one, |
| 14 | clippy::single_match_else, |
| 15 | clippy::struct_field_names, |
| 16 | clippy::too_many_lines, |
| 17 | clippy::wrong_self_convention |
| 18 | )] |
| 19 | #![allow(unknown_lints, mismatched_lifetime_syntaxes)] |
| 20 | |
| 21 | extern crate proc_macrorust-analyzer cargo thiserror-impl 2.0.18 proc_macro/; |
| 22 | |
| 23 | mod astrust-analyzer cargo thiserror-impl 2.0.18 ast/; |
| 24 | mod attrrust-analyzer cargo thiserror-impl 2.0.18 attr/; |
| 25 | mod expandrust-analyzer cargo thiserror-impl 2.0.18 expand/; |
| 26 | mod fallbackrust-analyzer cargo thiserror-impl 2.0.18 fallback/; |
| 27 | mod fmtrust-analyzer cargo thiserror-impl 2.0.18 fmt/; |
| 28 | mod genericsrust-analyzer cargo thiserror-impl 2.0.18 generics/; |
| 29 | mod proprust-analyzer cargo thiserror-impl 2.0.18 prop/; |
| 30 | mod scan_exprrust-analyzer cargo thiserror-impl 2.0.18 scan_expr/; |
| 31 | mod unrawrust-analyzer cargo thiserror-impl 2.0.18 unraw/; |
| 32 | mod validrust-analyzer cargo thiserror-impl 2.0.18 valid/; |
| 33 | |
| 34 | use proc_macrorust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro crate/::TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream#; |
| 35 | use proc_macro2rust-analyzer cargo proc-macro2 1.0.106 crate/::{Identrust-analyzer cargo proc-macro2 1.0.106 Ident#, Spanrust-analyzer cargo proc-macro2 1.0.106 Span#}; |
| 36 | use quoterust-analyzer cargo quote 1.0.44 crate/::{ToTokensrust-analyzer cargo quote 1.0.44 to_tokens/ToTokens#, TokenStreamExtrust-analyzer cargo quote 1.0.44 ext/TokenStreamExt# as _}; |
| 37 | use synrust-analyzer cargo syn 2.0.114 crate/::{parse_macro_inputrust-analyzer cargo syn 2.0.114 parse_macro_input/, DeriveInputrust-analyzer cargo syn 2.0.114 derive/DeriveInput#}; |
| 38 | |
| 39 | #[proc_macro_derive(Error, attributes(backtrace, error, from, source))] |
| 40 | pub fn derive_errorrust-analyzer cargo thiserror-impl 2.0.18 Error:(input: TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream#) -> TokenStreamrust-analyzer cargo proc_macro https://github.com/rust-lang/rust/library/proc_macro TokenStream# { |
| 41 | let input = parse_macro_inputrust-analyzer cargo syn 2.0.114 parse_macro_input/parse_macro_input!!(input as DeriveInputrust-analyzer cargo syn 2.0.114 derive/DeriveInput#); |
| 42 | expandrust-analyzer cargo thiserror-impl 2.0.18 expand/::deriverust-analyzer cargo thiserror-impl 2.0.18 expand/derive().(&input).intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().() |
| 43 | } |
| 44 | |
| 45 | #[allow(non_camel_case_types)] |
| 46 | struct privaterust-analyzer cargo thiserror-impl 2.0.18 private#; |
| 47 | |
| 48 | impl ToTokensrust-analyzer cargo quote 1.0.44 to_tokens/ToTokens# for privaterust-analyzer cargo thiserror-impl 2.0.18 private# { |
| 49 | fn to_tokensrust-analyzer cargo thiserror-impl 2.0.18 impl#[private][ToTokens]to_tokens().(&self, tokens: &mut proc_macro2rust-analyzer cargo proc-macro2 1.0.106 crate/::TokenStreamrust-analyzer cargo proc-macro2 1.0.106 TokenStream#) { |
| 50 | tokens.appendrust-analyzer cargo quote 1.0.44 ext/impl#[TokenStream][TokenStreamExt]append().(Identrust-analyzer cargo proc-macro2 1.0.106 Ident#::newrust-analyzer cargo proc-macro2 1.0.106 impl#[Ident]new().( |
| 51 | concatrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/concat!!("__private", envrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/env!!("CARGO_PKG_VERSION_PATCH")), |
| 52 | Spanrust-analyzer cargo proc-macro2 1.0.106 Span#::call_siterust-analyzer cargo proc-macro2 1.0.106 impl#[Span]call_site().(), |
| 53 | )); |
| 54 | } |
| 55 | } |