MCPcopy Create free account
hub / github.com/dtolnay/thiserror / derive_error

Function derive_error

impl/src/lib.rs:40–43  ·  view source on GitHub ↗
(input: TokenStream)

Source from the content-addressed store, hash-verified

38
39#[proc_macro_derive(Error, attributes(backtrace, error, from, source))]
40pub fn derive_error(input: TokenStream) -> TokenStream {
41 let input = parse_macro_input!(input as DeriveInput);
42 expand::derive(&input).into()
43}
44
45#[allow(non_camel_case_types)]
46struct private;

Callers

nothing calls this directly

Calls 1

deriveFunction · 0.85

Tested by

no test coverage detected