Skip to main content

rustc_hir/attrs/
data_structures.rs

1use std::borrow::Cow;
2use std::fmt;
3use std::path::PathBuf;
4
5pub use ReprAttr::*;
6use rustc_abi::Align;
7pub use rustc_ast::attr::data_structures::*;
8use rustc_ast::expand::autodiff_attrs::{DiffActivity, DiffMode};
9use rustc_ast::expand::typetree::TypeTree;
10use rustc_ast::token::DocFragmentKind;
11use rustc_ast::{AttrStyle, Path, ast};
12use rustc_data_structures::fx::FxIndexMap;
13use rustc_error_messages::{DiagArgValue, IntoDiagArg};
14use rustc_hir::LangItem;
15use rustc_macros::{Decodable, Encodable, HashStable_Generic, PrintAttribute};
16use rustc_span::def_id::DefId;
17use rustc_span::hygiene::Transparency;
18use rustc_span::{ErrorGuaranteed, Ident, Span, Symbol};
19pub use rustc_target::spec::SanitizerSet;
20use thin_vec::ThinVec;
21
22use crate::attrs::diagnostic::*;
23use crate::attrs::pretty_printing::PrintAttribute;
24use crate::limit::Limit;
25use crate::{DefaultBodyStability, PartialConstStability, RustcVersion, Stability};
26
27#[derive(#[automatically_derived]
impl ::core::marker::Copy for EiiImplResolution { }Copy, #[automatically_derived]
impl ::core::clone::Clone for EiiImplResolution {
    #[inline]
    fn clone(&self) -> EiiImplResolution {
        let _: ::core::clone::AssertParamIsClone<DefId>;
        let _: ::core::clone::AssertParamIsClone<EiiDecl>;
        let _: ::core::clone::AssertParamIsClone<ErrorGuaranteed>;
        *self
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for EiiImplResolution {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        match self {
            EiiImplResolution::Macro(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f, "Macro",
                    &__self_0),
            EiiImplResolution::Known(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f, "Known",
                    &__self_0),
            EiiImplResolution::Error(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f, "Error",
                    &__self_0),
        }
    }
}Debug, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for EiiImplResolution where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    EiiImplResolution::Macro(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    EiiImplResolution::Known(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    EiiImplResolution::Error(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for EiiImplResolution {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        EiiImplResolution::Macro(ref __binding_0) => { 0usize }
                        EiiImplResolution::Known(ref __binding_0) => { 1usize }
                        EiiImplResolution::Error(ref __binding_0) => { 2usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    EiiImplResolution::Macro(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    EiiImplResolution::Known(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    EiiImplResolution::Error(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for EiiImplResolution {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => {
                        EiiImplResolution::Macro(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    1usize => {
                        EiiImplResolution::Known(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    2usize => {
                        EiiImplResolution::Error(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `EiiImplResolution`, expected 0..3, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for EiiImplResolution {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Macro(f0) => {
                        __p.word("Macro");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::Known(f0) => {
                        __p.word("Known");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::Error(f0) => {
                        __p.word("Error");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                }
            }
        }
    };PrintAttribute)]
28pub enum EiiImplResolution {
29    /// Usually, finding the extern item that an EII implementation implements means finding
30    /// the defid of the associated attribute macro, and looking at *its* attributes to find
31    /// what foreign item its associated with.
32    Macro(DefId),
33    /// Sometimes though, we already know statically and can skip some name resolution.
34    /// Stored together with the eii's name for diagnostics.
35    Known(EiiDecl),
36    /// For when resolution failed, but we want to continue compilation
37    Error(ErrorGuaranteed),
38}
39
40#[derive(#[automatically_derived]
impl ::core::marker::Copy for EiiImpl { }Copy, #[automatically_derived]
impl ::core::clone::Clone for EiiImpl {
    #[inline]
    fn clone(&self) -> EiiImpl {
        let _: ::core::clone::AssertParamIsClone<EiiImplResolution>;
        let _: ::core::clone::AssertParamIsClone<bool>;
        let _: ::core::clone::AssertParamIsClone<Span>;
        *self
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for EiiImpl {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field5_finish(f, "EiiImpl",
            "resolution", &self.resolution, "impl_marked_unsafe",
            &self.impl_marked_unsafe, "span", &self.span, "inner_span",
            &self.inner_span, "is_default", &&self.is_default)
    }
}Debug, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for EiiImpl where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                match *self {
                    EiiImpl {
                        resolution: ref __binding_0,
                        impl_marked_unsafe: ref __binding_1,
                        span: ref __binding_2,
                        inner_span: ref __binding_3,
                        is_default: ref __binding_4 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                        { __binding_3.hash_stable(__hcx, __hasher); }
                        { __binding_4.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for EiiImpl {
            fn encode(&self, __encoder: &mut __E) {
                match *self {
                    EiiImpl {
                        resolution: ref __binding_0,
                        impl_marked_unsafe: ref __binding_1,
                        span: ref __binding_2,
                        inner_span: ref __binding_3,
                        is_default: ref __binding_4 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_3,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_4,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for EiiImpl {
            fn decode(__decoder: &mut __D) -> Self {
                EiiImpl {
                    resolution: ::rustc_serialize::Decodable::decode(__decoder),
                    impl_marked_unsafe: ::rustc_serialize::Decodable::decode(__decoder),
                    span: ::rustc_serialize::Decodable::decode(__decoder),
                    inner_span: ::rustc_serialize::Decodable::decode(__decoder),
                    is_default: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for EiiImpl {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                let Self {
                        resolution, impl_marked_unsafe, span, inner_span, is_default
                        } = self;
                __p.word("EiiImpl");
                if true && !resolution.should_render() &&
                                    !impl_marked_unsafe.should_render() && !span.should_render()
                            && !inner_span.should_render() &&
                        !is_default.should_render() {
                    return;
                }
                __p.nbsp();
                __p.word("{");
                let mut __printed_anything = false;
                if resolution.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("resolution");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                resolution.print_attribute(__p);
                if impl_marked_unsafe.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("impl_marked_unsafe");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                impl_marked_unsafe.print_attribute(__p);
                if span.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("span");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                span.print_attribute(__p);
                if inner_span.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("inner_span");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                inner_span.print_attribute(__p);
                if is_default.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("is_default");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                is_default.print_attribute(__p);
                __p.word("}");
            }
        }
    };PrintAttribute)]
41pub struct EiiImpl {
42    pub resolution: EiiImplResolution,
43    pub impl_marked_unsafe: bool,
44    pub span: Span,
45    pub inner_span: Span,
46    pub is_default: bool,
47}
48
49#[derive(#[automatically_derived]
impl ::core::marker::Copy for EiiDecl { }Copy, #[automatically_derived]
impl ::core::clone::Clone for EiiDecl {
    #[inline]
    fn clone(&self) -> EiiDecl {
        let _: ::core::clone::AssertParamIsClone<DefId>;
        let _: ::core::clone::AssertParamIsClone<bool>;
        let _: ::core::clone::AssertParamIsClone<Ident>;
        *self
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for EiiDecl {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field3_finish(f, "EiiDecl",
            "foreign_item", &self.foreign_item, "impl_unsafe",
            &self.impl_unsafe, "name", &&self.name)
    }
}Debug, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for EiiDecl where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                match *self {
                    EiiDecl {
                        foreign_item: ref __binding_0,
                        impl_unsafe: ref __binding_1,
                        name: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for EiiDecl {
            fn encode(&self, __encoder: &mut __E) {
                match *self {
                    EiiDecl {
                        foreign_item: ref __binding_0,
                        impl_unsafe: ref __binding_1,
                        name: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for EiiDecl {
            fn decode(__decoder: &mut __D) -> Self {
                EiiDecl {
                    foreign_item: ::rustc_serialize::Decodable::decode(__decoder),
                    impl_unsafe: ::rustc_serialize::Decodable::decode(__decoder),
                    name: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for EiiDecl {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                let Self { foreign_item, impl_unsafe, name } = self;
                __p.word("EiiDecl");
                if true && !foreign_item.should_render() &&
                            !impl_unsafe.should_render() && !name.should_render() {
                    return;
                }
                __p.nbsp();
                __p.word("{");
                let mut __printed_anything = false;
                if foreign_item.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("foreign_item");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                foreign_item.print_attribute(__p);
                if impl_unsafe.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("impl_unsafe");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                impl_unsafe.print_attribute(__p);
                if name.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("name");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                name.print_attribute(__p);
                __p.word("}");
            }
        }
    };PrintAttribute)]
50pub struct EiiDecl {
51    pub foreign_item: DefId,
52    /// whether or not it is unsafe to implement this EII
53    pub impl_unsafe: bool,
54    pub name: Ident,
55}
56
57#[derive(#[automatically_derived]
impl ::core::marker::Copy for CguKind { }Copy, #[automatically_derived]
impl ::core::clone::Clone for CguKind {
    #[inline]
    fn clone(&self) -> CguKind { *self }
}Clone, #[automatically_derived]
impl ::core::cmp::PartialEq for CguKind {
    #[inline]
    fn eq(&self, other: &CguKind) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for CguKind {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        CguKind::No => { 0usize }
                        CguKind::PreDashLto => { 1usize }
                        CguKind::PostDashLto => { 2usize }
                        CguKind::Any => { 3usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    CguKind::No => {}
                    CguKind::PreDashLto => {}
                    CguKind::PostDashLto => {}
                    CguKind::Any => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for CguKind {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { CguKind::No }
                    1usize => { CguKind::PreDashLto }
                    2usize => { CguKind::PostDashLto }
                    3usize => { CguKind::Any }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `CguKind`, expected 0..4, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::fmt::Debug for CguKind {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                CguKind::No => "No",
                CguKind::PreDashLto => "PreDashLto",
                CguKind::PostDashLto => "PostDashLto",
                CguKind::Any => "Any",
            })
    }
}Debug, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for CguKind where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    CguKind::No => {}
                    CguKind::PreDashLto => {}
                    CguKind::PostDashLto => {}
                    CguKind::Any => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for CguKind {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::No => { __p.word("No") }
                    Self::PreDashLto => { __p.word("PreDashLto") }
                    Self::PostDashLto => { __p.word("PostDashLto") }
                    Self::Any => { __p.word("Any") }
                }
            }
        }
    };PrintAttribute)]
58pub enum CguKind {
59    No,
60    PreDashLto,
61    PostDashLto,
62    Any,
63}
64
65#[derive(#[automatically_derived]
impl ::core::marker::Copy for CguFields { }Copy, #[automatically_derived]
impl ::core::clone::Clone for CguFields {
    #[inline]
    fn clone(&self) -> CguFields {
        let _: ::core::clone::AssertParamIsClone<Symbol>;
        let _: ::core::clone::AssertParamIsClone<CguKind>;
        *self
    }
}Clone, #[automatically_derived]
impl ::core::cmp::PartialEq for CguFields {
    #[inline]
    fn eq(&self, other: &CguFields) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr &&
            match (self, other) {
                (CguFields::PartitionReused { cfg: __self_0, module: __self_1
                    }, CguFields::PartitionReused {
                    cfg: __arg1_0, module: __arg1_1 }) =>
                    __self_0 == __arg1_0 && __self_1 == __arg1_1,
                (CguFields::PartitionCodegened {
                    cfg: __self_0, module: __self_1 },
                    CguFields::PartitionCodegened {
                    cfg: __arg1_0, module: __arg1_1 }) =>
                    __self_0 == __arg1_0 && __self_1 == __arg1_1,
                (CguFields::ExpectedCguReuse {
                    cfg: __self_0, module: __self_1, kind: __self_2 },
                    CguFields::ExpectedCguReuse {
                    cfg: __arg1_0, module: __arg1_1, kind: __arg1_2 }) =>
                    __self_0 == __arg1_0 && __self_1 == __arg1_1 &&
                        __self_2 == __arg1_2,
                _ => unsafe { ::core::intrinsics::unreachable() }
            }
    }
}PartialEq, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for CguFields {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        CguFields::PartitionReused {
                            cfg: ref __binding_0, module: ref __binding_1 } => {
                            0usize
                        }
                        CguFields::PartitionCodegened {
                            cfg: ref __binding_0, module: ref __binding_1 } => {
                            1usize
                        }
                        CguFields::ExpectedCguReuse {
                            cfg: ref __binding_0,
                            module: ref __binding_1,
                            kind: ref __binding_2 } => {
                            2usize
                        }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    CguFields::PartitionReused {
                        cfg: ref __binding_0, module: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    CguFields::PartitionCodegened {
                        cfg: ref __binding_0, module: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    CguFields::ExpectedCguReuse {
                        cfg: ref __binding_0,
                        module: ref __binding_1,
                        kind: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for CguFields {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => {
                        CguFields::PartitionReused {
                            cfg: ::rustc_serialize::Decodable::decode(__decoder),
                            module: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    1usize => {
                        CguFields::PartitionCodegened {
                            cfg: ::rustc_serialize::Decodable::decode(__decoder),
                            module: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    2usize => {
                        CguFields::ExpectedCguReuse {
                            cfg: ::rustc_serialize::Decodable::decode(__decoder),
                            module: ::rustc_serialize::Decodable::decode(__decoder),
                            kind: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `CguFields`, expected 0..3, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::fmt::Debug for CguFields {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        match self {
            CguFields::PartitionReused { cfg: __self_0, module: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "PartitionReused", "cfg", __self_0, "module", &__self_1),
            CguFields::PartitionCodegened { cfg: __self_0, module: __self_1 }
                =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "PartitionCodegened", "cfg", __self_0, "module", &__self_1),
            CguFields::ExpectedCguReuse {
                cfg: __self_0, module: __self_1, kind: __self_2 } =>
                ::core::fmt::Formatter::debug_struct_field3_finish(f,
                    "ExpectedCguReuse", "cfg", __self_0, "module", __self_1,
                    "kind", &__self_2),
        }
    }
}Debug, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for CguFields where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    CguFields::PartitionReused {
                        cfg: ref __binding_0, module: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    CguFields::PartitionCodegened {
                        cfg: ref __binding_0, module: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    CguFields::ExpectedCguReuse {
                        cfg: ref __binding_0,
                        module: ref __binding_1,
                        kind: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for CguFields {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::PartitionReused { cfg, module } => {
                        __p.word("PartitionReused");
                        if true && !cfg.should_render() && !module.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if cfg.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("cfg");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        cfg.print_attribute(__p);
                        if module.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("module");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        module.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::PartitionCodegened { cfg, module } => {
                        __p.word("PartitionCodegened");
                        if true && !cfg.should_render() && !module.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if cfg.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("cfg");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        cfg.print_attribute(__p);
                        if module.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("module");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        module.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::ExpectedCguReuse { cfg, module, kind } => {
                        __p.word("ExpectedCguReuse");
                        if true && !cfg.should_render() && !module.should_render()
                                && !kind.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if cfg.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("cfg");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        cfg.print_attribute(__p);
                        if module.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("module");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        module.print_attribute(__p);
                        if kind.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("kind");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        kind.print_attribute(__p);
                        __p.word("}");
                    }
                }
            }
        }
    };PrintAttribute)]
66pub enum CguFields {
67    PartitionReused { cfg: Symbol, module: Symbol },
68    PartitionCodegened { cfg: Symbol, module: Symbol },
69    ExpectedCguReuse { cfg: Symbol, module: Symbol, kind: CguKind },
70}
71
72#[derive(#[automatically_derived]
impl ::core::marker::Copy for DivergingFallbackBehavior { }Copy, #[automatically_derived]
impl ::core::clone::Clone for DivergingFallbackBehavior {
    #[inline]
    fn clone(&self) -> DivergingFallbackBehavior { *self }
}Clone, #[automatically_derived]
impl ::core::cmp::PartialEq for DivergingFallbackBehavior {
    #[inline]
    fn eq(&self, other: &DivergingFallbackBehavior) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq, #[automatically_derived]
impl ::core::fmt::Debug for DivergingFallbackBehavior {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                DivergingFallbackBehavior::ToUnit => "ToUnit",
                DivergingFallbackBehavior::ToNever => "ToNever",
                DivergingFallbackBehavior::NoFallback => "NoFallback",
            })
    }
}Debug, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for DivergingFallbackBehavior {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::ToUnit => { __p.word("ToUnit") }
                    Self::ToNever => { __p.word("ToNever") }
                    Self::NoFallback => { __p.word("NoFallback") }
                }
            }
        }
    };PrintAttribute)]
73#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for DivergingFallbackBehavior where
            __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    DivergingFallbackBehavior::ToUnit => {}
                    DivergingFallbackBehavior::ToNever => {}
                    DivergingFallbackBehavior::NoFallback => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for DivergingFallbackBehavior {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        DivergingFallbackBehavior::ToUnit => { 0usize }
                        DivergingFallbackBehavior::ToNever => { 1usize }
                        DivergingFallbackBehavior::NoFallback => { 2usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    DivergingFallbackBehavior::ToUnit => {}
                    DivergingFallbackBehavior::ToNever => {}
                    DivergingFallbackBehavior::NoFallback => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for DivergingFallbackBehavior {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { DivergingFallbackBehavior::ToUnit }
                    1usize => { DivergingFallbackBehavior::ToNever }
                    2usize => { DivergingFallbackBehavior::NoFallback }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `DivergingFallbackBehavior`, expected 0..3, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable)]
74pub enum DivergingFallbackBehavior {
75    /// Always fallback to `()` (aka "always spontaneous decay")
76    ToUnit,
77    /// Always fallback to `!` (which should be equivalent to never falling back + not making
78    /// never-to-any coercions unless necessary)
79    ToNever,
80    /// Don't fallback at all
81    NoFallback,
82}
83
84#[derive(#[automatically_derived]
impl ::core::marker::Copy for DivergingBlockBehavior { }Copy, #[automatically_derived]
impl ::core::clone::Clone for DivergingBlockBehavior {
    #[inline]
    fn clone(&self) -> DivergingBlockBehavior { *self }
}Clone, #[automatically_derived]
impl ::core::cmp::PartialEq for DivergingBlockBehavior {
    #[inline]
    fn eq(&self, other: &DivergingBlockBehavior) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq, #[automatically_derived]
impl ::core::fmt::Debug for DivergingBlockBehavior {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                DivergingBlockBehavior::Never => "Never",
                DivergingBlockBehavior::Unit => "Unit",
            })
    }
}Debug, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for DivergingBlockBehavior {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Never => { __p.word("Never") }
                    Self::Unit => { __p.word("Unit") }
                }
            }
        }
    };PrintAttribute, #[automatically_derived]
impl ::core::default::Default for DivergingBlockBehavior {
    #[inline]
    fn default() -> DivergingBlockBehavior { Self::Never }
}Default)]
85#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for DivergingBlockBehavior where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    DivergingBlockBehavior::Never => {}
                    DivergingBlockBehavior::Unit => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for DivergingBlockBehavior {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        DivergingBlockBehavior::Never => { 0usize }
                        DivergingBlockBehavior::Unit => { 1usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    DivergingBlockBehavior::Never => {}
                    DivergingBlockBehavior::Unit => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for DivergingBlockBehavior {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { DivergingBlockBehavior::Never }
                    1usize => { DivergingBlockBehavior::Unit }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `DivergingBlockBehavior`, expected 0..2, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable)]
86pub enum DivergingBlockBehavior {
87    /// This is the current stable behavior:
88    ///
89    /// ```rust
90    /// {
91    ///     return;
92    /// } // block has type = !, even though we are supposedly dropping it with `;`
93    /// ```
94    #[default]
95    Never,
96
97    /// Alternative behavior:
98    ///
99    /// ```ignore (very-unstable-new-attribute)
100    /// #![rustc_never_type_options(diverging_block_default = "unit")]
101    /// {
102    ///     return;
103    /// } // block has type = (), since we are dropping `!` from `return` with `;`
104    /// ```
105    Unit,
106}
107
108#[derive(#[automatically_derived]
impl ::core::marker::Copy for InlineAttr { }Copy, #[automatically_derived]
impl ::core::clone::Clone for InlineAttr {
    #[inline]
    fn clone(&self) -> InlineAttr {
        let _: ::core::clone::AssertParamIsClone<Span>;
        let _: ::core::clone::AssertParamIsClone<Option<Symbol>>;
        *self
    }
}Clone, #[automatically_derived]
impl ::core::cmp::PartialEq for InlineAttr {
    #[inline]
    fn eq(&self, other: &InlineAttr) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr &&
            match (self, other) {
                (InlineAttr::Force { attr_span: __self_0, reason: __self_1 },
                    InlineAttr::Force { attr_span: __arg1_0, reason: __arg1_1 })
                    => __self_0 == __arg1_0 && __self_1 == __arg1_1,
                _ => true,
            }
    }
}PartialEq, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for InlineAttr {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        InlineAttr::None => { 0usize }
                        InlineAttr::Hint => { 1usize }
                        InlineAttr::Always => { 2usize }
                        InlineAttr::Never => { 3usize }
                        InlineAttr::Force {
                            attr_span: ref __binding_0, reason: ref __binding_1 } => {
                            4usize
                        }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    InlineAttr::None => {}
                    InlineAttr::Hint => {}
                    InlineAttr::Always => {}
                    InlineAttr::Never => {}
                    InlineAttr::Force {
                        attr_span: ref __binding_0, reason: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for InlineAttr {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { InlineAttr::None }
                    1usize => { InlineAttr::Hint }
                    2usize => { InlineAttr::Always }
                    3usize => { InlineAttr::Never }
                    4usize => {
                        InlineAttr::Force {
                            attr_span: ::rustc_serialize::Decodable::decode(__decoder),
                            reason: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `InlineAttr`, expected 0..5, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::fmt::Debug for InlineAttr {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        match self {
            InlineAttr::None => ::core::fmt::Formatter::write_str(f, "None"),
            InlineAttr::Hint => ::core::fmt::Formatter::write_str(f, "Hint"),
            InlineAttr::Always =>
                ::core::fmt::Formatter::write_str(f, "Always"),
            InlineAttr::Never =>
                ::core::fmt::Formatter::write_str(f, "Never"),
            InlineAttr::Force { attr_span: __self_0, reason: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f, "Force",
                    "attr_span", __self_0, "reason", &__self_1),
        }
    }
}Debug, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for InlineAttr where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    InlineAttr::None => {}
                    InlineAttr::Hint => {}
                    InlineAttr::Always => {}
                    InlineAttr::Never => {}
                    InlineAttr::Force {
                        attr_span: ref __binding_0, reason: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for InlineAttr {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::None => { __p.word("None") }
                    Self::Hint => { __p.word("Hint") }
                    Self::Always => { __p.word("Always") }
                    Self::Never => { __p.word("Never") }
                    Self::Force { attr_span, reason } => {
                        __p.word("Force");
                        if true && !attr_span.should_render() &&
                                !reason.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if attr_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("attr_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        attr_span.print_attribute(__p);
                        if reason.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("reason");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        reason.print_attribute(__p);
                        __p.word("}");
                    }
                }
            }
        }
    };PrintAttribute)]
109pub enum InlineAttr {
110    None,
111    Hint,
112    Always,
113    Never,
114    /// `#[rustc_force_inline]` forces inlining to happen in the MIR inliner - it reports an error
115    /// if the inlining cannot happen. It is limited to only free functions so that the calls
116    /// can always be resolved.
117    Force {
118        attr_span: Span,
119        reason: Option<Symbol>,
120    },
121}
122
123impl InlineAttr {
124    pub fn always(&self) -> bool {
125        match self {
126            InlineAttr::Always | InlineAttr::Force { .. } => true,
127            InlineAttr::None | InlineAttr::Hint | InlineAttr::Never => false,
128        }
129    }
130}
131
132#[derive(
133    #[automatically_derived]
impl ::core::marker::Copy for InstructionSetAttr { }Copy,
134    #[automatically_derived]
impl ::core::clone::Clone for InstructionSetAttr {
    #[inline]
    fn clone(&self) -> InstructionSetAttr { *self }
}Clone,
135    const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for InstructionSetAttr {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        InstructionSetAttr::ArmA32 => { 0usize }
                        InstructionSetAttr::ArmT32 => { 1usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    InstructionSetAttr::ArmA32 => {}
                    InstructionSetAttr::ArmT32 => {}
                }
            }
        }
    };Encodable,
136    const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for InstructionSetAttr {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { InstructionSetAttr::ArmA32 }
                    1usize => { InstructionSetAttr::ArmT32 }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `InstructionSetAttr`, expected 0..2, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable,
137    #[automatically_derived]
impl ::core::fmt::Debug for InstructionSetAttr {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                InstructionSetAttr::ArmA32 => "ArmA32",
                InstructionSetAttr::ArmT32 => "ArmT32",
            })
    }
}Debug,
138    #[automatically_derived]
impl ::core::cmp::PartialEq for InstructionSetAttr {
    #[inline]
    fn eq(&self, other: &InstructionSetAttr) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq,
139    #[automatically_derived]
impl ::core::cmp::Eq for InstructionSetAttr {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {}
}Eq,
140    const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for InstructionSetAttr where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    InstructionSetAttr::ArmA32 => {}
                    InstructionSetAttr::ArmT32 => {}
                }
            }
        }
    };HashStable_Generic,
141    const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for InstructionSetAttr {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::ArmA32 => { __p.word("ArmA32") }
                    Self::ArmT32 => { __p.word("ArmT32") }
                }
            }
        }
    };PrintAttribute
142)]
143pub enum InstructionSetAttr {
144    ArmA32,
145    ArmT32,
146}
147
148#[derive(#[automatically_derived]
impl ::core::marker::Copy for OptimizeAttr { }Copy, #[automatically_derived]
impl ::core::clone::Clone for OptimizeAttr {
    #[inline]
    fn clone(&self) -> OptimizeAttr { *self }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for OptimizeAttr {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                OptimizeAttr::Default => "Default",
                OptimizeAttr::DoNotOptimize => "DoNotOptimize",
                OptimizeAttr::Speed => "Speed",
                OptimizeAttr::Size => "Size",
            })
    }
}Debug, #[automatically_derived]
impl ::core::cmp::PartialEq for OptimizeAttr {
    #[inline]
    fn eq(&self, other: &OptimizeAttr) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq, #[automatically_derived]
impl ::core::cmp::Eq for OptimizeAttr {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {}
}Eq, #[automatically_derived]
impl ::core::default::Default for OptimizeAttr {
    #[inline]
    fn default() -> OptimizeAttr { Self::Default }
}Default, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for OptimizeAttr {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Default => { __p.word("Default") }
                    Self::DoNotOptimize => { __p.word("DoNotOptimize") }
                    Self::Speed => { __p.word("Speed") }
                    Self::Size => { __p.word("Size") }
                }
            }
        }
    };PrintAttribute)]
149#[derive(const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for OptimizeAttr {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        OptimizeAttr::Default => { 0usize }
                        OptimizeAttr::DoNotOptimize => { 1usize }
                        OptimizeAttr::Speed => { 2usize }
                        OptimizeAttr::Size => { 3usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    OptimizeAttr::Default => {}
                    OptimizeAttr::DoNotOptimize => {}
                    OptimizeAttr::Speed => {}
                    OptimizeAttr::Size => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for OptimizeAttr {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { OptimizeAttr::Default }
                    1usize => { OptimizeAttr::DoNotOptimize }
                    2usize => { OptimizeAttr::Speed }
                    3usize => { OptimizeAttr::Size }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `OptimizeAttr`, expected 0..4, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for OptimizeAttr where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    OptimizeAttr::Default => {}
                    OptimizeAttr::DoNotOptimize => {}
                    OptimizeAttr::Speed => {}
                    OptimizeAttr::Size => {}
                }
            }
        }
    };HashStable_Generic)]
150pub enum OptimizeAttr {
151    /// No `#[optimize(..)]` attribute
152    #[default]
153    Default,
154    /// `#[optimize(none)]`
155    DoNotOptimize,
156    /// `#[optimize(speed)]`
157    Speed,
158    /// `#[optimize(size)]`
159    Size,
160}
161
162impl OptimizeAttr {
163    pub fn do_not_optimize(&self) -> bool {
164        #[allow(non_exhaustive_omitted_patterns)] match self {
    Self::DoNotOptimize => true,
    _ => false,
}matches!(self, Self::DoNotOptimize)
165    }
166}
167
168#[derive(#[automatically_derived]
impl ::core::cmp::PartialEq for ReprAttr {
    #[inline]
    fn eq(&self, other: &ReprAttr) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr &&
            match (self, other) {
                (ReprAttr::ReprInt(__self_0), ReprAttr::ReprInt(__arg1_0)) =>
                    __self_0 == __arg1_0,
                (ReprAttr::ReprPacked(__self_0),
                    ReprAttr::ReprPacked(__arg1_0)) => __self_0 == __arg1_0,
                (ReprAttr::ReprAlign(__self_0), ReprAttr::ReprAlign(__arg1_0))
                    => __self_0 == __arg1_0,
                _ => true,
            }
    }
}PartialEq, #[automatically_derived]
impl ::core::fmt::Debug for ReprAttr {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        match self {
            ReprAttr::ReprInt(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "ReprInt", &__self_0),
            ReprAttr::ReprRust =>
                ::core::fmt::Formatter::write_str(f, "ReprRust"),
            ReprAttr::ReprC => ::core::fmt::Formatter::write_str(f, "ReprC"),
            ReprAttr::ReprPacked(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "ReprPacked", &__self_0),
            ReprAttr::ReprSimd =>
                ::core::fmt::Formatter::write_str(f, "ReprSimd"),
            ReprAttr::ReprTransparent =>
                ::core::fmt::Formatter::write_str(f, "ReprTransparent"),
            ReprAttr::ReprAlign(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "ReprAlign", &__self_0),
        }
    }
}Debug, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for ReprAttr {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        ReprAttr::ReprInt(ref __binding_0) => { 0usize }
                        ReprAttr::ReprRust => { 1usize }
                        ReprAttr::ReprC => { 2usize }
                        ReprAttr::ReprPacked(ref __binding_0) => { 3usize }
                        ReprAttr::ReprSimd => { 4usize }
                        ReprAttr::ReprTransparent => { 5usize }
                        ReprAttr::ReprAlign(ref __binding_0) => { 6usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    ReprAttr::ReprInt(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    ReprAttr::ReprRust => {}
                    ReprAttr::ReprC => {}
                    ReprAttr::ReprPacked(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    ReprAttr::ReprSimd => {}
                    ReprAttr::ReprTransparent => {}
                    ReprAttr::ReprAlign(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for ReprAttr {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => {
                        ReprAttr::ReprInt(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    1usize => { ReprAttr::ReprRust }
                    2usize => { ReprAttr::ReprC }
                    3usize => {
                        ReprAttr::ReprPacked(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    4usize => { ReprAttr::ReprSimd }
                    5usize => { ReprAttr::ReprTransparent }
                    6usize => {
                        ReprAttr::ReprAlign(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `ReprAttr`, expected 0..7, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::marker::Copy for ReprAttr { }Copy, #[automatically_derived]
impl ::core::clone::Clone for ReprAttr {
    #[inline]
    fn clone(&self) -> ReprAttr {
        let _: ::core::clone::AssertParamIsClone<IntType>;
        let _: ::core::clone::AssertParamIsClone<Align>;
        *self
    }
}Clone, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for ReprAttr where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    ReprAttr::ReprInt(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    ReprAttr::ReprRust => {}
                    ReprAttr::ReprC => {}
                    ReprAttr::ReprPacked(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    ReprAttr::ReprSimd => {}
                    ReprAttr::ReprTransparent => {}
                    ReprAttr::ReprAlign(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for ReprAttr {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::ReprInt(f0) => {
                        __p.word("ReprInt");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::ReprRust => { __p.word("ReprRust") }
                    Self::ReprC => { __p.word("ReprC") }
                    Self::ReprPacked(f0) => {
                        __p.word("ReprPacked");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::ReprSimd => { __p.word("ReprSimd") }
                    Self::ReprTransparent => { __p.word("ReprTransparent") }
                    Self::ReprAlign(f0) => {
                        __p.word("ReprAlign");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                }
            }
        }
    };PrintAttribute)]
169pub enum ReprAttr {
170    ReprInt(IntType),
171    ReprRust,
172    ReprC,
173    ReprPacked(Align),
174    ReprSimd,
175    ReprTransparent,
176    ReprAlign(Align),
177}
178
179pub enum TransparencyError {
180    UnknownTransparency(Symbol, Span),
181    MultipleTransparencyAttrs(Span, Span),
182}
183
184#[derive(#[automatically_derived]
impl ::core::cmp::Eq for IntType {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {
        let _: ::core::cmp::AssertParamIsEq<ast::IntTy>;
        let _: ::core::cmp::AssertParamIsEq<ast::UintTy>;
    }
}Eq, #[automatically_derived]
impl ::core::cmp::PartialEq for IntType {
    #[inline]
    fn eq(&self, other: &IntType) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr &&
            match (self, other) {
                (IntType::SignedInt(__self_0), IntType::SignedInt(__arg1_0))
                    => __self_0 == __arg1_0,
                (IntType::UnsignedInt(__self_0),
                    IntType::UnsignedInt(__arg1_0)) => __self_0 == __arg1_0,
                _ => unsafe { ::core::intrinsics::unreachable() }
            }
    }
}PartialEq, #[automatically_derived]
impl ::core::fmt::Debug for IntType {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        match self {
            IntType::SignedInt(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "SignedInt", &__self_0),
            IntType::UnsignedInt(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "UnsignedInt", &__self_0),
        }
    }
}Debug, #[automatically_derived]
impl ::core::marker::Copy for IntType { }Copy, #[automatically_derived]
impl ::core::clone::Clone for IntType {
    #[inline]
    fn clone(&self) -> IntType {
        let _: ::core::clone::AssertParamIsClone<ast::IntTy>;
        let _: ::core::clone::AssertParamIsClone<ast::UintTy>;
        *self
    }
}Clone)]
185#[derive(const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for IntType {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        IntType::SignedInt(ref __binding_0) => { 0usize }
                        IntType::UnsignedInt(ref __binding_0) => { 1usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    IntType::SignedInt(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    IntType::UnsignedInt(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for IntType {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => {
                        IntType::SignedInt(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    1usize => {
                        IntType::UnsignedInt(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `IntType`, expected 0..2, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for IntType where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    IntType::SignedInt(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    IntType::UnsignedInt(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for IntType {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::SignedInt(f0) => {
                        __p.word("SignedInt");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::UnsignedInt(f0) => {
                        __p.word("UnsignedInt");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                }
            }
        }
    };PrintAttribute)]
186pub enum IntType {
187    SignedInt(ast::IntTy),
188    UnsignedInt(ast::UintTy),
189}
190
191#[derive(#[automatically_derived]
impl ::core::marker::Copy for Deprecation { }Copy, #[automatically_derived]
impl ::core::fmt::Debug for Deprecation {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field3_finish(f, "Deprecation",
            "since", &self.since, "note", &self.note, "suggestion",
            &&self.suggestion)
    }
}Debug, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for Deprecation {
            fn encode(&self, __encoder: &mut __E) {
                match *self {
                    Deprecation {
                        since: ref __binding_0,
                        note: ref __binding_1,
                        suggestion: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for Deprecation {
            fn decode(__decoder: &mut __D) -> Self {
                Deprecation {
                    since: ::rustc_serialize::Decodable::decode(__decoder),
                    note: ::rustc_serialize::Decodable::decode(__decoder),
                    suggestion: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::clone::Clone for Deprecation {
    #[inline]
    fn clone(&self) -> Deprecation {
        let _: ::core::clone::AssertParamIsClone<DeprecatedSince>;
        let _: ::core::clone::AssertParamIsClone<Option<Ident>>;
        let _: ::core::clone::AssertParamIsClone<Option<Symbol>>;
        *self
    }
}Clone, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for Deprecation where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                match *self {
                    Deprecation {
                        since: ref __binding_0,
                        note: ref __binding_1,
                        suggestion: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for Deprecation {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                let Self { since, note, suggestion } = self;
                __p.word("Deprecation");
                if true && !since.should_render() && !note.should_render() &&
                        !suggestion.should_render() {
                    return;
                }
                __p.nbsp();
                __p.word("{");
                let mut __printed_anything = false;
                if since.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("since");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                since.print_attribute(__p);
                if note.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("note");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                note.print_attribute(__p);
                if suggestion.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("suggestion");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                suggestion.print_attribute(__p);
                __p.word("}");
            }
        }
    };PrintAttribute)]
192pub struct Deprecation {
193    pub since: DeprecatedSince,
194    /// The note to issue a reason.
195    pub note: Option<Ident>,
196    /// A text snippet used to completely replace any use of the deprecated item in an expression.
197    ///
198    /// This is currently unstable.
199    pub suggestion: Option<Symbol>,
200}
201
202/// Release in which an API is deprecated.
203#[derive(#[automatically_derived]
impl ::core::marker::Copy for DeprecatedSince { }Copy, #[automatically_derived]
impl ::core::fmt::Debug for DeprecatedSince {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        match self {
            DeprecatedSince::RustcVersion(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcVersion", &__self_0),
            DeprecatedSince::Future =>
                ::core::fmt::Formatter::write_str(f, "Future"),
            DeprecatedSince::NonStandard(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "NonStandard", &__self_0),
            DeprecatedSince::Unspecified =>
                ::core::fmt::Formatter::write_str(f, "Unspecified"),
            DeprecatedSince::Err =>
                ::core::fmt::Formatter::write_str(f, "Err"),
        }
    }
}Debug, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for DeprecatedSince {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        DeprecatedSince::RustcVersion(ref __binding_0) => { 0usize }
                        DeprecatedSince::Future => { 1usize }
                        DeprecatedSince::NonStandard(ref __binding_0) => { 2usize }
                        DeprecatedSince::Unspecified => { 3usize }
                        DeprecatedSince::Err => { 4usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    DeprecatedSince::RustcVersion(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    DeprecatedSince::Future => {}
                    DeprecatedSince::NonStandard(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    DeprecatedSince::Unspecified => {}
                    DeprecatedSince::Err => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for DeprecatedSince {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => {
                        DeprecatedSince::RustcVersion(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    1usize => { DeprecatedSince::Future }
                    2usize => {
                        DeprecatedSince::NonStandard(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    3usize => { DeprecatedSince::Unspecified }
                    4usize => { DeprecatedSince::Err }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `DeprecatedSince`, expected 0..5, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::clone::Clone for DeprecatedSince {
    #[inline]
    fn clone(&self) -> DeprecatedSince {
        let _: ::core::clone::AssertParamIsClone<RustcVersion>;
        let _: ::core::clone::AssertParamIsClone<Symbol>;
        *self
    }
}Clone, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for DeprecatedSince where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    DeprecatedSince::RustcVersion(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    DeprecatedSince::Future => {}
                    DeprecatedSince::NonStandard(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    DeprecatedSince::Unspecified => {}
                    DeprecatedSince::Err => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for DeprecatedSince {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::RustcVersion(f0) => {
                        __p.word("RustcVersion");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::Future => { __p.word("Future") }
                    Self::NonStandard(f0) => {
                        __p.word("NonStandard");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::Unspecified => { __p.word("Unspecified") }
                    Self::Err => { __p.word("Err") }
                }
            }
        }
    };PrintAttribute)]
204pub enum DeprecatedSince {
205    RustcVersion(RustcVersion),
206    /// Deprecated in the future ("to be determined").
207    Future,
208    /// `feature(staged_api)` is off. Deprecation versions outside the standard
209    /// library are allowed to be arbitrary strings, for better or worse.
210    NonStandard(Symbol),
211    /// Deprecation version is unspecified but optional.
212    Unspecified,
213    /// Failed to parse a deprecation version, or the deprecation version is
214    /// unspecified and required. An error has already been emitted.
215    Err,
216}
217
218/// Successfully-parsed value of a `#[coverage(..)]` attribute.
219#[derive(#[automatically_derived]
impl ::core::marker::Copy for CoverageAttrKind { }Copy, #[automatically_derived]
impl ::core::fmt::Debug for CoverageAttrKind {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                CoverageAttrKind::On => "On",
                CoverageAttrKind::Off => "Off",
            })
    }
}Debug, #[automatically_derived]
impl ::core::cmp::Eq for CoverageAttrKind {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {}
}Eq, #[automatically_derived]
impl ::core::cmp::PartialEq for CoverageAttrKind {
    #[inline]
    fn eq(&self, other: &CoverageAttrKind) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for CoverageAttrKind {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        CoverageAttrKind::On => { 0usize }
                        CoverageAttrKind::Off => { 1usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    CoverageAttrKind::On => {}
                    CoverageAttrKind::Off => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for CoverageAttrKind {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { CoverageAttrKind::On }
                    1usize => { CoverageAttrKind::Off }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `CoverageAttrKind`, expected 0..2, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::clone::Clone for CoverageAttrKind {
    #[inline]
    fn clone(&self) -> CoverageAttrKind { *self }
}Clone)]
220#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for CoverageAttrKind where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    CoverageAttrKind::On => {}
                    CoverageAttrKind::Off => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for CoverageAttrKind {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::On => { __p.word("On") }
                    Self::Off => { __p.word("Off") }
                }
            }
        }
    };PrintAttribute)]
221pub enum CoverageAttrKind {
222    On,
223    Off,
224}
225
226/// Successfully-parsed value of a `#[rustc_abi(..)]` attribute.
227#[derive(#[automatically_derived]
impl ::core::marker::Copy for RustcAbiAttrKind { }Copy, #[automatically_derived]
impl ::core::fmt::Debug for RustcAbiAttrKind {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                RustcAbiAttrKind::Debug => "Debug",
                RustcAbiAttrKind::AssertEq => "AssertEq",
            })
    }
}Debug, #[automatically_derived]
impl ::core::cmp::Eq for RustcAbiAttrKind {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {}
}Eq, #[automatically_derived]
impl ::core::cmp::PartialEq for RustcAbiAttrKind {
    #[inline]
    fn eq(&self, other: &RustcAbiAttrKind) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for RustcAbiAttrKind {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        RustcAbiAttrKind::Debug => { 0usize }
                        RustcAbiAttrKind::AssertEq => { 1usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    RustcAbiAttrKind::Debug => {}
                    RustcAbiAttrKind::AssertEq => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for RustcAbiAttrKind {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { RustcAbiAttrKind::Debug }
                    1usize => { RustcAbiAttrKind::AssertEq }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `RustcAbiAttrKind`, expected 0..2, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::clone::Clone for RustcAbiAttrKind {
    #[inline]
    fn clone(&self) -> RustcAbiAttrKind { *self }
}Clone)]
228#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for RustcAbiAttrKind where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    RustcAbiAttrKind::Debug => {}
                    RustcAbiAttrKind::AssertEq => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for RustcAbiAttrKind {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Debug => { __p.word("Debug") }
                    Self::AssertEq => { __p.word("AssertEq") }
                }
            }
        }
    };PrintAttribute)]
229pub enum RustcAbiAttrKind {
230    Debug,
231    AssertEq,
232}
233
234impl Deprecation {
235    /// Whether an item marked with #[deprecated(since = "X")] is currently
236    /// deprecated (i.e., whether X is not greater than the current rustc
237    /// version).
238    pub fn is_in_effect(&self) -> bool {
239        match self.since {
240            DeprecatedSince::RustcVersion(since) => since <= RustcVersion::CURRENT,
241            DeprecatedSince::Future => false,
242            // The `since` field doesn't have semantic purpose without `#![staged_api]`.
243            DeprecatedSince::NonStandard(_) => true,
244            // Assume deprecation is in effect if "since" field is absent or invalid.
245            DeprecatedSince::Unspecified | DeprecatedSince::Err => true,
246        }
247    }
248
249    pub fn is_since_rustc_version(&self) -> bool {
250        #[allow(non_exhaustive_omitted_patterns)] match self.since {
    DeprecatedSince::RustcVersion(_) => true,
    _ => false,
}matches!(self.since, DeprecatedSince::RustcVersion(_))
251    }
252}
253
254/// There are three valid forms of the attribute:
255/// `#[used]`, which is equivalent to `#[used(linker)]` on targets that support it, but `#[used(compiler)]` if not.
256/// `#[used(compiler)]`
257/// `#[used(linker)]`
258#[derive(const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for UsedBy {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        UsedBy::Default => { 0usize }
                        UsedBy::Compiler => { 1usize }
                        UsedBy::Linker => { 2usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    UsedBy::Default => {}
                    UsedBy::Compiler => {}
                    UsedBy::Linker => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for UsedBy {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { UsedBy::Default }
                    1usize => { UsedBy::Compiler }
                    2usize => { UsedBy::Linker }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `UsedBy`, expected 0..3, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::marker::Copy for UsedBy { }Copy, #[automatically_derived]
impl ::core::clone::Clone for UsedBy {
    #[inline]
    fn clone(&self) -> UsedBy { *self }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for UsedBy {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                UsedBy::Default => "Default",
                UsedBy::Compiler => "Compiler",
                UsedBy::Linker => "Linker",
            })
    }
}Debug, #[automatically_derived]
impl ::core::cmp::PartialEq for UsedBy {
    #[inline]
    fn eq(&self, other: &UsedBy) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq, #[automatically_derived]
impl ::core::cmp::Eq for UsedBy {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {}
}Eq, #[automatically_derived]
impl ::core::hash::Hash for UsedBy {
    #[inline]
    fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        ::core::hash::Hash::hash(&__self_discr, state)
    }
}Hash)]
259#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for UsedBy where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    UsedBy::Default => {}
                    UsedBy::Compiler => {}
                    UsedBy::Linker => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for UsedBy {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Default => { __p.word("Default") }
                    Self::Compiler => { __p.word("Compiler") }
                    Self::Linker => { __p.word("Linker") }
                }
            }
        }
    };PrintAttribute)]
260pub enum UsedBy {
261    Default,
262    Compiler,
263    Linker,
264}
265
266#[derive(const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for MacroUseArgs {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        MacroUseArgs::UseAll => { 0usize }
                        MacroUseArgs::UseSpecific(ref __binding_0) => { 1usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    MacroUseArgs::UseAll => {}
                    MacroUseArgs::UseSpecific(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for MacroUseArgs {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { MacroUseArgs::UseAll }
                    1usize => {
                        MacroUseArgs::UseSpecific(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `MacroUseArgs`, expected 0..2, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::clone::Clone for MacroUseArgs {
    #[inline]
    fn clone(&self) -> MacroUseArgs {
        match self {
            MacroUseArgs::UseAll => MacroUseArgs::UseAll,
            MacroUseArgs::UseSpecific(__self_0) =>
                MacroUseArgs::UseSpecific(::core::clone::Clone::clone(__self_0)),
        }
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for MacroUseArgs {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        match self {
            MacroUseArgs::UseAll =>
                ::core::fmt::Formatter::write_str(f, "UseAll"),
            MacroUseArgs::UseSpecific(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "UseSpecific", &__self_0),
        }
    }
}Debug, #[automatically_derived]
impl ::core::cmp::PartialEq for MacroUseArgs {
    #[inline]
    fn eq(&self, other: &MacroUseArgs) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr &&
            match (self, other) {
                (MacroUseArgs::UseSpecific(__self_0),
                    MacroUseArgs::UseSpecific(__arg1_0)) =>
                    __self_0 == __arg1_0,
                _ => true,
            }
    }
}PartialEq, #[automatically_derived]
impl ::core::cmp::Eq for MacroUseArgs {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {
        let _: ::core::cmp::AssertParamIsEq<ThinVec<Ident>>;
    }
}Eq, #[automatically_derived]
impl ::core::hash::Hash for MacroUseArgs {
    #[inline]
    fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        ::core::hash::Hash::hash(&__self_discr, state);
        match self {
            MacroUseArgs::UseSpecific(__self_0) =>
                ::core::hash::Hash::hash(__self_0, state),
            _ => {}
        }
    }
}Hash)]
267#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for MacroUseArgs where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    MacroUseArgs::UseAll => {}
                    MacroUseArgs::UseSpecific(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for MacroUseArgs {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::UseAll => { __p.word("UseAll") }
                    Self::UseSpecific(f0) => {
                        __p.word("UseSpecific");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                }
            }
        }
    };PrintAttribute)]
268pub enum MacroUseArgs {
269    UseAll,
270    UseSpecific(ThinVec<Ident>),
271}
272
273impl Default for MacroUseArgs {
274    fn default() -> Self {
275        Self::UseSpecific(ThinVec::new())
276    }
277}
278
279#[derive(#[automatically_derived]
impl<ModId: ::core::fmt::Debug> ::core::fmt::Debug for StrippedCfgItem<ModId>
    {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field3_finish(f,
            "StrippedCfgItem", "parent_module", &self.parent_module, "ident",
            &self.ident, "cfg", &&self.cfg)
    }
}Debug, #[automatically_derived]
impl<ModId: ::core::clone::Clone> ::core::clone::Clone for
    StrippedCfgItem<ModId> {
    #[inline]
    fn clone(&self) -> StrippedCfgItem<ModId> {
        StrippedCfgItem {
            parent_module: ::core::clone::Clone::clone(&self.parent_module),
            ident: ::core::clone::Clone::clone(&self.ident),
            cfg: ::core::clone::Clone::clone(&self.cfg),
        }
    }
}Clone, const _: () =
    {
        impl<ModId, __E: ::rustc_span::SpanEncoder>
            ::rustc_serialize::Encodable<__E> for StrippedCfgItem<ModId> where
            ModId: ::rustc_serialize::Encodable<__E> {
            fn encode(&self, __encoder: &mut __E) {
                match *self {
                    StrippedCfgItem {
                        parent_module: ref __binding_0,
                        ident: ref __binding_1,
                        cfg: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<ModId, __D: ::rustc_span::SpanDecoder>
            ::rustc_serialize::Decodable<__D> for StrippedCfgItem<ModId> where
            ModId: ::rustc_serialize::Decodable<__D> {
            fn decode(__decoder: &mut __D) -> Self {
                StrippedCfgItem {
                    parent_module: ::rustc_serialize::Decodable::decode(__decoder),
                    ident: ::rustc_serialize::Decodable::decode(__decoder),
                    cfg: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };Decodable, const _: () =
    {
        impl<ModId, __CTX>
            ::rustc_data_structures::stable_hasher::HashStable<__CTX> for
            StrippedCfgItem<ModId> where __CTX: crate::HashStableContext,
            ModId: ::rustc_data_structures::stable_hasher::HashStable<__CTX> {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                match *self {
                    StrippedCfgItem {
                        parent_module: ref __binding_0,
                        ident: ref __binding_1,
                        cfg: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic)]
280pub struct StrippedCfgItem<ModId = DefId> {
281    pub parent_module: ModId,
282    pub ident: Ident,
283    pub cfg: (CfgEntry, Span),
284}
285
286impl<ModId> StrippedCfgItem<ModId> {
287    pub fn map_mod_id<New>(self, f: impl FnOnce(ModId) -> New) -> StrippedCfgItem<New> {
288        StrippedCfgItem { parent_module: f(self.parent_module), ident: self.ident, cfg: self.cfg }
289    }
290}
291
292/// Possible values for the `#[linkage]` attribute, allowing to specify the
293/// linkage type for a `MonoItem`.
294///
295/// See <https://llvm.org/docs/LangRef.html#linkage-types> for more details about these variants.
296#[derive(const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for Linkage {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        Linkage::AvailableExternally => { 0usize }
                        Linkage::Common => { 1usize }
                        Linkage::ExternalWeak => { 2usize }
                        Linkage::External => { 3usize }
                        Linkage::Internal => { 4usize }
                        Linkage::LinkOnceAny => { 5usize }
                        Linkage::LinkOnceODR => { 6usize }
                        Linkage::WeakAny => { 7usize }
                        Linkage::WeakODR => { 8usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    Linkage::AvailableExternally => {}
                    Linkage::Common => {}
                    Linkage::ExternalWeak => {}
                    Linkage::External => {}
                    Linkage::Internal => {}
                    Linkage::LinkOnceAny => {}
                    Linkage::LinkOnceODR => {}
                    Linkage::WeakAny => {}
                    Linkage::WeakODR => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for Linkage {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { Linkage::AvailableExternally }
                    1usize => { Linkage::Common }
                    2usize => { Linkage::ExternalWeak }
                    3usize => { Linkage::External }
                    4usize => { Linkage::Internal }
                    5usize => { Linkage::LinkOnceAny }
                    6usize => { Linkage::LinkOnceODR }
                    7usize => { Linkage::WeakAny }
                    8usize => { Linkage::WeakODR }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `Linkage`, expected 0..9, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::clone::Clone for Linkage {
    #[inline]
    fn clone(&self) -> Linkage { *self }
}Clone, #[automatically_derived]
impl ::core::marker::Copy for Linkage { }Copy, #[automatically_derived]
impl ::core::fmt::Debug for Linkage {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                Linkage::AvailableExternally => "AvailableExternally",
                Linkage::Common => "Common",
                Linkage::ExternalWeak => "ExternalWeak",
                Linkage::External => "External",
                Linkage::Internal => "Internal",
                Linkage::LinkOnceAny => "LinkOnceAny",
                Linkage::LinkOnceODR => "LinkOnceODR",
                Linkage::WeakAny => "WeakAny",
                Linkage::WeakODR => "WeakODR",
            })
    }
}Debug, #[automatically_derived]
impl ::core::cmp::PartialEq for Linkage {
    #[inline]
    fn eq(&self, other: &Linkage) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq, #[automatically_derived]
impl ::core::cmp::Eq for Linkage {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {}
}Eq, #[automatically_derived]
impl ::core::hash::Hash for Linkage {
    #[inline]
    fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        ::core::hash::Hash::hash(&__self_discr, state)
    }
}Hash)]
297#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for Linkage where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    Linkage::AvailableExternally => {}
                    Linkage::Common => {}
                    Linkage::ExternalWeak => {}
                    Linkage::External => {}
                    Linkage::Internal => {}
                    Linkage::LinkOnceAny => {}
                    Linkage::LinkOnceODR => {}
                    Linkage::WeakAny => {}
                    Linkage::WeakODR => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for Linkage {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::AvailableExternally => {
                        __p.word("AvailableExternally")
                    }
                    Self::Common => { __p.word("Common") }
                    Self::ExternalWeak => { __p.word("ExternalWeak") }
                    Self::External => { __p.word("External") }
                    Self::Internal => { __p.word("Internal") }
                    Self::LinkOnceAny => { __p.word("LinkOnceAny") }
                    Self::LinkOnceODR => { __p.word("LinkOnceODR") }
                    Self::WeakAny => { __p.word("WeakAny") }
                    Self::WeakODR => { __p.word("WeakODR") }
                }
            }
        }
    };PrintAttribute)]
298pub enum Linkage {
299    AvailableExternally,
300    Common,
301    ExternalWeak,
302    External,
303    Internal,
304    LinkOnceAny,
305    LinkOnceODR,
306    WeakAny,
307    WeakODR,
308}
309
310#[derive(#[automatically_derived]
impl ::core::clone::Clone for MirDialect {
    #[inline]
    fn clone(&self) -> MirDialect { *self }
}Clone, #[automatically_derived]
impl ::core::marker::Copy for MirDialect { }Copy, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for MirDialect {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { MirDialect::Analysis }
                    1usize => { MirDialect::Built }
                    2usize => { MirDialect::Runtime }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `MirDialect`, expected 0..3, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::fmt::Debug for MirDialect {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                MirDialect::Analysis => "Analysis",
                MirDialect::Built => "Built",
                MirDialect::Runtime => "Runtime",
            })
    }
}Debug, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for MirDialect {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        MirDialect::Analysis => { 0usize }
                        MirDialect::Built => { 1usize }
                        MirDialect::Runtime => { 2usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    MirDialect::Analysis => {}
                    MirDialect::Built => {}
                    MirDialect::Runtime => {}
                }
            }
        }
    };Encodable, #[automatically_derived]
impl ::core::cmp::PartialEq for MirDialect {
    #[inline]
    fn eq(&self, other: &MirDialect) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq)]
311#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for MirDialect where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    MirDialect::Analysis => {}
                    MirDialect::Built => {}
                    MirDialect::Runtime => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for MirDialect {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Analysis => { __p.word("Analysis") }
                    Self::Built => { __p.word("Built") }
                    Self::Runtime => { __p.word("Runtime") }
                }
            }
        }
    };PrintAttribute)]
312pub enum MirDialect {
313    Analysis,
314    Built,
315    Runtime,
316}
317
318impl IntoDiagArg for MirDialect {
319    fn into_diag_arg(self, _path: &mut Option<PathBuf>) -> DiagArgValue {
320        let arg = match self {
321            MirDialect::Analysis => "analysis",
322            MirDialect::Built => "built",
323            MirDialect::Runtime => "runtime",
324        };
325        DiagArgValue::Str(Cow::Borrowed(arg))
326    }
327}
328
329#[derive(#[automatically_derived]
impl ::core::clone::Clone for MirPhase {
    #[inline]
    fn clone(&self) -> MirPhase { *self }
}Clone, #[automatically_derived]
impl ::core::marker::Copy for MirPhase { }Copy, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for MirPhase {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { MirPhase::Initial }
                    1usize => { MirPhase::PostCleanup }
                    2usize => { MirPhase::Optimized }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `MirPhase`, expected 0..3, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::fmt::Debug for MirPhase {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                MirPhase::Initial => "Initial",
                MirPhase::PostCleanup => "PostCleanup",
                MirPhase::Optimized => "Optimized",
            })
    }
}Debug, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for MirPhase {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        MirPhase::Initial => { 0usize }
                        MirPhase::PostCleanup => { 1usize }
                        MirPhase::Optimized => { 2usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    MirPhase::Initial => {}
                    MirPhase::PostCleanup => {}
                    MirPhase::Optimized => {}
                }
            }
        }
    };Encodable, #[automatically_derived]
impl ::core::cmp::PartialEq for MirPhase {
    #[inline]
    fn eq(&self, other: &MirPhase) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq)]
330#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for MirPhase where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    MirPhase::Initial => {}
                    MirPhase::PostCleanup => {}
                    MirPhase::Optimized => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for MirPhase {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Initial => { __p.word("Initial") }
                    Self::PostCleanup => { __p.word("PostCleanup") }
                    Self::Optimized => { __p.word("Optimized") }
                }
            }
        }
    };PrintAttribute)]
331pub enum MirPhase {
332    Initial,
333    PostCleanup,
334    Optimized,
335}
336
337impl IntoDiagArg for MirPhase {
338    fn into_diag_arg(self, _path: &mut Option<PathBuf>) -> DiagArgValue {
339        let arg = match self {
340            MirPhase::Initial => "initial",
341            MirPhase::PostCleanup => "post-cleanup",
342            MirPhase::Optimized => "optimized",
343        };
344        DiagArgValue::Str(Cow::Borrowed(arg))
345    }
346}
347
348/// Different ways that the PE Format can decorate a symbol name.
349/// From <https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#import-name-type>
350#[derive(
351    #[automatically_derived]
impl ::core::marker::Copy for PeImportNameType { }Copy,
352    #[automatically_derived]
impl ::core::clone::Clone for PeImportNameType {
    #[inline]
    fn clone(&self) -> PeImportNameType {
        let _: ::core::clone::AssertParamIsClone<u16>;
        *self
    }
}Clone,
353    #[automatically_derived]
impl ::core::fmt::Debug for PeImportNameType {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        match self {
            PeImportNameType::Ordinal(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "Ordinal", &__self_0),
            PeImportNameType::Decorated =>
                ::core::fmt::Formatter::write_str(f, "Decorated"),
            PeImportNameType::NoPrefix =>
                ::core::fmt::Formatter::write_str(f, "NoPrefix"),
            PeImportNameType::Undecorated =>
                ::core::fmt::Formatter::write_str(f, "Undecorated"),
        }
    }
}Debug,
354    const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for PeImportNameType {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        PeImportNameType::Ordinal(ref __binding_0) => { 0usize }
                        PeImportNameType::Decorated => { 1usize }
                        PeImportNameType::NoPrefix => { 2usize }
                        PeImportNameType::Undecorated => { 3usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    PeImportNameType::Ordinal(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    PeImportNameType::Decorated => {}
                    PeImportNameType::NoPrefix => {}
                    PeImportNameType::Undecorated => {}
                }
            }
        }
    };Encodable,
355    const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for PeImportNameType {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => {
                        PeImportNameType::Ordinal(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    1usize => { PeImportNameType::Decorated }
                    2usize => { PeImportNameType::NoPrefix }
                    3usize => { PeImportNameType::Undecorated }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `PeImportNameType`, expected 0..4, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable,
356    const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for PeImportNameType where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    PeImportNameType::Ordinal(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    PeImportNameType::Decorated => {}
                    PeImportNameType::NoPrefix => {}
                    PeImportNameType::Undecorated => {}
                }
            }
        }
    };HashStable_Generic,
357    #[automatically_derived]
impl ::core::cmp::PartialEq for PeImportNameType {
    #[inline]
    fn eq(&self, other: &PeImportNameType) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr &&
            match (self, other) {
                (PeImportNameType::Ordinal(__self_0),
                    PeImportNameType::Ordinal(__arg1_0)) =>
                    __self_0 == __arg1_0,
                _ => true,
            }
    }
}PartialEq,
358    #[automatically_derived]
impl ::core::cmp::Eq for PeImportNameType {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {
        let _: ::core::cmp::AssertParamIsEq<u16>;
    }
}Eq,
359    const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for PeImportNameType {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Ordinal(f0) => {
                        __p.word("Ordinal");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::Decorated => { __p.word("Decorated") }
                    Self::NoPrefix => { __p.word("NoPrefix") }
                    Self::Undecorated => { __p.word("Undecorated") }
                }
            }
        }
    };PrintAttribute
360)]
361pub enum PeImportNameType {
362    /// IMPORT_ORDINAL
363    /// Uses the ordinal (i.e., a number) rather than the name.
364    Ordinal(u16),
365    /// Same as IMPORT_NAME
366    /// Name is decorated with all prefixes and suffixes.
367    Decorated,
368    /// Same as IMPORT_NAME_NOPREFIX
369    /// Prefix (e.g., the leading `_` or `@`) is skipped, but suffix is kept.
370    NoPrefix,
371    /// Same as IMPORT_NAME_UNDECORATE
372    /// Prefix (e.g., the leading `_` or `@`) and suffix (the first `@` and all
373    /// trailing characters) are skipped.
374    Undecorated,
375}
376
377#[derive(
378    #[automatically_derived]
impl ::core::marker::Copy for NativeLibKind { }Copy,
379    #[automatically_derived]
impl ::core::clone::Clone for NativeLibKind {
    #[inline]
    fn clone(&self) -> NativeLibKind {
        let _: ::core::clone::AssertParamIsClone<Option<bool>>;
        let _: ::core::clone::AssertParamIsClone<Option<bool>>;
        let _: ::core::clone::AssertParamIsClone<Option<bool>>;
        let _: ::core::clone::AssertParamIsClone<Option<bool>>;
        let _: ::core::clone::AssertParamIsClone<Option<bool>>;
        let _: ::core::clone::AssertParamIsClone<Option<bool>>;
        *self
    }
}Clone,
380    #[automatically_derived]
impl ::core::fmt::Debug for NativeLibKind {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        match self {
            NativeLibKind::Static {
                bundle: __self_0,
                whole_archive: __self_1,
                export_symbols: __self_2 } =>
                ::core::fmt::Formatter::debug_struct_field3_finish(f,
                    "Static", "bundle", __self_0, "whole_archive", __self_1,
                    "export_symbols", &__self_2),
            NativeLibKind::Dylib { as_needed: __self_0 } =>
                ::core::fmt::Formatter::debug_struct_field1_finish(f, "Dylib",
                    "as_needed", &__self_0),
            NativeLibKind::RawDylib { as_needed: __self_0 } =>
                ::core::fmt::Formatter::debug_struct_field1_finish(f,
                    "RawDylib", "as_needed", &__self_0),
            NativeLibKind::Framework { as_needed: __self_0 } =>
                ::core::fmt::Formatter::debug_struct_field1_finish(f,
                    "Framework", "as_needed", &__self_0),
            NativeLibKind::LinkArg =>
                ::core::fmt::Formatter::write_str(f, "LinkArg"),
            NativeLibKind::WasmImportModule =>
                ::core::fmt::Formatter::write_str(f, "WasmImportModule"),
            NativeLibKind::Unspecified =>
                ::core::fmt::Formatter::write_str(f, "Unspecified"),
        }
    }
}Debug,
381    #[automatically_derived]
impl ::core::cmp::PartialEq for NativeLibKind {
    #[inline]
    fn eq(&self, other: &NativeLibKind) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr &&
            match (self, other) {
                (NativeLibKind::Static {
                    bundle: __self_0,
                    whole_archive: __self_1,
                    export_symbols: __self_2 }, NativeLibKind::Static {
                    bundle: __arg1_0,
                    whole_archive: __arg1_1,
                    export_symbols: __arg1_2 }) =>
                    __self_0 == __arg1_0 && __self_1 == __arg1_1 &&
                        __self_2 == __arg1_2,
                (NativeLibKind::Dylib { as_needed: __self_0 },
                    NativeLibKind::Dylib { as_needed: __arg1_0 }) =>
                    __self_0 == __arg1_0,
                (NativeLibKind::RawDylib { as_needed: __self_0 },
                    NativeLibKind::RawDylib { as_needed: __arg1_0 }) =>
                    __self_0 == __arg1_0,
                (NativeLibKind::Framework { as_needed: __self_0 },
                    NativeLibKind::Framework { as_needed: __arg1_0 }) =>
                    __self_0 == __arg1_0,
                _ => true,
            }
    }
}PartialEq,
382    #[automatically_derived]
impl ::core::cmp::Eq for NativeLibKind {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {
        let _: ::core::cmp::AssertParamIsEq<Option<bool>>;
        let _: ::core::cmp::AssertParamIsEq<Option<bool>>;
        let _: ::core::cmp::AssertParamIsEq<Option<bool>>;
        let _: ::core::cmp::AssertParamIsEq<Option<bool>>;
        let _: ::core::cmp::AssertParamIsEq<Option<bool>>;
        let _: ::core::cmp::AssertParamIsEq<Option<bool>>;
    }
}Eq,
383    #[automatically_derived]
impl ::core::cmp::PartialOrd for NativeLibKind {
    #[inline]
    fn partial_cmp(&self, other: &NativeLibKind)
        -> ::core::option::Option<::core::cmp::Ordering> {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        match (self, other) {
            (NativeLibKind::Static {
                bundle: __self_0,
                whole_archive: __self_1,
                export_symbols: __self_2 }, NativeLibKind::Static {
                bundle: __arg1_0,
                whole_archive: __arg1_1,
                export_symbols: __arg1_2 }) =>
                match ::core::cmp::PartialOrd::partial_cmp(__self_0, __arg1_0)
                    {
                    ::core::option::Option::Some(::core::cmp::Ordering::Equal)
                        =>
                        match ::core::cmp::PartialOrd::partial_cmp(__self_1,
                                __arg1_1) {
                            ::core::option::Option::Some(::core::cmp::Ordering::Equal)
                                => ::core::cmp::PartialOrd::partial_cmp(__self_2, __arg1_2),
                            cmp => cmp,
                        },
                    cmp => cmp,
                },
            (NativeLibKind::Dylib { as_needed: __self_0 },
                NativeLibKind::Dylib { as_needed: __arg1_0 }) =>
                ::core::cmp::PartialOrd::partial_cmp(__self_0, __arg1_0),
            (NativeLibKind::RawDylib { as_needed: __self_0 },
                NativeLibKind::RawDylib { as_needed: __arg1_0 }) =>
                ::core::cmp::PartialOrd::partial_cmp(__self_0, __arg1_0),
            (NativeLibKind::Framework { as_needed: __self_0 },
                NativeLibKind::Framework { as_needed: __arg1_0 }) =>
                ::core::cmp::PartialOrd::partial_cmp(__self_0, __arg1_0),
            _ =>
                ::core::cmp::PartialOrd::partial_cmp(&__self_discr,
                    &__arg1_discr),
        }
    }
}PartialOrd,
384    #[automatically_derived]
impl ::core::cmp::Ord for NativeLibKind {
    #[inline]
    fn cmp(&self, other: &NativeLibKind) -> ::core::cmp::Ordering {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        match ::core::cmp::Ord::cmp(&__self_discr, &__arg1_discr) {
            ::core::cmp::Ordering::Equal =>
                match (self, other) {
                    (NativeLibKind::Static {
                        bundle: __self_0,
                        whole_archive: __self_1,
                        export_symbols: __self_2 }, NativeLibKind::Static {
                        bundle: __arg1_0,
                        whole_archive: __arg1_1,
                        export_symbols: __arg1_2 }) =>
                        match ::core::cmp::Ord::cmp(__self_0, __arg1_0) {
                            ::core::cmp::Ordering::Equal =>
                                match ::core::cmp::Ord::cmp(__self_1, __arg1_1) {
                                    ::core::cmp::Ordering::Equal =>
                                        ::core::cmp::Ord::cmp(__self_2, __arg1_2),
                                    cmp => cmp,
                                },
                            cmp => cmp,
                        },
                    (NativeLibKind::Dylib { as_needed: __self_0 },
                        NativeLibKind::Dylib { as_needed: __arg1_0 }) =>
                        ::core::cmp::Ord::cmp(__self_0, __arg1_0),
                    (NativeLibKind::RawDylib { as_needed: __self_0 },
                        NativeLibKind::RawDylib { as_needed: __arg1_0 }) =>
                        ::core::cmp::Ord::cmp(__self_0, __arg1_0),
                    (NativeLibKind::Framework { as_needed: __self_0 },
                        NativeLibKind::Framework { as_needed: __arg1_0 }) =>
                        ::core::cmp::Ord::cmp(__self_0, __arg1_0),
                    _ => ::core::cmp::Ordering::Equal,
                },
            cmp => cmp,
        }
    }
}Ord,
385    #[automatically_derived]
impl ::core::hash::Hash for NativeLibKind {
    #[inline]
    fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        ::core::hash::Hash::hash(&__self_discr, state);
        match self {
            NativeLibKind::Static {
                bundle: __self_0,
                whole_archive: __self_1,
                export_symbols: __self_2 } => {
                ::core::hash::Hash::hash(__self_0, state);
                ::core::hash::Hash::hash(__self_1, state);
                ::core::hash::Hash::hash(__self_2, state)
            }
            NativeLibKind::Dylib { as_needed: __self_0 } =>
                ::core::hash::Hash::hash(__self_0, state),
            NativeLibKind::RawDylib { as_needed: __self_0 } =>
                ::core::hash::Hash::hash(__self_0, state),
            NativeLibKind::Framework { as_needed: __self_0 } =>
                ::core::hash::Hash::hash(__self_0, state),
            _ => {}
        }
    }
}Hash,
386    const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for NativeLibKind {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        NativeLibKind::Static {
                            bundle: ref __binding_0,
                            whole_archive: ref __binding_1,
                            export_symbols: ref __binding_2 } => {
                            0usize
                        }
                        NativeLibKind::Dylib { as_needed: ref __binding_0 } => {
                            1usize
                        }
                        NativeLibKind::RawDylib { as_needed: ref __binding_0 } => {
                            2usize
                        }
                        NativeLibKind::Framework { as_needed: ref __binding_0 } => {
                            3usize
                        }
                        NativeLibKind::LinkArg => { 4usize }
                        NativeLibKind::WasmImportModule => { 5usize }
                        NativeLibKind::Unspecified => { 6usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    NativeLibKind::Static {
                        bundle: ref __binding_0,
                        whole_archive: ref __binding_1,
                        export_symbols: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                    NativeLibKind::Dylib { as_needed: ref __binding_0 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    NativeLibKind::RawDylib { as_needed: ref __binding_0 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    NativeLibKind::Framework { as_needed: ref __binding_0 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    NativeLibKind::LinkArg => {}
                    NativeLibKind::WasmImportModule => {}
                    NativeLibKind::Unspecified => {}
                }
            }
        }
    };Encodable,
387    const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for NativeLibKind {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => {
                        NativeLibKind::Static {
                            bundle: ::rustc_serialize::Decodable::decode(__decoder),
                            whole_archive: ::rustc_serialize::Decodable::decode(__decoder),
                            export_symbols: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    1usize => {
                        NativeLibKind::Dylib {
                            as_needed: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    2usize => {
                        NativeLibKind::RawDylib {
                            as_needed: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    3usize => {
                        NativeLibKind::Framework {
                            as_needed: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    4usize => { NativeLibKind::LinkArg }
                    5usize => { NativeLibKind::WasmImportModule }
                    6usize => { NativeLibKind::Unspecified }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `NativeLibKind`, expected 0..7, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable,
388    const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for NativeLibKind {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Static { bundle, whole_archive, export_symbols } => {
                        __p.word("Static");
                        if true && !bundle.should_render() &&
                                    !whole_archive.should_render() &&
                                !export_symbols.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if bundle.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("bundle");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        bundle.print_attribute(__p);
                        if whole_archive.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("whole_archive");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        whole_archive.print_attribute(__p);
                        if export_symbols.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("export_symbols");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        export_symbols.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::Dylib { as_needed } => {
                        __p.word("Dylib");
                        if true && !as_needed.should_render() { return; }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if as_needed.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("as_needed");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        as_needed.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RawDylib { as_needed } => {
                        __p.word("RawDylib");
                        if true && !as_needed.should_render() { return; }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if as_needed.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("as_needed");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        as_needed.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::Framework { as_needed } => {
                        __p.word("Framework");
                        if true && !as_needed.should_render() { return; }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if as_needed.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("as_needed");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        as_needed.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::LinkArg => { __p.word("LinkArg") }
                    Self::WasmImportModule => { __p.word("WasmImportModule") }
                    Self::Unspecified => { __p.word("Unspecified") }
                }
            }
        }
    };PrintAttribute
389)]
390#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for NativeLibKind where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    NativeLibKind::Static {
                        bundle: ref __binding_0,
                        whole_archive: ref __binding_1,
                        export_symbols: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                    NativeLibKind::Dylib { as_needed: ref __binding_0 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    NativeLibKind::RawDylib { as_needed: ref __binding_0 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    NativeLibKind::Framework { as_needed: ref __binding_0 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    NativeLibKind::LinkArg => {}
                    NativeLibKind::WasmImportModule => {}
                    NativeLibKind::Unspecified => {}
                }
            }
        }
    };HashStable_Generic)]
391pub enum NativeLibKind {
392    /// Static library (e.g. `libfoo.a` on Linux or `foo.lib` on Windows/MSVC)
393    Static {
394        /// Whether to bundle objects from static library into produced rlib
395        bundle: Option<bool>,
396        /// Whether to link static library without throwing any object files away
397        whole_archive: Option<bool>,
398        /// Whether to export c static library symbols
399        export_symbols: Option<bool>,
400    },
401    /// Dynamic library (e.g. `libfoo.so` on Linux)
402    /// or an import library corresponding to a dynamic library (e.g. `foo.lib` on Windows/MSVC).
403    Dylib {
404        /// Whether the dynamic library will be linked only if it satisfies some undefined symbols
405        as_needed: Option<bool>,
406    },
407    /// Dynamic library (e.g. `foo.dll` on Windows) without a corresponding import library.
408    /// On Linux, it refers to a generated shared library stub.
409    RawDylib {
410        /// Whether the dynamic library will be linked only if it satisfies some undefined symbols
411        as_needed: Option<bool>,
412    },
413    /// A macOS-specific kind of dynamic libraries.
414    Framework {
415        /// Whether the framework will be linked only if it satisfies some undefined symbols
416        as_needed: Option<bool>,
417    },
418    /// Argument which is passed to linker, relative order with libraries and other arguments
419    /// is preserved
420    LinkArg,
421
422    /// Module imported from WebAssembly
423    WasmImportModule,
424
425    /// The library kind wasn't specified, `Dylib` is currently used as a default.
426    Unspecified,
427}
428
429impl NativeLibKind {
430    pub fn has_modifiers(&self) -> bool {
431        match self {
432            NativeLibKind::Static { bundle, whole_archive, export_symbols } => {
433                bundle.is_some() || whole_archive.is_some() || export_symbols.is_some()
434            }
435            NativeLibKind::Dylib { as_needed }
436            | NativeLibKind::Framework { as_needed }
437            | NativeLibKind::RawDylib { as_needed } => as_needed.is_some(),
438            NativeLibKind::Unspecified
439            | NativeLibKind::LinkArg
440            | NativeLibKind::WasmImportModule => false,
441        }
442    }
443
444    pub fn is_statically_included(&self) -> bool {
445        #[allow(non_exhaustive_omitted_patterns)] match self {
    NativeLibKind::Static { .. } => true,
    _ => false,
}matches!(self, NativeLibKind::Static { .. })
446    }
447
448    pub fn is_dllimport(&self) -> bool {
449        #[allow(non_exhaustive_omitted_patterns)] match self {
    NativeLibKind::Dylib { .. } | NativeLibKind::RawDylib { .. } |
        NativeLibKind::Unspecified => true,
    _ => false,
}matches!(
450            self,
451            NativeLibKind::Dylib { .. }
452                | NativeLibKind::RawDylib { .. }
453                | NativeLibKind::Unspecified
454        )
455    }
456}
457
458#[derive(#[automatically_derived]
impl ::core::fmt::Debug for LinkEntry {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        let names: &'static _ =
            &["span", "kind", "name", "cfg", "verbatim", "import_name_type"];
        let values: &[&dyn ::core::fmt::Debug] =
            &[&self.span, &self.kind, &self.name, &self.cfg, &self.verbatim,
                        &&self.import_name_type];
        ::core::fmt::Formatter::debug_struct_fields_finish(f, "LinkEntry",
            names, values)
    }
}Debug, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for LinkEntry {
            fn encode(&self, __encoder: &mut __E) {
                match *self {
                    LinkEntry {
                        span: ref __binding_0,
                        kind: ref __binding_1,
                        name: ref __binding_2,
                        cfg: ref __binding_3,
                        verbatim: ref __binding_4,
                        import_name_type: ref __binding_5 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_3,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_4,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_5,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for LinkEntry {
            fn decode(__decoder: &mut __D) -> Self {
                LinkEntry {
                    span: ::rustc_serialize::Decodable::decode(__decoder),
                    kind: ::rustc_serialize::Decodable::decode(__decoder),
                    name: ::rustc_serialize::Decodable::decode(__decoder),
                    cfg: ::rustc_serialize::Decodable::decode(__decoder),
                    verbatim: ::rustc_serialize::Decodable::decode(__decoder),
                    import_name_type: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::clone::Clone for LinkEntry {
    #[inline]
    fn clone(&self) -> LinkEntry {
        LinkEntry {
            span: ::core::clone::Clone::clone(&self.span),
            kind: ::core::clone::Clone::clone(&self.kind),
            name: ::core::clone::Clone::clone(&self.name),
            cfg: ::core::clone::Clone::clone(&self.cfg),
            verbatim: ::core::clone::Clone::clone(&self.verbatim),
            import_name_type: ::core::clone::Clone::clone(&self.import_name_type),
        }
    }
}Clone, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for LinkEntry where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                match *self {
                    LinkEntry {
                        span: ref __binding_0,
                        kind: ref __binding_1,
                        name: ref __binding_2,
                        cfg: ref __binding_3,
                        verbatim: ref __binding_4,
                        import_name_type: ref __binding_5 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                        { __binding_3.hash_stable(__hcx, __hasher); }
                        { __binding_4.hash_stable(__hcx, __hasher); }
                        { __binding_5.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for LinkEntry {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                let Self { span, kind, name, cfg, verbatim, import_name_type
                        } = self;
                __p.word("LinkEntry");
                if true && !span.should_render() && !kind.should_render() &&
                                    !name.should_render() && !cfg.should_render() &&
                            !verbatim.should_render() &&
                        !import_name_type.should_render() {
                    return;
                }
                __p.nbsp();
                __p.word("{");
                let mut __printed_anything = false;
                if span.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("span");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                span.print_attribute(__p);
                if kind.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("kind");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                kind.print_attribute(__p);
                if name.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("name");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                name.print_attribute(__p);
                if cfg.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("cfg");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                cfg.print_attribute(__p);
                if verbatim.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("verbatim");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                verbatim.print_attribute(__p);
                if import_name_type.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("import_name_type");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                import_name_type.print_attribute(__p);
                __p.word("}");
            }
        }
    };PrintAttribute)]
459pub struct LinkEntry {
460    pub span: Span,
461    pub kind: NativeLibKind,
462    pub name: Symbol,
463    pub cfg: Option<CfgEntry>,
464    pub verbatim: Option<bool>,
465    pub import_name_type: Option<(PeImportNameType, Span)>,
466}
467
468#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for DebuggerVisualizerType where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    DebuggerVisualizerType::Natvis => {}
                    DebuggerVisualizerType::GdbPrettyPrinter => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for DebuggerVisualizerType {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Natvis => { __p.word("Natvis") }
                    Self::GdbPrettyPrinter => { __p.word("GdbPrettyPrinter") }
                }
            }
        }
    };PrintAttribute)]
469#[derive(#[automatically_derived]
impl ::core::marker::Copy for DebuggerVisualizerType { }Copy, #[automatically_derived]
impl ::core::cmp::PartialEq for DebuggerVisualizerType {
    #[inline]
    fn eq(&self, other: &DebuggerVisualizerType) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq, #[automatically_derived]
impl ::core::cmp::PartialOrd for DebuggerVisualizerType {
    #[inline]
    fn partial_cmp(&self, other: &DebuggerVisualizerType)
        -> ::core::option::Option<::core::cmp::Ordering> {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        ::core::cmp::PartialOrd::partial_cmp(&__self_discr, &__arg1_discr)
    }
}PartialOrd, #[automatically_derived]
impl ::core::clone::Clone for DebuggerVisualizerType {
    #[inline]
    fn clone(&self) -> DebuggerVisualizerType { *self }
}Clone, #[automatically_derived]
impl ::core::cmp::Ord for DebuggerVisualizerType {
    #[inline]
    fn cmp(&self, other: &DebuggerVisualizerType) -> ::core::cmp::Ordering {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        ::core::cmp::Ord::cmp(&__self_discr, &__arg1_discr)
    }
}Ord, #[automatically_derived]
impl ::core::cmp::Eq for DebuggerVisualizerType {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {}
}Eq, #[automatically_derived]
impl ::core::hash::Hash for DebuggerVisualizerType {
    #[inline]
    fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        ::core::hash::Hash::hash(&__self_discr, state)
    }
}Hash, #[automatically_derived]
impl ::core::fmt::Debug for DebuggerVisualizerType {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                DebuggerVisualizerType::Natvis => "Natvis",
                DebuggerVisualizerType::GdbPrettyPrinter =>
                    "GdbPrettyPrinter",
            })
    }
}Debug, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for DebuggerVisualizerType {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        DebuggerVisualizerType::Natvis => { 0usize }
                        DebuggerVisualizerType::GdbPrettyPrinter => { 1usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    DebuggerVisualizerType::Natvis => {}
                    DebuggerVisualizerType::GdbPrettyPrinter => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for DebuggerVisualizerType {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { DebuggerVisualizerType::Natvis }
                    1usize => { DebuggerVisualizerType::GdbPrettyPrinter }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `DebuggerVisualizerType`, expected 0..2, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable)]
470pub enum DebuggerVisualizerType {
471    Natvis,
472    GdbPrettyPrinter,
473}
474
475#[derive(#[automatically_derived]
impl ::core::fmt::Debug for DebugVisualizer {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field3_finish(f,
            "DebugVisualizer", "span", &self.span, "visualizer_type",
            &self.visualizer_type, "path", &&self.path)
    }
}Debug, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for DebugVisualizer {
            fn encode(&self, __encoder: &mut __E) {
                match *self {
                    DebugVisualizer {
                        span: ref __binding_0,
                        visualizer_type: ref __binding_1,
                        path: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for DebugVisualizer {
            fn decode(__decoder: &mut __D) -> Self {
                DebugVisualizer {
                    span: ::rustc_serialize::Decodable::decode(__decoder),
                    visualizer_type: ::rustc_serialize::Decodable::decode(__decoder),
                    path: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::clone::Clone for DebugVisualizer {
    #[inline]
    fn clone(&self) -> DebugVisualizer {
        DebugVisualizer {
            span: ::core::clone::Clone::clone(&self.span),
            visualizer_type: ::core::clone::Clone::clone(&self.visualizer_type),
            path: ::core::clone::Clone::clone(&self.path),
        }
    }
}Clone, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for DebugVisualizer where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                match *self {
                    DebugVisualizer {
                        span: ref __binding_0,
                        visualizer_type: ref __binding_1,
                        path: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for DebugVisualizer {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                let Self { span, visualizer_type, path } = self;
                __p.word("DebugVisualizer");
                if true && !span.should_render() &&
                            !visualizer_type.should_render() && !path.should_render() {
                    return;
                }
                __p.nbsp();
                __p.word("{");
                let mut __printed_anything = false;
                if span.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("span");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                span.print_attribute(__p);
                if visualizer_type.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("visualizer_type");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                visualizer_type.print_attribute(__p);
                if path.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("path");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                path.print_attribute(__p);
                __p.word("}");
            }
        }
    };PrintAttribute)]
476pub struct DebugVisualizer {
477    pub span: Span,
478    pub visualizer_type: DebuggerVisualizerType,
479    pub path: Symbol,
480}
481
482#[derive(#[automatically_derived]
impl ::core::clone::Clone for RtsanSetting {
    #[inline]
    fn clone(&self) -> RtsanSetting { *self }
}Clone, #[automatically_derived]
impl ::core::marker::Copy for RtsanSetting { }Copy, #[automatically_derived]
impl ::core::fmt::Debug for RtsanSetting {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                RtsanSetting::Nonblocking => "Nonblocking",
                RtsanSetting::Blocking => "Blocking",
                RtsanSetting::Caller => "Caller",
            })
    }
}Debug, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for RtsanSetting {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { RtsanSetting::Nonblocking }
                    1usize => { RtsanSetting::Blocking }
                    2usize => { RtsanSetting::Caller }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `RtsanSetting`, expected 0..3, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for RtsanSetting {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        RtsanSetting::Nonblocking => { 0usize }
                        RtsanSetting::Blocking => { 1usize }
                        RtsanSetting::Caller => { 2usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    RtsanSetting::Nonblocking => {}
                    RtsanSetting::Blocking => {}
                    RtsanSetting::Caller => {}
                }
            }
        }
    };Encodable, #[automatically_derived]
impl ::core::cmp::Eq for RtsanSetting {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {}
}Eq, #[automatically_derived]
impl ::core::cmp::PartialEq for RtsanSetting {
    #[inline]
    fn eq(&self, other: &RtsanSetting) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq)]
483#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for RtsanSetting where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    RtsanSetting::Nonblocking => {}
                    RtsanSetting::Blocking => {}
                    RtsanSetting::Caller => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for RtsanSetting {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Nonblocking => { __p.word("Nonblocking") }
                    Self::Blocking => { __p.word("Blocking") }
                    Self::Caller => { __p.word("Caller") }
                }
            }
        }
    };PrintAttribute)]
484#[derive_const(#[automatically_derived]
impl const ::core::default::Default for RtsanSetting {
    #[inline]
    fn default() -> RtsanSetting { Self::Caller }
}Default)]
485pub enum RtsanSetting {
486    Nonblocking,
487    Blocking,
488    #[default]
489    Caller,
490}
491
492#[derive(#[automatically_derived]
impl ::core::cmp::Eq for WindowsSubsystemKind {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {}
}Eq, #[automatically_derived]
impl ::core::cmp::PartialEq for WindowsSubsystemKind {
    #[inline]
    fn eq(&self, other: &WindowsSubsystemKind) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq, #[automatically_derived]
impl ::core::fmt::Debug for WindowsSubsystemKind {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                WindowsSubsystemKind::Console => "Console",
                WindowsSubsystemKind::Windows => "Windows",
            })
    }
}Debug, #[automatically_derived]
impl ::core::marker::Copy for WindowsSubsystemKind { }Copy, #[automatically_derived]
impl ::core::clone::Clone for WindowsSubsystemKind {
    #[inline]
    fn clone(&self) -> WindowsSubsystemKind { *self }
}Clone)]
493#[derive(const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for WindowsSubsystemKind {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        WindowsSubsystemKind::Console => { 0usize }
                        WindowsSubsystemKind::Windows => { 1usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    WindowsSubsystemKind::Console => {}
                    WindowsSubsystemKind::Windows => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for WindowsSubsystemKind {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { WindowsSubsystemKind::Console }
                    1usize => { WindowsSubsystemKind::Windows }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `WindowsSubsystemKind`, expected 0..2, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for WindowsSubsystemKind where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    WindowsSubsystemKind::Console => {}
                    WindowsSubsystemKind::Windows => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for WindowsSubsystemKind {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Console => { __p.word("Console") }
                    Self::Windows => { __p.word("Windows") }
                }
            }
        }
    };PrintAttribute)]
494pub enum WindowsSubsystemKind {
495    Console,
496    Windows,
497}
498
499impl WindowsSubsystemKind {
500    pub fn as_str(&self) -> &'static str {
501        match self {
502            WindowsSubsystemKind::Console => "console",
503            WindowsSubsystemKind::Windows => "windows",
504        }
505    }
506}
507
508#[derive(#[automatically_derived]
impl ::core::marker::Copy for DocInline { }Copy, #[automatically_derived]
impl ::core::clone::Clone for DocInline {
    #[inline]
    fn clone(&self) -> DocInline { *self }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for DocInline {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                DocInline::Inline => "Inline",
                DocInline::NoInline => "NoInline",
            })
    }
}Debug, #[automatically_derived]
impl ::core::cmp::PartialEq for DocInline {
    #[inline]
    fn eq(&self, other: &DocInline) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq)]
509#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for DocInline where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    DocInline::Inline => {}
                    DocInline::NoInline => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for DocInline {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        DocInline::Inline => { 0usize }
                        DocInline::NoInline => { 1usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    DocInline::Inline => {}
                    DocInline::NoInline => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for DocInline {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { DocInline::Inline }
                    1usize => { DocInline::NoInline }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `DocInline`, expected 0..2, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for DocInline {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Inline => { __p.word("Inline") }
                    Self::NoInline => { __p.word("NoInline") }
                }
            }
        }
    };PrintAttribute)]
510pub enum DocInline {
511    Inline,
512    NoInline,
513}
514
515#[derive(#[automatically_derived]
impl ::core::marker::Copy for HideOrShow { }Copy, #[automatically_derived]
impl ::core::clone::Clone for HideOrShow {
    #[inline]
    fn clone(&self) -> HideOrShow { *self }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for HideOrShow {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                HideOrShow::Hide => "Hide",
                HideOrShow::Show => "Show",
            })
    }
}Debug, #[automatically_derived]
impl ::core::cmp::PartialEq for HideOrShow {
    #[inline]
    fn eq(&self, other: &HideOrShow) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq)]
516#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for HideOrShow where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self { HideOrShow::Hide => {} HideOrShow::Show => {} }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for HideOrShow {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        HideOrShow::Hide => { 0usize }
                        HideOrShow::Show => { 1usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self { HideOrShow::Hide => {} HideOrShow::Show => {} }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for HideOrShow {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { HideOrShow::Hide }
                    1usize => { HideOrShow::Show }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `HideOrShow`, expected 0..2, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for HideOrShow {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Hide => { __p.word("Hide") }
                    Self::Show => { __p.word("Show") }
                }
            }
        }
    };PrintAttribute)]
517pub enum HideOrShow {
518    Hide,
519    Show,
520}
521
522#[derive(#[automatically_derived]
impl ::core::clone::Clone for CfgInfo {
    #[inline]
    fn clone(&self) -> CfgInfo {
        CfgInfo {
            name: ::core::clone::Clone::clone(&self.name),
            name_span: ::core::clone::Clone::clone(&self.name_span),
            value: ::core::clone::Clone::clone(&self.value),
        }
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for CfgInfo {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field3_finish(f, "CfgInfo",
            "name", &self.name, "name_span", &self.name_span, "value",
            &&self.value)
    }
}Debug, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for CfgInfo where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                match *self {
                    CfgInfo {
                        name: ref __binding_0,
                        name_span: ref __binding_1,
                        value: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for CfgInfo {
            fn encode(&self, __encoder: &mut __E) {
                match *self {
                    CfgInfo {
                        name: ref __binding_0,
                        name_span: ref __binding_1,
                        value: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for CfgInfo {
            fn decode(__decoder: &mut __D) -> Self {
                CfgInfo {
                    name: ::rustc_serialize::Decodable::decode(__decoder),
                    name_span: ::rustc_serialize::Decodable::decode(__decoder),
                    value: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for CfgInfo {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                let Self { name, name_span, value } = self;
                __p.word("CfgInfo");
                if true && !name.should_render() && !name_span.should_render()
                        && !value.should_render() {
                    return;
                }
                __p.nbsp();
                __p.word("{");
                let mut __printed_anything = false;
                if name.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("name");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                name.print_attribute(__p);
                if name_span.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("name_span");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                name_span.print_attribute(__p);
                if value.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("value");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                value.print_attribute(__p);
                __p.word("}");
            }
        }
    };PrintAttribute)]
523pub struct CfgInfo {
524    pub name: Symbol,
525    pub name_span: Span,
526    pub value: Option<(Symbol, Span)>,
527}
528
529impl CfgInfo {
530    pub fn span_for_name_and_value(&self) -> Span {
531        if let Some((_, value_span)) = self.value {
532            self.name_span.with_hi(value_span.hi())
533        } else {
534            self.name_span
535        }
536    }
537}
538
539#[derive(#[automatically_derived]
impl ::core::clone::Clone for CfgHideShow {
    #[inline]
    fn clone(&self) -> CfgHideShow {
        CfgHideShow {
            kind: ::core::clone::Clone::clone(&self.kind),
            values: ::core::clone::Clone::clone(&self.values),
        }
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for CfgHideShow {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field2_finish(f, "CfgHideShow",
            "kind", &self.kind, "values", &&self.values)
    }
}Debug, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for CfgHideShow where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                match *self {
                    CfgHideShow { kind: ref __binding_0, values: ref __binding_1
                        } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for CfgHideShow {
            fn encode(&self, __encoder: &mut __E) {
                match *self {
                    CfgHideShow { kind: ref __binding_0, values: ref __binding_1
                        } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for CfgHideShow {
            fn decode(__decoder: &mut __D) -> Self {
                CfgHideShow {
                    kind: ::rustc_serialize::Decodable::decode(__decoder),
                    values: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for CfgHideShow {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                let Self { kind, values } = self;
                __p.word("CfgHideShow");
                if true && !kind.should_render() && !values.should_render() {
                    return;
                }
                __p.nbsp();
                __p.word("{");
                let mut __printed_anything = false;
                if kind.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("kind");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                kind.print_attribute(__p);
                if values.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("values");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                values.print_attribute(__p);
                __p.word("}");
            }
        }
    };PrintAttribute)]
540pub struct CfgHideShow {
541    pub kind: HideOrShow,
542    pub values: ThinVec<CfgInfo>,
543}
544
545#[derive(#[automatically_derived]
impl ::core::clone::Clone for DocAttribute {
    #[inline]
    fn clone(&self) -> DocAttribute {
        DocAttribute {
            aliases: ::core::clone::Clone::clone(&self.aliases),
            hidden: ::core::clone::Clone::clone(&self.hidden),
            inline: ::core::clone::Clone::clone(&self.inline),
            cfg: ::core::clone::Clone::clone(&self.cfg),
            auto_cfg: ::core::clone::Clone::clone(&self.auto_cfg),
            auto_cfg_change: ::core::clone::Clone::clone(&self.auto_cfg_change),
            fake_variadic: ::core::clone::Clone::clone(&self.fake_variadic),
            keyword: ::core::clone::Clone::clone(&self.keyword),
            attribute: ::core::clone::Clone::clone(&self.attribute),
            masked: ::core::clone::Clone::clone(&self.masked),
            notable_trait: ::core::clone::Clone::clone(&self.notable_trait),
            search_unbox: ::core::clone::Clone::clone(&self.search_unbox),
            html_favicon_url: ::core::clone::Clone::clone(&self.html_favicon_url),
            html_logo_url: ::core::clone::Clone::clone(&self.html_logo_url),
            html_playground_url: ::core::clone::Clone::clone(&self.html_playground_url),
            html_root_url: ::core::clone::Clone::clone(&self.html_root_url),
            html_no_source: ::core::clone::Clone::clone(&self.html_no_source),
            issue_tracker_base_url: ::core::clone::Clone::clone(&self.issue_tracker_base_url),
            rust_logo: ::core::clone::Clone::clone(&self.rust_logo),
            test_attrs: ::core::clone::Clone::clone(&self.test_attrs),
            no_crate_inject: ::core::clone::Clone::clone(&self.no_crate_inject),
        }
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for DocAttribute {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        let names: &'static _ =
            &["aliases", "hidden", "inline", "cfg", "auto_cfg",
                        "auto_cfg_change", "fake_variadic", "keyword", "attribute",
                        "masked", "notable_trait", "search_unbox",
                        "html_favicon_url", "html_logo_url", "html_playground_url",
                        "html_root_url", "html_no_source", "issue_tracker_base_url",
                        "rust_logo", "test_attrs", "no_crate_inject"];
        let values: &[&dyn ::core::fmt::Debug] =
            &[&self.aliases, &self.hidden, &self.inline, &self.cfg,
                        &self.auto_cfg, &self.auto_cfg_change, &self.fake_variadic,
                        &self.keyword, &self.attribute, &self.masked,
                        &self.notable_trait, &self.search_unbox,
                        &self.html_favicon_url, &self.html_logo_url,
                        &self.html_playground_url, &self.html_root_url,
                        &self.html_no_source, &self.issue_tracker_base_url,
                        &self.rust_logo, &self.test_attrs, &&self.no_crate_inject];
        ::core::fmt::Formatter::debug_struct_fields_finish(f, "DocAttribute",
            names, values)
    }
}Debug, #[automatically_derived]
impl ::core::default::Default for DocAttribute {
    #[inline]
    fn default() -> DocAttribute {
        DocAttribute {
            aliases: ::core::default::Default::default(),
            hidden: ::core::default::Default::default(),
            inline: ::core::default::Default::default(),
            cfg: ::core::default::Default::default(),
            auto_cfg: ::core::default::Default::default(),
            auto_cfg_change: ::core::default::Default::default(),
            fake_variadic: ::core::default::Default::default(),
            keyword: ::core::default::Default::default(),
            attribute: ::core::default::Default::default(),
            masked: ::core::default::Default::default(),
            notable_trait: ::core::default::Default::default(),
            search_unbox: ::core::default::Default::default(),
            html_favicon_url: ::core::default::Default::default(),
            html_logo_url: ::core::default::Default::default(),
            html_playground_url: ::core::default::Default::default(),
            html_root_url: ::core::default::Default::default(),
            html_no_source: ::core::default::Default::default(),
            issue_tracker_base_url: ::core::default::Default::default(),
            rust_logo: ::core::default::Default::default(),
            test_attrs: ::core::default::Default::default(),
            no_crate_inject: ::core::default::Default::default(),
        }
    }
}Default, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for DocAttribute where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                match *self {
                    DocAttribute {
                        aliases: ref __binding_0,
                        hidden: ref __binding_1,
                        inline: ref __binding_2,
                        cfg: ref __binding_3,
                        auto_cfg: ref __binding_4,
                        auto_cfg_change: ref __binding_5,
                        fake_variadic: ref __binding_6,
                        keyword: ref __binding_7,
                        attribute: ref __binding_8,
                        masked: ref __binding_9,
                        notable_trait: ref __binding_10,
                        search_unbox: ref __binding_11,
                        html_favicon_url: ref __binding_12,
                        html_logo_url: ref __binding_13,
                        html_playground_url: ref __binding_14,
                        html_root_url: ref __binding_15,
                        html_no_source: ref __binding_16,
                        issue_tracker_base_url: ref __binding_17,
                        rust_logo: ref __binding_18,
                        test_attrs: ref __binding_19,
                        no_crate_inject: ref __binding_20 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                        { __binding_3.hash_stable(__hcx, __hasher); }
                        { __binding_4.hash_stable(__hcx, __hasher); }
                        { __binding_5.hash_stable(__hcx, __hasher); }
                        { __binding_6.hash_stable(__hcx, __hasher); }
                        { __binding_7.hash_stable(__hcx, __hasher); }
                        { __binding_8.hash_stable(__hcx, __hasher); }
                        { __binding_9.hash_stable(__hcx, __hasher); }
                        { __binding_10.hash_stable(__hcx, __hasher); }
                        { __binding_11.hash_stable(__hcx, __hasher); }
                        { __binding_12.hash_stable(__hcx, __hasher); }
                        { __binding_13.hash_stable(__hcx, __hasher); }
                        { __binding_14.hash_stable(__hcx, __hasher); }
                        { __binding_15.hash_stable(__hcx, __hasher); }
                        { __binding_16.hash_stable(__hcx, __hasher); }
                        { __binding_17.hash_stable(__hcx, __hasher); }
                        { __binding_18.hash_stable(__hcx, __hasher); }
                        { __binding_19.hash_stable(__hcx, __hasher); }
                        { __binding_20.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for DocAttribute {
            fn decode(__decoder: &mut __D) -> Self {
                DocAttribute {
                    aliases: ::rustc_serialize::Decodable::decode(__decoder),
                    hidden: ::rustc_serialize::Decodable::decode(__decoder),
                    inline: ::rustc_serialize::Decodable::decode(__decoder),
                    cfg: ::rustc_serialize::Decodable::decode(__decoder),
                    auto_cfg: ::rustc_serialize::Decodable::decode(__decoder),
                    auto_cfg_change: ::rustc_serialize::Decodable::decode(__decoder),
                    fake_variadic: ::rustc_serialize::Decodable::decode(__decoder),
                    keyword: ::rustc_serialize::Decodable::decode(__decoder),
                    attribute: ::rustc_serialize::Decodable::decode(__decoder),
                    masked: ::rustc_serialize::Decodable::decode(__decoder),
                    notable_trait: ::rustc_serialize::Decodable::decode(__decoder),
                    search_unbox: ::rustc_serialize::Decodable::decode(__decoder),
                    html_favicon_url: ::rustc_serialize::Decodable::decode(__decoder),
                    html_logo_url: ::rustc_serialize::Decodable::decode(__decoder),
                    html_playground_url: ::rustc_serialize::Decodable::decode(__decoder),
                    html_root_url: ::rustc_serialize::Decodable::decode(__decoder),
                    html_no_source: ::rustc_serialize::Decodable::decode(__decoder),
                    issue_tracker_base_url: ::rustc_serialize::Decodable::decode(__decoder),
                    rust_logo: ::rustc_serialize::Decodable::decode(__decoder),
                    test_attrs: ::rustc_serialize::Decodable::decode(__decoder),
                    no_crate_inject: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for DocAttribute {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                let Self {
                        aliases,
                        hidden,
                        inline,
                        cfg,
                        auto_cfg,
                        auto_cfg_change,
                        fake_variadic,
                        keyword,
                        attribute,
                        masked,
                        notable_trait,
                        search_unbox,
                        html_favicon_url,
                        html_logo_url,
                        html_playground_url,
                        html_root_url,
                        html_no_source,
                        issue_tracker_base_url,
                        rust_logo,
                        test_attrs,
                        no_crate_inject } = self;
                __p.word("DocAttribute");
                if true && !aliases.should_render() && !hidden.should_render()
                                                                                                && !inline.should_render() && !cfg.should_render() &&
                                                                                        !auto_cfg.should_render() &&
                                                                                    !auto_cfg_change.should_render() &&
                                                                                !fake_variadic.should_render() && !keyword.should_render()
                                                                        && !attribute.should_render() && !masked.should_render() &&
                                                                !notable_trait.should_render() &&
                                                            !search_unbox.should_render() &&
                                                        !html_favicon_url.should_render() &&
                                                    !html_logo_url.should_render() &&
                                                !html_playground_url.should_render() &&
                                            !html_root_url.should_render() &&
                                        !html_no_source.should_render() &&
                                    !issue_tracker_base_url.should_render() &&
                                !rust_logo.should_render() && !test_attrs.should_render() &&
                        !no_crate_inject.should_render() {
                    return;
                }
                __p.nbsp();
                __p.word("{");
                let mut __printed_anything = false;
                if aliases.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("aliases");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                aliases.print_attribute(__p);
                if hidden.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("hidden");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                hidden.print_attribute(__p);
                if inline.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("inline");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                inline.print_attribute(__p);
                if cfg.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("cfg");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                cfg.print_attribute(__p);
                if auto_cfg.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("auto_cfg");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                auto_cfg.print_attribute(__p);
                if auto_cfg_change.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("auto_cfg_change");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                auto_cfg_change.print_attribute(__p);
                if fake_variadic.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("fake_variadic");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                fake_variadic.print_attribute(__p);
                if keyword.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("keyword");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                keyword.print_attribute(__p);
                if attribute.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("attribute");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                attribute.print_attribute(__p);
                if masked.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("masked");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                masked.print_attribute(__p);
                if notable_trait.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("notable_trait");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                notable_trait.print_attribute(__p);
                if search_unbox.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("search_unbox");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                search_unbox.print_attribute(__p);
                if html_favicon_url.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("html_favicon_url");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                html_favicon_url.print_attribute(__p);
                if html_logo_url.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("html_logo_url");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                html_logo_url.print_attribute(__p);
                if html_playground_url.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("html_playground_url");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                html_playground_url.print_attribute(__p);
                if html_root_url.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("html_root_url");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                html_root_url.print_attribute(__p);
                if html_no_source.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("html_no_source");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                html_no_source.print_attribute(__p);
                if issue_tracker_base_url.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("issue_tracker_base_url");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                issue_tracker_base_url.print_attribute(__p);
                if rust_logo.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("rust_logo");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                rust_logo.print_attribute(__p);
                if test_attrs.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("test_attrs");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                test_attrs.print_attribute(__p);
                if no_crate_inject.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("no_crate_inject");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                no_crate_inject.print_attribute(__p);
                __p.word("}");
            }
        }
    };PrintAttribute)]
546pub struct DocAttribute {
547    pub aliases: FxIndexMap<Symbol, Span>,
548    pub hidden: Option<Span>,
549    // Because we need to emit the error if there is more than one `inline` attribute on an item
550    // at the same time as the other doc attributes, we store a list instead of using `Option`.
551    pub inline: ThinVec<(DocInline, Span)>,
552
553    // unstable
554    pub cfg: ThinVec<CfgEntry>,
555    pub auto_cfg: ThinVec<(CfgHideShow, Span)>,
556    /// This is for `#[doc(auto_cfg = false|true)]`/`#[doc(auto_cfg)]`.
557    pub auto_cfg_change: ThinVec<(bool, Span)>,
558
559    // builtin
560    pub fake_variadic: Option<Span>,
561    pub keyword: Option<(Symbol, Span)>,
562    pub attribute: Option<(Symbol, Span)>,
563    pub masked: Option<Span>,
564    pub notable_trait: Option<Span>,
565    pub search_unbox: Option<Span>,
566
567    // valid on crate
568    pub html_favicon_url: Option<(Symbol, Span)>,
569    pub html_logo_url: Option<(Symbol, Span)>,
570    pub html_playground_url: Option<(Symbol, Span)>,
571    pub html_root_url: Option<(Symbol, Span)>,
572    pub html_no_source: Option<Span>,
573    pub issue_tracker_base_url: Option<(Symbol, Span)>,
574    pub rust_logo: Option<Span>,
575
576    // #[doc(test(...))]
577    pub test_attrs: ThinVec<Span>,
578    pub no_crate_inject: Option<Span>,
579}
580
581impl<E: rustc_span::SpanEncoder> rustc_serialize::Encodable<E> for DocAttribute {
582    fn encode(&self, encoder: &mut E) {
583        let DocAttribute {
584            aliases,
585            hidden,
586            inline,
587            cfg,
588            auto_cfg,
589            auto_cfg_change,
590            fake_variadic,
591            keyword,
592            attribute,
593            masked,
594            notable_trait,
595            search_unbox,
596            html_favicon_url,
597            html_logo_url,
598            html_playground_url,
599            html_root_url,
600            html_no_source,
601            issue_tracker_base_url,
602            rust_logo,
603            test_attrs,
604            no_crate_inject,
605        } = self;
606        rustc_serialize::Encodable::<E>::encode(aliases, encoder);
607        rustc_serialize::Encodable::<E>::encode(hidden, encoder);
608
609        // FIXME: The `doc(inline)` attribute is never encoded, but is it actually the right thing
610        // to do? I suspect the condition was broken, should maybe instead not encode anything if we
611        // have `doc(no_inline)`.
612        let inline: ThinVec<_> =
613            inline.iter().filter(|(i, _)| *i != DocInline::Inline).cloned().collect();
614        rustc_serialize::Encodable::<E>::encode(&inline, encoder);
615
616        rustc_serialize::Encodable::<E>::encode(cfg, encoder);
617        rustc_serialize::Encodable::<E>::encode(auto_cfg, encoder);
618        rustc_serialize::Encodable::<E>::encode(auto_cfg_change, encoder);
619        rustc_serialize::Encodable::<E>::encode(fake_variadic, encoder);
620        rustc_serialize::Encodable::<E>::encode(keyword, encoder);
621        rustc_serialize::Encodable::<E>::encode(attribute, encoder);
622        rustc_serialize::Encodable::<E>::encode(masked, encoder);
623        rustc_serialize::Encodable::<E>::encode(notable_trait, encoder);
624        rustc_serialize::Encodable::<E>::encode(search_unbox, encoder);
625        rustc_serialize::Encodable::<E>::encode(html_favicon_url, encoder);
626        rustc_serialize::Encodable::<E>::encode(html_logo_url, encoder);
627        rustc_serialize::Encodable::<E>::encode(html_playground_url, encoder);
628        rustc_serialize::Encodable::<E>::encode(html_root_url, encoder);
629        rustc_serialize::Encodable::<E>::encode(html_no_source, encoder);
630        rustc_serialize::Encodable::<E>::encode(issue_tracker_base_url, encoder);
631        rustc_serialize::Encodable::<E>::encode(rust_logo, encoder);
632        rustc_serialize::Encodable::<E>::encode(test_attrs, encoder);
633        rustc_serialize::Encodable::<E>::encode(no_crate_inject, encoder);
634    }
635}
636
637/// How to perform collapse macros debug info
638/// if-ext - if macro from different crate (related to callsite code)
639/// | cmd \ attr    | no  | (unspecified) | external | yes |
640/// | no            | no  | no            | no       | no  |
641/// | (unspecified) | no  | no            | if-ext   | yes |
642/// | external      | no  | if-ext        | if-ext   | yes |
643/// | yes           | yes | yes           | yes      | yes |
644#[derive(#[automatically_derived]
impl ::core::marker::Copy for CollapseMacroDebuginfo { }Copy, #[automatically_derived]
impl ::core::clone::Clone for CollapseMacroDebuginfo {
    #[inline]
    fn clone(&self) -> CollapseMacroDebuginfo { *self }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for CollapseMacroDebuginfo {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                CollapseMacroDebuginfo::No => "No",
                CollapseMacroDebuginfo::Unspecified => "Unspecified",
                CollapseMacroDebuginfo::External => "External",
                CollapseMacroDebuginfo::Yes => "Yes",
            })
    }
}Debug, #[automatically_derived]
impl ::core::hash::Hash for CollapseMacroDebuginfo {
    #[inline]
    fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        ::core::hash::Hash::hash(&__self_discr, state)
    }
}Hash, #[automatically_derived]
impl ::core::cmp::PartialEq for CollapseMacroDebuginfo {
    #[inline]
    fn eq(&self, other: &CollapseMacroDebuginfo) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq)]
645#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for CollapseMacroDebuginfo where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    CollapseMacroDebuginfo::No => {}
                    CollapseMacroDebuginfo::Unspecified => {}
                    CollapseMacroDebuginfo::External => {}
                    CollapseMacroDebuginfo::Yes => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for CollapseMacroDebuginfo {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        CollapseMacroDebuginfo::No => { 0usize }
                        CollapseMacroDebuginfo::Unspecified => { 1usize }
                        CollapseMacroDebuginfo::External => { 2usize }
                        CollapseMacroDebuginfo::Yes => { 3usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    CollapseMacroDebuginfo::No => {}
                    CollapseMacroDebuginfo::Unspecified => {}
                    CollapseMacroDebuginfo::External => {}
                    CollapseMacroDebuginfo::Yes => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for CollapseMacroDebuginfo {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { CollapseMacroDebuginfo::No }
                    1usize => { CollapseMacroDebuginfo::Unspecified }
                    2usize => { CollapseMacroDebuginfo::External }
                    3usize => { CollapseMacroDebuginfo::Yes }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `CollapseMacroDebuginfo`, expected 0..4, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for CollapseMacroDebuginfo {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::No => { __p.word("No") }
                    Self::Unspecified => { __p.word("Unspecified") }
                    Self::External => { __p.word("External") }
                    Self::Yes => { __p.word("Yes") }
                }
            }
        }
    };PrintAttribute)]
646pub enum CollapseMacroDebuginfo {
647    /// Don't collapse debuginfo for the macro
648    No = 0,
649    /// Unspecified value
650    Unspecified = 1,
651    /// Collapse debuginfo if the macro comes from a different crate
652    External = 2,
653    /// Collapse debuginfo for the macro
654    Yes = 3,
655}
656
657/// Crate type, as specified by `#![crate_type]`
658#[derive(#[automatically_derived]
impl ::core::marker::Copy for CrateType { }Copy, #[automatically_derived]
impl ::core::clone::Clone for CrateType {
    #[inline]
    fn clone(&self) -> CrateType { *self }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for CrateType {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                CrateType::Executable => "Executable",
                CrateType::Dylib => "Dylib",
                CrateType::Rlib => "Rlib",
                CrateType::StaticLib => "StaticLib",
                CrateType::Cdylib => "Cdylib",
                CrateType::ProcMacro => "ProcMacro",
                CrateType::Sdylib => "Sdylib",
            })
    }
}Debug, #[automatically_derived]
impl ::core::hash::Hash for CrateType {
    #[inline]
    fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        ::core::hash::Hash::hash(&__self_discr, state)
    }
}Hash, #[automatically_derived]
impl ::core::cmp::PartialEq for CrateType {
    #[inline]
    fn eq(&self, other: &CrateType) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr
    }
}PartialEq, #[automatically_derived]
impl ::core::default::Default for CrateType {
    #[inline]
    fn default() -> CrateType { Self::Rlib }
}Default, #[automatically_derived]
impl ::core::cmp::PartialOrd for CrateType {
    #[inline]
    fn partial_cmp(&self, other: &CrateType)
        -> ::core::option::Option<::core::cmp::Ordering> {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        ::core::cmp::PartialOrd::partial_cmp(&__self_discr, &__arg1_discr)
    }
}PartialOrd, #[automatically_derived]
impl ::core::cmp::Eq for CrateType {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {}
}Eq, #[automatically_derived]
impl ::core::cmp::Ord for CrateType {
    #[inline]
    fn cmp(&self, other: &CrateType) -> ::core::cmp::Ordering {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        ::core::cmp::Ord::cmp(&__self_discr, &__arg1_discr)
    }
}Ord)]
659#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for CrateType where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    CrateType::Executable => {}
                    CrateType::Dylib => {}
                    CrateType::Rlib => {}
                    CrateType::StaticLib => {}
                    CrateType::Cdylib => {}
                    CrateType::ProcMacro => {}
                    CrateType::Sdylib => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for CrateType {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        CrateType::Executable => { 0usize }
                        CrateType::Dylib => { 1usize }
                        CrateType::Rlib => { 2usize }
                        CrateType::StaticLib => { 3usize }
                        CrateType::Cdylib => { 4usize }
                        CrateType::ProcMacro => { 5usize }
                        CrateType::Sdylib => { 6usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    CrateType::Executable => {}
                    CrateType::Dylib => {}
                    CrateType::Rlib => {}
                    CrateType::StaticLib => {}
                    CrateType::Cdylib => {}
                    CrateType::ProcMacro => {}
                    CrateType::Sdylib => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for CrateType {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { CrateType::Executable }
                    1usize => { CrateType::Dylib }
                    2usize => { CrateType::Rlib }
                    3usize => { CrateType::StaticLib }
                    4usize => { CrateType::Cdylib }
                    5usize => { CrateType::ProcMacro }
                    6usize => { CrateType::Sdylib }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `CrateType`, expected 0..7, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for CrateType {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Executable => { __p.word("Executable") }
                    Self::Dylib => { __p.word("Dylib") }
                    Self::Rlib => { __p.word("Rlib") }
                    Self::StaticLib => { __p.word("StaticLib") }
                    Self::Cdylib => { __p.word("Cdylib") }
                    Self::ProcMacro => { __p.word("ProcMacro") }
                    Self::Sdylib => { __p.word("Sdylib") }
                }
            }
        }
    };PrintAttribute)]
660pub enum CrateType {
661    /// `#![crate_type = "bin"]`
662    Executable,
663    /// `#![crate_type = "dylib"]`
664    Dylib,
665    /// `#![crate_type = "rlib"]` or `#![crate_type = "lib"]`
666    #[default]
667    Rlib,
668    /// `#![crate_type = "staticlib"]`
669    StaticLib,
670    /// `#![crate_type = "cdylib"]`
671    Cdylib,
672    /// `#![crate_type = "proc-macro"]`
673    ProcMacro,
674    /// `#![crate_type = "sdylib"]`
675    // Unstable; feature(export_stable)
676    Sdylib,
677}
678
679impl CrateType {
680    /// Pairs of each `#[crate_type] = "..."` value and the crate type it resolves to
681    pub fn all() -> &'static [(Symbol, Self)] {
682        if true {
    match (&CrateType::default(), &CrateType::Rlib) {
        (left_val, right_val) => {
            if !(*left_val == *right_val) {
                let kind = ::core::panicking::AssertKind::Eq;
                ::core::panicking::assert_failed(kind, &*left_val,
                    &*right_val, ::core::option::Option::None);
            }
        }
    };
};debug_assert_eq!(CrateType::default(), CrateType::Rlib);
683        &[
684            (rustc_span::sym::lib, CrateType::Rlib),
685            (rustc_span::sym::rlib, CrateType::Rlib),
686            (rustc_span::sym::dylib, CrateType::Dylib),
687            (rustc_span::sym::cdylib, CrateType::Cdylib),
688            (rustc_span::sym::staticlib, CrateType::StaticLib),
689            (rustc_span::sym::proc_dash_macro, CrateType::ProcMacro),
690            (rustc_span::sym::bin, CrateType::Executable),
691            (rustc_span::sym::sdylib, CrateType::Sdylib),
692        ]
693    }
694
695    /// Same as [`CrateType::all`], but does not include unstable options.
696    /// Used for diagnostics.
697    pub fn all_stable() -> &'static [(Symbol, Self)] {
698        if true {
    match (&CrateType::default(), &CrateType::Rlib) {
        (left_val, right_val) => {
            if !(*left_val == *right_val) {
                let kind = ::core::panicking::AssertKind::Eq;
                ::core::panicking::assert_failed(kind, &*left_val,
                    &*right_val, ::core::option::Option::None);
            }
        }
    };
};debug_assert_eq!(CrateType::default(), CrateType::Rlib);
699        &[
700            (rustc_span::sym::lib, CrateType::Rlib),
701            (rustc_span::sym::rlib, CrateType::Rlib),
702            (rustc_span::sym::dylib, CrateType::Dylib),
703            (rustc_span::sym::cdylib, CrateType::Cdylib),
704            (rustc_span::sym::staticlib, CrateType::StaticLib),
705            (rustc_span::sym::proc_dash_macro, CrateType::ProcMacro),
706            (rustc_span::sym::bin, CrateType::Executable),
707        ]
708    }
709
710    pub fn has_metadata(self) -> bool {
711        match self {
712            CrateType::Rlib | CrateType::Dylib | CrateType::ProcMacro => true,
713            CrateType::Executable
714            | CrateType::Cdylib
715            | CrateType::StaticLib
716            | CrateType::Sdylib => false,
717        }
718    }
719}
720
721impl TryFrom<Symbol> for CrateType {
722    type Error = ();
723
724    fn try_from(value: Symbol) -> Result<Self, Self::Error> {
725        Ok(match value {
726            rustc_span::sym::bin => CrateType::Executable,
727            rustc_span::sym::dylib => CrateType::Dylib,
728            rustc_span::sym::staticlib => CrateType::StaticLib,
729            rustc_span::sym::cdylib => CrateType::Cdylib,
730            rustc_span::sym::rlib => CrateType::Rlib,
731            rustc_span::sym::lib => CrateType::default(),
732            rustc_span::sym::proc_dash_macro => CrateType::ProcMacro,
733            rustc_span::sym::sdylib => CrateType::Sdylib,
734            _ => return Err(()),
735        })
736    }
737}
738
739impl std::fmt::Display for CrateType {
740    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
741        match *self {
742            CrateType::Executable => "bin".fmt(f),
743            CrateType::Dylib => "dylib".fmt(f),
744            CrateType::Rlib => "rlib".fmt(f),
745            CrateType::StaticLib => "staticlib".fmt(f),
746            CrateType::Cdylib => "cdylib".fmt(f),
747            CrateType::ProcMacro => "proc-macro".fmt(f),
748            CrateType::Sdylib => "sdylib".fmt(f),
749        }
750    }
751}
752
753impl IntoDiagArg for CrateType {
754    fn into_diag_arg(self, _: &mut Option<std::path::PathBuf>) -> DiagArgValue {
755        self.to_string().into_diag_arg(&mut None)
756    }
757}
758
759#[derive(#[automatically_derived]
impl ::core::clone::Clone for RustcLayoutType {
    #[inline]
    fn clone(&self) -> RustcLayoutType {
        match self {
            RustcLayoutType::Abi => RustcLayoutType::Abi,
            RustcLayoutType::Align => RustcLayoutType::Align,
            RustcLayoutType::Size => RustcLayoutType::Size,
            RustcLayoutType::HomogenousAggregate =>
                RustcLayoutType::HomogenousAggregate,
            RustcLayoutType::Debug => RustcLayoutType::Debug,
        }
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for RustcLayoutType {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f,
            match self {
                RustcLayoutType::Abi => "Abi",
                RustcLayoutType::Align => "Align",
                RustcLayoutType::Size => "Size",
                RustcLayoutType::HomogenousAggregate => "HomogenousAggregate",
                RustcLayoutType::Debug => "Debug",
            })
    }
}Debug, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for RustcLayoutType where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    RustcLayoutType::Abi => {}
                    RustcLayoutType::Align => {}
                    RustcLayoutType::Size => {}
                    RustcLayoutType::HomogenousAggregate => {}
                    RustcLayoutType::Debug => {}
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for RustcLayoutType {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        RustcLayoutType::Abi => { 0usize }
                        RustcLayoutType::Align => { 1usize }
                        RustcLayoutType::Size => { 2usize }
                        RustcLayoutType::HomogenousAggregate => { 3usize }
                        RustcLayoutType::Debug => { 4usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    RustcLayoutType::Abi => {}
                    RustcLayoutType::Align => {}
                    RustcLayoutType::Size => {}
                    RustcLayoutType::HomogenousAggregate => {}
                    RustcLayoutType::Debug => {}
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for RustcLayoutType {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { RustcLayoutType::Abi }
                    1usize => { RustcLayoutType::Align }
                    2usize => { RustcLayoutType::Size }
                    3usize => { RustcLayoutType::HomogenousAggregate }
                    4usize => { RustcLayoutType::Debug }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `RustcLayoutType`, expected 0..5, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for RustcLayoutType {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::Abi => { __p.word("Abi") }
                    Self::Align => { __p.word("Align") }
                    Self::Size => { __p.word("Size") }
                    Self::HomogenousAggregate => {
                        __p.word("HomogenousAggregate")
                    }
                    Self::Debug => { __p.word("Debug") }
                }
            }
        }
    };PrintAttribute)]
760pub enum RustcLayoutType {
761    Abi,
762    Align,
763    Size,
764    HomogenousAggregate,
765    Debug,
766}
767
768#[derive(#[automatically_derived]
impl ::core::clone::Clone for RustcMirKind {
    #[inline]
    fn clone(&self) -> RustcMirKind {
        match self {
            RustcMirKind::PeekMaybeInit => RustcMirKind::PeekMaybeInit,
            RustcMirKind::PeekMaybeUninit => RustcMirKind::PeekMaybeUninit,
            RustcMirKind::PeekLiveness => RustcMirKind::PeekLiveness,
            RustcMirKind::StopAfterDataflow =>
                RustcMirKind::StopAfterDataflow,
            RustcMirKind::BorrowckGraphvizPostflow { path: __self_0 } =>
                RustcMirKind::BorrowckGraphvizPostflow {
                    path: ::core::clone::Clone::clone(__self_0),
                },
            RustcMirKind::BorrowckGraphvizFormat { format: __self_0 } =>
                RustcMirKind::BorrowckGraphvizFormat {
                    format: ::core::clone::Clone::clone(__self_0),
                },
        }
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for RustcMirKind {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        match self {
            RustcMirKind::PeekMaybeInit =>
                ::core::fmt::Formatter::write_str(f, "PeekMaybeInit"),
            RustcMirKind::PeekMaybeUninit =>
                ::core::fmt::Formatter::write_str(f, "PeekMaybeUninit"),
            RustcMirKind::PeekLiveness =>
                ::core::fmt::Formatter::write_str(f, "PeekLiveness"),
            RustcMirKind::StopAfterDataflow =>
                ::core::fmt::Formatter::write_str(f, "StopAfterDataflow"),
            RustcMirKind::BorrowckGraphvizPostflow { path: __self_0 } =>
                ::core::fmt::Formatter::debug_struct_field1_finish(f,
                    "BorrowckGraphvizPostflow", "path", &__self_0),
            RustcMirKind::BorrowckGraphvizFormat { format: __self_0 } =>
                ::core::fmt::Formatter::debug_struct_field1_finish(f,
                    "BorrowckGraphvizFormat", "format", &__self_0),
        }
    }
}Debug, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for RustcMirKind where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    RustcMirKind::PeekMaybeInit => {}
                    RustcMirKind::PeekMaybeUninit => {}
                    RustcMirKind::PeekLiveness => {}
                    RustcMirKind::StopAfterDataflow => {}
                    RustcMirKind::BorrowckGraphvizPostflow {
                        path: ref __binding_0 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    RustcMirKind::BorrowckGraphvizFormat {
                        format: ref __binding_0 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for RustcMirKind {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        RustcMirKind::PeekMaybeInit => { 0usize }
                        RustcMirKind::PeekMaybeUninit => { 1usize }
                        RustcMirKind::PeekLiveness => { 2usize }
                        RustcMirKind::StopAfterDataflow => { 3usize }
                        RustcMirKind::BorrowckGraphvizPostflow {
                            path: ref __binding_0 } => {
                            4usize
                        }
                        RustcMirKind::BorrowckGraphvizFormat {
                            format: ref __binding_0 } => {
                            5usize
                        }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    RustcMirKind::PeekMaybeInit => {}
                    RustcMirKind::PeekMaybeUninit => {}
                    RustcMirKind::PeekLiveness => {}
                    RustcMirKind::StopAfterDataflow => {}
                    RustcMirKind::BorrowckGraphvizPostflow {
                        path: ref __binding_0 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    RustcMirKind::BorrowckGraphvizFormat {
                        format: ref __binding_0 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for RustcMirKind {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => { RustcMirKind::PeekMaybeInit }
                    1usize => { RustcMirKind::PeekMaybeUninit }
                    2usize => { RustcMirKind::PeekLiveness }
                    3usize => { RustcMirKind::StopAfterDataflow }
                    4usize => {
                        RustcMirKind::BorrowckGraphvizPostflow {
                            path: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    5usize => {
                        RustcMirKind::BorrowckGraphvizFormat {
                            format: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `RustcMirKind`, expected 0..6, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for RustcMirKind {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::PeekMaybeInit => { __p.word("PeekMaybeInit") }
                    Self::PeekMaybeUninit => { __p.word("PeekMaybeUninit") }
                    Self::PeekLiveness => { __p.word("PeekLiveness") }
                    Self::StopAfterDataflow => { __p.word("StopAfterDataflow") }
                    Self::BorrowckGraphvizPostflow { path } => {
                        __p.word("BorrowckGraphvizPostflow");
                        if true && !path.should_render() { return; }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if path.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("path");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        path.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::BorrowckGraphvizFormat { format } => {
                        __p.word("BorrowckGraphvizFormat");
                        if true && !format.should_render() { return; }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if format.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("format");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        format.print_attribute(__p);
                        __p.word("}");
                    }
                }
            }
        }
    };PrintAttribute, #[automatically_derived]
impl ::core::cmp::PartialEq for RustcMirKind {
    #[inline]
    fn eq(&self, other: &RustcMirKind) -> bool {
        let __self_discr = ::core::intrinsics::discriminant_value(self);
        let __arg1_discr = ::core::intrinsics::discriminant_value(other);
        __self_discr == __arg1_discr &&
            match (self, other) {
                (RustcMirKind::BorrowckGraphvizPostflow { path: __self_0 },
                    RustcMirKind::BorrowckGraphvizPostflow { path: __arg1_0 })
                    => __self_0 == __arg1_0,
                (RustcMirKind::BorrowckGraphvizFormat { format: __self_0 },
                    RustcMirKind::BorrowckGraphvizFormat { format: __arg1_0 })
                    => __self_0 == __arg1_0,
                _ => true,
            }
    }
}PartialEq, #[automatically_derived]
impl ::core::cmp::Eq for RustcMirKind {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {
        let _: ::core::cmp::AssertParamIsEq<PathBuf>;
        let _: ::core::cmp::AssertParamIsEq<BorrowckGraphvizFormatKind>;
    }
}Eq)]
769pub enum RustcMirKind {
770    PeekMaybeInit,
771    PeekMaybeUninit,
772    PeekLiveness,
773    StopAfterDataflow,
774    BorrowckGraphvizPostflow { path: PathBuf },
775    BorrowckGraphvizFormat { format: BorrowckGraphvizFormatKind },
776}
777
778#[derive(#[automatically_derived]
impl ::core::clone::Clone for BorrowckGraphvizFormatKind {
    #[inline]
    fn clone(&self) -> BorrowckGraphvizFormatKind {
        BorrowckGraphvizFormatKind::TwoPhase
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for BorrowckGraphvizFormatKind {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f, "TwoPhase")
    }
}Debug, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for BorrowckGraphvizFormatKind where
            __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self { BorrowckGraphvizFormatKind::TwoPhase => {} }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for BorrowckGraphvizFormatKind {
            fn encode(&self, __encoder: &mut __E) {
                match *self { BorrowckGraphvizFormatKind::TwoPhase => {} }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for BorrowckGraphvizFormatKind {
            fn decode(__decoder: &mut __D) -> Self {
                BorrowckGraphvizFormatKind::TwoPhase
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for BorrowckGraphvizFormatKind {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self { Self::TwoPhase => { __p.word("TwoPhase") } }
            }
        }
    };PrintAttribute, #[automatically_derived]
impl ::core::cmp::PartialEq for BorrowckGraphvizFormatKind {
    #[inline]
    fn eq(&self, other: &BorrowckGraphvizFormatKind) -> bool { true }
}PartialEq, #[automatically_derived]
impl ::core::cmp::Eq for BorrowckGraphvizFormatKind {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {}
}Eq)]
779pub enum BorrowckGraphvizFormatKind {
780    TwoPhase,
781}
782
783#[derive(#[automatically_derived]
impl ::core::clone::Clone for RustcCleanAttribute {
    #[inline]
    fn clone(&self) -> RustcCleanAttribute {
        RustcCleanAttribute {
            span: ::core::clone::Clone::clone(&self.span),
            cfg: ::core::clone::Clone::clone(&self.cfg),
            except: ::core::clone::Clone::clone(&self.except),
            loaded_from_disk: ::core::clone::Clone::clone(&self.loaded_from_disk),
        }
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for RustcCleanAttribute {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field4_finish(f,
            "RustcCleanAttribute", "span", &self.span, "cfg", &self.cfg,
            "except", &self.except, "loaded_from_disk",
            &&self.loaded_from_disk)
    }
}Debug, #[automatically_derived]
impl ::core::cmp::PartialEq for RustcCleanAttribute {
    #[inline]
    fn eq(&self, other: &RustcCleanAttribute) -> bool {
        self.span == other.span && self.cfg == other.cfg &&
                self.except == other.except &&
            self.loaded_from_disk == other.loaded_from_disk
    }
}PartialEq, #[automatically_derived]
impl ::core::cmp::Eq for RustcCleanAttribute {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {
        let _: ::core::cmp::AssertParamIsEq<Span>;
        let _: ::core::cmp::AssertParamIsEq<Symbol>;
        let _: ::core::cmp::AssertParamIsEq<Option<RustcCleanQueries>>;
        let _: ::core::cmp::AssertParamIsEq<Option<RustcCleanQueries>>;
    }
}Eq)]
784#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for RustcCleanAttribute where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                match *self {
                    RustcCleanAttribute {
                        span: ref __binding_0,
                        cfg: ref __binding_1,
                        except: ref __binding_2,
                        loaded_from_disk: ref __binding_3 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                        { __binding_3.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for RustcCleanAttribute {
            fn encode(&self, __encoder: &mut __E) {
                match *self {
                    RustcCleanAttribute {
                        span: ref __binding_0,
                        cfg: ref __binding_1,
                        except: ref __binding_2,
                        loaded_from_disk: ref __binding_3 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_3,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for RustcCleanAttribute {
            fn decode(__decoder: &mut __D) -> Self {
                RustcCleanAttribute {
                    span: ::rustc_serialize::Decodable::decode(__decoder),
                    cfg: ::rustc_serialize::Decodable::decode(__decoder),
                    except: ::rustc_serialize::Decodable::decode(__decoder),
                    loaded_from_disk: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for RustcCleanAttribute {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                let Self { span, cfg, except, loaded_from_disk } = self;
                __p.word("RustcCleanAttribute");
                if true && !span.should_render() && !cfg.should_render() &&
                            !except.should_render() && !loaded_from_disk.should_render()
                    {
                    return;
                }
                __p.nbsp();
                __p.word("{");
                let mut __printed_anything = false;
                if span.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("span");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                span.print_attribute(__p);
                if cfg.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("cfg");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                cfg.print_attribute(__p);
                if except.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("except");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                except.print_attribute(__p);
                if loaded_from_disk.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("loaded_from_disk");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                loaded_from_disk.print_attribute(__p);
                __p.word("}");
            }
        }
    };PrintAttribute)]
785pub struct RustcCleanAttribute {
786    pub span: Span,
787    pub cfg: Symbol,
788    pub except: Option<RustcCleanQueries>,
789    pub loaded_from_disk: Option<RustcCleanQueries>,
790}
791
792/// Represents the `except=` or `loaded_from_disk=` argument of `#[rustc_clean]`
793#[derive(#[automatically_derived]
impl ::core::clone::Clone for RustcCleanQueries {
    #[inline]
    fn clone(&self) -> RustcCleanQueries {
        RustcCleanQueries {
            entries: ::core::clone::Clone::clone(&self.entries),
            span: ::core::clone::Clone::clone(&self.span),
        }
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for RustcCleanQueries {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field2_finish(f,
            "RustcCleanQueries", "entries", &self.entries, "span",
            &&self.span)
    }
}Debug, #[automatically_derived]
impl ::core::cmp::PartialEq for RustcCleanQueries {
    #[inline]
    fn eq(&self, other: &RustcCleanQueries) -> bool {
        self.entries == other.entries && self.span == other.span
    }
}PartialEq, #[automatically_derived]
impl ::core::cmp::Eq for RustcCleanQueries {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {
        let _: ::core::cmp::AssertParamIsEq<ThinVec<Symbol>>;
        let _: ::core::cmp::AssertParamIsEq<Span>;
    }
}Eq)]
794#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for RustcCleanQueries where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                match *self {
                    RustcCleanQueries {
                        entries: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for RustcCleanQueries {
            fn encode(&self, __encoder: &mut __E) {
                match *self {
                    RustcCleanQueries {
                        entries: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for RustcCleanQueries {
            fn decode(__decoder: &mut __D) -> Self {
                RustcCleanQueries {
                    entries: ::rustc_serialize::Decodable::decode(__decoder),
                    span: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for RustcCleanQueries {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                let Self { entries, span } = self;
                __p.word("RustcCleanQueries");
                if true && !entries.should_render() && !span.should_render() {
                    return;
                }
                __p.nbsp();
                __p.word("{");
                let mut __printed_anything = false;
                if entries.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("entries");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                entries.print_attribute(__p);
                if span.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("span");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                span.print_attribute(__p);
                __p.word("}");
            }
        }
    };PrintAttribute)]
795pub struct RustcCleanQueries {
796    pub entries: ThinVec<Symbol>,
797    pub span: Span,
798}
799
800#[derive(#[automatically_derived]
impl ::core::clone::Clone for RustcAutodiff {
    #[inline]
    fn clone(&self) -> RustcAutodiff {
        RustcAutodiff {
            mode: ::core::clone::Clone::clone(&self.mode),
            width: ::core::clone::Clone::clone(&self.width),
            input_activity: ::core::clone::Clone::clone(&self.input_activity),
            ret_activity: ::core::clone::Clone::clone(&self.ret_activity),
        }
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for RustcAutodiff {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field4_finish(f, "RustcAutodiff",
            "mode", &self.mode, "width", &self.width, "input_activity",
            &self.input_activity, "ret_activity", &&self.ret_activity)
    }
}Debug, #[automatically_derived]
impl ::core::cmp::PartialEq for RustcAutodiff {
    #[inline]
    fn eq(&self, other: &RustcAutodiff) -> bool {
        self.width == other.width && self.mode == other.mode &&
                self.input_activity == other.input_activity &&
            self.ret_activity == other.ret_activity
    }
}PartialEq, #[automatically_derived]
impl ::core::cmp::Eq for RustcAutodiff {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {
        let _: ::core::cmp::AssertParamIsEq<DiffMode>;
        let _: ::core::cmp::AssertParamIsEq<u32>;
        let _: ::core::cmp::AssertParamIsEq<ThinVec<DiffActivity>>;
        let _: ::core::cmp::AssertParamIsEq<DiffActivity>;
    }
}Eq)]
801#[derive(const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for RustcAutodiff where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                match *self {
                    RustcAutodiff {
                        mode: ref __binding_0,
                        width: ref __binding_1,
                        input_activity: ref __binding_2,
                        ret_activity: ref __binding_3 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                        { __binding_3.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for RustcAutodiff {
            fn encode(&self, __encoder: &mut __E) {
                match *self {
                    RustcAutodiff {
                        mode: ref __binding_0,
                        width: ref __binding_1,
                        input_activity: ref __binding_2,
                        ret_activity: ref __binding_3 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_3,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for RustcAutodiff {
            fn decode(__decoder: &mut __D) -> Self {
                RustcAutodiff {
                    mode: ::rustc_serialize::Decodable::decode(__decoder),
                    width: ::rustc_serialize::Decodable::decode(__decoder),
                    input_activity: ::rustc_serialize::Decodable::decode(__decoder),
                    ret_activity: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for RustcAutodiff {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                let Self { mode, width, input_activity, ret_activity } = self;
                __p.word("RustcAutodiff");
                if true && !mode.should_render() && !width.should_render() &&
                            !input_activity.should_render() &&
                        !ret_activity.should_render() {
                    return;
                }
                __p.nbsp();
                __p.word("{");
                let mut __printed_anything = false;
                if mode.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("mode");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                mode.print_attribute(__p);
                if width.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("width");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                width.print_attribute(__p);
                if input_activity.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("input_activity");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                input_activity.print_attribute(__p);
                if ret_activity.should_render() {
                    if __printed_anything { __p.word_space(","); }
                    __p.word("ret_activity");
                    __p.word(":");
                    __p.nbsp();
                    __printed_anything = true;
                }
                ret_activity.print_attribute(__p);
                __p.word("}");
            }
        }
    };PrintAttribute)]
802pub struct RustcAutodiff {
803    /// Conceptually either forward or reverse mode AD, as described in various autodiff papers and
804    /// e.g. in the [JAX
805    /// Documentation](https://jax.readthedocs.io/en/latest/_tutorials/advanced-autodiff.html#how-it-s-made-two-foundational-autodiff-functions).
806    pub mode: DiffMode,
807    /// A user-provided, batching width. If not given, we will default to 1 (no batching).
808    /// Calling a differentiated, non-batched function through a loop 100 times is equivalent to:
809    /// - Calling the function 50 times with a batch size of 2
810    /// - Calling the function 25 times with a batch size of 4,
811    /// etc. A batched function takes more (or longer) arguments, and might be able to benefit from
812    /// cache locality, better re-usal of primal values, and other optimizations.
813    /// We will (before LLVM's vectorizer runs) just generate most LLVM-IR instructions `width`
814    /// times, so this massively increases code size. As such, values like 1024 are unlikely to
815    /// work. We should consider limiting this to u8 or u16, but will leave it at u32 for
816    /// experiments for now and focus on documenting the implications of a large width.
817    pub width: u32,
818    pub input_activity: ThinVec<DiffActivity>,
819    pub ret_activity: DiffActivity,
820}
821
822impl RustcAutodiff {
823    pub fn has_primal_ret(&self) -> bool {
824        #[allow(non_exhaustive_omitted_patterns)] match self.ret_activity {
    DiffActivity::Active | DiffActivity::Dual => true,
    _ => false,
}matches!(self.ret_activity, DiffActivity::Active | DiffActivity::Dual)
825    }
826}
827
828impl RustcAutodiff {
829    pub fn has_ret_activity(&self) -> bool {
830        self.ret_activity != DiffActivity::None
831    }
832    pub fn has_active_only_ret(&self) -> bool {
833        self.ret_activity == DiffActivity::ActiveOnly
834    }
835
836    pub fn error() -> Self {
837        RustcAutodiff {
838            mode: DiffMode::Error,
839            width: 0,
840            ret_activity: DiffActivity::None,
841            input_activity: ThinVec::new(),
842        }
843    }
844
845    pub fn source() -> Self {
846        RustcAutodiff {
847            mode: DiffMode::Source,
848            width: 0,
849            ret_activity: DiffActivity::None,
850            input_activity: ThinVec::new(),
851        }
852    }
853
854    pub fn is_active(&self) -> bool {
855        self.mode != DiffMode::Error
856    }
857
858    pub fn is_source(&self) -> bool {
859        self.mode == DiffMode::Source
860    }
861    pub fn apply_autodiff(&self) -> bool {
862        !#[allow(non_exhaustive_omitted_patterns)] match self.mode {
    DiffMode::Error | DiffMode::Source => true,
    _ => false,
}matches!(self.mode, DiffMode::Error | DiffMode::Source)
863    }
864
865    pub fn into_item(
866        self,
867        source: String,
868        target: String,
869        inputs: Vec<TypeTree>,
870        output: TypeTree,
871    ) -> AutoDiffItem {
872        AutoDiffItem { source, target, inputs, output, attrs: self }
873    }
874}
875
876/// We generate one of these structs for each `#[autodiff(...)]` attribute.
877#[derive(#[automatically_derived]
impl ::core::clone::Clone for AutoDiffItem {
    #[inline]
    fn clone(&self) -> AutoDiffItem {
        AutoDiffItem {
            source: ::core::clone::Clone::clone(&self.source),
            target: ::core::clone::Clone::clone(&self.target),
            attrs: ::core::clone::Clone::clone(&self.attrs),
            inputs: ::core::clone::Clone::clone(&self.inputs),
            output: ::core::clone::Clone::clone(&self.output),
        }
    }
}Clone, #[automatically_derived]
impl ::core::cmp::Eq for AutoDiffItem {
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {
        let _: ::core::cmp::AssertParamIsEq<String>;
        let _: ::core::cmp::AssertParamIsEq<RustcAutodiff>;
        let _: ::core::cmp::AssertParamIsEq<Vec<TypeTree>>;
        let _: ::core::cmp::AssertParamIsEq<TypeTree>;
    }
}Eq, #[automatically_derived]
impl ::core::cmp::PartialEq for AutoDiffItem {
    #[inline]
    fn eq(&self, other: &AutoDiffItem) -> bool {
        self.source == other.source && self.target == other.target &&
                    self.attrs == other.attrs && self.inputs == other.inputs &&
            self.output == other.output
    }
}PartialEq, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for AutoDiffItem {
            fn encode(&self, __encoder: &mut __E) {
                match *self {
                    AutoDiffItem {
                        source: ref __binding_0,
                        target: ref __binding_1,
                        attrs: ref __binding_2,
                        inputs: ref __binding_3,
                        output: ref __binding_4 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_3,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_4,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for AutoDiffItem {
            fn decode(__decoder: &mut __D) -> Self {
                AutoDiffItem {
                    source: ::rustc_serialize::Decodable::decode(__decoder),
                    target: ::rustc_serialize::Decodable::decode(__decoder),
                    attrs: ::rustc_serialize::Decodable::decode(__decoder),
                    inputs: ::rustc_serialize::Decodable::decode(__decoder),
                    output: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };Decodable, #[automatically_derived]
impl ::core::fmt::Debug for AutoDiffItem {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field5_finish(f, "AutoDiffItem",
            "source", &self.source, "target", &self.target, "attrs",
            &self.attrs, "inputs", &self.inputs, "output", &&self.output)
    }
}Debug, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for AutoDiffItem where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                match *self {
                    AutoDiffItem {
                        source: ref __binding_0,
                        target: ref __binding_1,
                        attrs: ref __binding_2,
                        inputs: ref __binding_3,
                        output: ref __binding_4 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                        { __binding_3.hash_stable(__hcx, __hasher); }
                        { __binding_4.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic)]
878pub struct AutoDiffItem {
879    /// The name of the function getting differentiated
880    pub source: String,
881    /// The name of the function being generated
882    pub target: String,
883    pub attrs: RustcAutodiff,
884    pub inputs: Vec<TypeTree>,
885    pub output: TypeTree,
886}
887
888impl fmt::Display for AutoDiffItem {
889    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
890        f.write_fmt(format_args!("Differentiating {0} -> {1}", self.source,
        self.target))write!(f, "Differentiating {} -> {}", self.source, self.target)?;
891        f.write_fmt(format_args!(" with attributes: {0:?}", self.attrs))write!(f, " with attributes: {:?}", self.attrs)?;
892        f.write_fmt(format_args!(" with inputs: {0:?}", self.inputs))write!(f, " with inputs: {:?}", self.inputs)?;
893        f.write_fmt(format_args!(" with output: {0:?}", self.output))write!(f, " with output: {:?}", self.output)
894    }
895}
896
897/// Represents parsed *built-in* inert attributes.
898///
899/// ## Overview
900/// These attributes are markers that guide the compilation process and are never expanded into other code.
901/// They persist throughout the compilation phases, from AST to HIR and beyond.
902///
903/// ## Attribute Processing
904/// While attributes are initially parsed by [`rustc_parse`] into [`ast::Attribute`], they still contain raw token streams
905/// because different attributes have different internal structures. This enum represents the final,
906/// fully parsed form of these attributes, where each variant contains all the information and
907/// structure relevant for the specific attribute.
908///
909/// Some attributes can be applied multiple times to the same item, and they are "collapsed" into a single
910/// semantic attribute. For example:
911/// ```rust
912/// #[repr(C)]
913/// #[repr(packed)]
914/// struct S { }
915/// ```
916/// This is equivalent to `#[repr(C, packed)]` and results in a single [`AttributeKind::Repr`] containing
917/// both `C` and `packed` annotations. This collapsing happens during parsing and is reflected in the
918/// data structures defined in this enum.
919///
920/// ## Usage
921/// These parsed attributes are used throughout the compiler to:
922/// - Control code generation (e.g., `#[repr]`)
923/// - Mark API stability (`#[stable]`, `#[unstable]`)
924/// - Provide documentation (`#[doc]`)
925/// - Guide compiler behavior (e.g., `#[allow_internal_unstable]`)
926///
927/// ## Note on Attribute Organization
928/// Some attributes like `InlineAttr`, `OptimizeAttr`, and `InstructionSetAttr` are defined separately
929/// from this enum because they are used in specific compiler phases (like code generation) and don't
930/// need to persist throughout the entire compilation process. They are typically processed and
931/// converted into their final form earlier in the compilation pipeline.
932///
933/// For example:
934/// - `InlineAttr` is used during code generation to control function inlining
935/// - `OptimizeAttr` is used to control optimization levels
936/// - `InstructionSetAttr` is used for target-specific code generation
937///
938/// These attributes are handled by their respective compiler passes in the [`rustc_codegen_ssa`] crate
939/// and don't need to be preserved in the same way as the attributes in this enum.
940///
941/// For more details on attribute parsing, see the [`rustc_attr_parsing`] crate.
942///
943/// [`rustc_parse`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/index.html
944/// [`rustc_codegen_ssa`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_ssa/index.html
945/// [`rustc_attr_parsing`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_attr_parsing/index.html
946#[derive(#[automatically_derived]
impl ::core::clone::Clone for AttributeKind {
    #[inline]
    fn clone(&self) -> AttributeKind {
        match self {
            AttributeKind::AllowInternalUnsafe(__self_0) =>
                AttributeKind::AllowInternalUnsafe(::core::clone::Clone::clone(__self_0)),
            AttributeKind::AllowInternalUnstable(__self_0, __self_1) =>
                AttributeKind::AllowInternalUnstable(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::AutomaticallyDerived(__self_0) =>
                AttributeKind::AutomaticallyDerived(::core::clone::Clone::clone(__self_0)),
            AttributeKind::CfgAttrTrace => AttributeKind::CfgAttrTrace,
            AttributeKind::CfgTrace(__self_0) =>
                AttributeKind::CfgTrace(::core::clone::Clone::clone(__self_0)),
            AttributeKind::CfiEncoding { encoding: __self_0 } =>
                AttributeKind::CfiEncoding {
                    encoding: ::core::clone::Clone::clone(__self_0),
                },
            AttributeKind::Cold(__self_0) =>
                AttributeKind::Cold(::core::clone::Clone::clone(__self_0)),
            AttributeKind::CollapseDebugInfo(__self_0) =>
                AttributeKind::CollapseDebugInfo(::core::clone::Clone::clone(__self_0)),
            AttributeKind::CompilerBuiltins =>
                AttributeKind::CompilerBuiltins,
            AttributeKind::ConstContinue(__self_0) =>
                AttributeKind::ConstContinue(::core::clone::Clone::clone(__self_0)),
            AttributeKind::Coroutine(__self_0) =>
                AttributeKind::Coroutine(::core::clone::Clone::clone(__self_0)),
            AttributeKind::Coverage(__self_0, __self_1) =>
                AttributeKind::Coverage(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::CrateName {
                name: __self_0, name_span: __self_1, attr_span: __self_2 } =>
                AttributeKind::CrateName {
                    name: ::core::clone::Clone::clone(__self_0),
                    name_span: ::core::clone::Clone::clone(__self_1),
                    attr_span: ::core::clone::Clone::clone(__self_2),
                },
            AttributeKind::CrateType(__self_0) =>
                AttributeKind::CrateType(::core::clone::Clone::clone(__self_0)),
            AttributeKind::CustomMir(__self_0, __self_1, __self_2) =>
                AttributeKind::CustomMir(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1),
                    ::core::clone::Clone::clone(__self_2)),
            AttributeKind::DebuggerVisualizer(__self_0) =>
                AttributeKind::DebuggerVisualizer(::core::clone::Clone::clone(__self_0)),
            AttributeKind::DefaultLibAllocator =>
                AttributeKind::DefaultLibAllocator,
            AttributeKind::Deprecated { deprecation: __self_0, span: __self_1
                } =>
                AttributeKind::Deprecated {
                    deprecation: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::DoNotRecommend { attr_span: __self_0 } =>
                AttributeKind::DoNotRecommend {
                    attr_span: ::core::clone::Clone::clone(__self_0),
                },
            AttributeKind::Doc(__self_0) =>
                AttributeKind::Doc(::core::clone::Clone::clone(__self_0)),
            AttributeKind::DocComment {
                style: __self_0,
                kind: __self_1,
                span: __self_2,
                comment: __self_3 } =>
                AttributeKind::DocComment {
                    style: ::core::clone::Clone::clone(__self_0),
                    kind: ::core::clone::Clone::clone(__self_1),
                    span: ::core::clone::Clone::clone(__self_2),
                    comment: ::core::clone::Clone::clone(__self_3),
                },
            AttributeKind::EiiDeclaration(__self_0) =>
                AttributeKind::EiiDeclaration(::core::clone::Clone::clone(__self_0)),
            AttributeKind::EiiImpls(__self_0) =>
                AttributeKind::EiiImpls(::core::clone::Clone::clone(__self_0)),
            AttributeKind::ExportName { name: __self_0, span: __self_1 } =>
                AttributeKind::ExportName {
                    name: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::ExportStable => AttributeKind::ExportStable,
            AttributeKind::Feature(__self_0, __self_1) =>
                AttributeKind::Feature(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::FfiConst(__self_0) =>
                AttributeKind::FfiConst(::core::clone::Clone::clone(__self_0)),
            AttributeKind::FfiPure(__self_0) =>
                AttributeKind::FfiPure(::core::clone::Clone::clone(__self_0)),
            AttributeKind::Fundamental => AttributeKind::Fundamental,
            AttributeKind::Ignore { span: __self_0, reason: __self_1 } =>
                AttributeKind::Ignore {
                    span: ::core::clone::Clone::clone(__self_0),
                    reason: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::Inline(__self_0, __self_1) =>
                AttributeKind::Inline(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::InstructionSet(__self_0) =>
                AttributeKind::InstructionSet(::core::clone::Clone::clone(__self_0)),
            AttributeKind::Lang(__self_0, __self_1) =>
                AttributeKind::Lang(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::Link(__self_0, __self_1) =>
                AttributeKind::Link(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::LinkName { name: __self_0, span: __self_1 } =>
                AttributeKind::LinkName {
                    name: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::LinkOrdinal { ordinal: __self_0, span: __self_1 }
                =>
                AttributeKind::LinkOrdinal {
                    ordinal: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::LinkSection { name: __self_0, span: __self_1 } =>
                AttributeKind::LinkSection {
                    name: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::Linkage(__self_0, __self_1) =>
                AttributeKind::Linkage(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::LoopMatch(__self_0) =>
                AttributeKind::LoopMatch(::core::clone::Clone::clone(__self_0)),
            AttributeKind::MacroEscape(__self_0) =>
                AttributeKind::MacroEscape(::core::clone::Clone::clone(__self_0)),
            AttributeKind::MacroExport {
                span: __self_0, local_inner_macros: __self_1 } =>
                AttributeKind::MacroExport {
                    span: ::core::clone::Clone::clone(__self_0),
                    local_inner_macros: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::MacroUse { span: __self_0, arguments: __self_1 } =>
                AttributeKind::MacroUse {
                    span: ::core::clone::Clone::clone(__self_0),
                    arguments: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::Marker(__self_0) =>
                AttributeKind::Marker(::core::clone::Clone::clone(__self_0)),
            AttributeKind::MayDangle(__self_0) =>
                AttributeKind::MayDangle(::core::clone::Clone::clone(__self_0)),
            AttributeKind::MoveSizeLimit {
                attr_span: __self_0, limit_span: __self_1, limit: __self_2 }
                =>
                AttributeKind::MoveSizeLimit {
                    attr_span: ::core::clone::Clone::clone(__self_0),
                    limit_span: ::core::clone::Clone::clone(__self_1),
                    limit: ::core::clone::Clone::clone(__self_2),
                },
            AttributeKind::MustNotSupend { reason: __self_0 } =>
                AttributeKind::MustNotSupend {
                    reason: ::core::clone::Clone::clone(__self_0),
                },
            AttributeKind::MustUse { span: __self_0, reason: __self_1 } =>
                AttributeKind::MustUse {
                    span: ::core::clone::Clone::clone(__self_0),
                    reason: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::Naked(__self_0) =>
                AttributeKind::Naked(::core::clone::Clone::clone(__self_0)),
            AttributeKind::NeedsAllocator => AttributeKind::NeedsAllocator,
            AttributeKind::NeedsPanicRuntime =>
                AttributeKind::NeedsPanicRuntime,
            AttributeKind::NoBuiltins => AttributeKind::NoBuiltins,
            AttributeKind::NoCore(__self_0) =>
                AttributeKind::NoCore(::core::clone::Clone::clone(__self_0)),
            AttributeKind::NoImplicitPrelude(__self_0) =>
                AttributeKind::NoImplicitPrelude(::core::clone::Clone::clone(__self_0)),
            AttributeKind::NoLink => AttributeKind::NoLink,
            AttributeKind::NoMain => AttributeKind::NoMain,
            AttributeKind::NoMangle(__self_0) =>
                AttributeKind::NoMangle(::core::clone::Clone::clone(__self_0)),
            AttributeKind::NoStd(__self_0) =>
                AttributeKind::NoStd(::core::clone::Clone::clone(__self_0)),
            AttributeKind::NonExhaustive(__self_0) =>
                AttributeKind::NonExhaustive(::core::clone::Clone::clone(__self_0)),
            AttributeKind::OnConst { span: __self_0, directive: __self_1 } =>
                AttributeKind::OnConst {
                    span: ::core::clone::Clone::clone(__self_0),
                    directive: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::OnUnimplemented {
                span: __self_0, directive: __self_1 } =>
                AttributeKind::OnUnimplemented {
                    span: ::core::clone::Clone::clone(__self_0),
                    directive: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::Optimize(__self_0, __self_1) =>
                AttributeKind::Optimize(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::PanicRuntime => AttributeKind::PanicRuntime,
            AttributeKind::PatchableFunctionEntry {
                prefix: __self_0, entry: __self_1 } =>
                AttributeKind::PatchableFunctionEntry {
                    prefix: ::core::clone::Clone::clone(__self_0),
                    entry: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::Path(__self_0, __self_1) =>
                AttributeKind::Path(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::PatternComplexityLimit {
                attr_span: __self_0, limit_span: __self_1, limit: __self_2 }
                =>
                AttributeKind::PatternComplexityLimit {
                    attr_span: ::core::clone::Clone::clone(__self_0),
                    limit_span: ::core::clone::Clone::clone(__self_1),
                    limit: ::core::clone::Clone::clone(__self_2),
                },
            AttributeKind::PinV2(__self_0) =>
                AttributeKind::PinV2(::core::clone::Clone::clone(__self_0)),
            AttributeKind::Pointee(__self_0) =>
                AttributeKind::Pointee(::core::clone::Clone::clone(__self_0)),
            AttributeKind::PreludeImport => AttributeKind::PreludeImport,
            AttributeKind::ProcMacro(__self_0) =>
                AttributeKind::ProcMacro(::core::clone::Clone::clone(__self_0)),
            AttributeKind::ProcMacroAttribute(__self_0) =>
                AttributeKind::ProcMacroAttribute(::core::clone::Clone::clone(__self_0)),
            AttributeKind::ProcMacroDerive {
                trait_name: __self_0, helper_attrs: __self_1, span: __self_2 }
                =>
                AttributeKind::ProcMacroDerive {
                    trait_name: ::core::clone::Clone::clone(__self_0),
                    helper_attrs: ::core::clone::Clone::clone(__self_1),
                    span: ::core::clone::Clone::clone(__self_2),
                },
            AttributeKind::ProfilerRuntime => AttributeKind::ProfilerRuntime,
            AttributeKind::RecursionLimit {
                attr_span: __self_0, limit_span: __self_1, limit: __self_2 }
                =>
                AttributeKind::RecursionLimit {
                    attr_span: ::core::clone::Clone::clone(__self_0),
                    limit_span: ::core::clone::Clone::clone(__self_1),
                    limit: ::core::clone::Clone::clone(__self_2),
                },
            AttributeKind::ReexportTestHarnessMain(__self_0) =>
                AttributeKind::ReexportTestHarnessMain(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RegisterTool(__self_0, __self_1) =>
                AttributeKind::RegisterTool(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::Repr { reprs: __self_0, first_span: __self_1 } =>
                AttributeKind::Repr {
                    reprs: ::core::clone::Clone::clone(__self_0),
                    first_span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::RustcAbi { attr_span: __self_0, kind: __self_1 } =>
                AttributeKind::RustcAbi {
                    attr_span: ::core::clone::Clone::clone(__self_0),
                    kind: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::RustcAlign { align: __self_0, span: __self_1 } =>
                AttributeKind::RustcAlign {
                    align: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::RustcAllocator => AttributeKind::RustcAllocator,
            AttributeKind::RustcAllocatorZeroed =>
                AttributeKind::RustcAllocatorZeroed,
            AttributeKind::RustcAllocatorZeroedVariant { name: __self_0 } =>
                AttributeKind::RustcAllocatorZeroedVariant {
                    name: ::core::clone::Clone::clone(__self_0),
                },
            AttributeKind::RustcAllowConstFnUnstable(__self_0, __self_1) =>
                AttributeKind::RustcAllowConstFnUnstable(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::RustcAllowIncoherentImpl(__self_0) =>
                AttributeKind::RustcAllowIncoherentImpl(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcAsPtr(__self_0) =>
                AttributeKind::RustcAsPtr(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcAutodiff(__self_0) =>
                AttributeKind::RustcAutodiff(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcBodyStability {
                stability: __self_0, span: __self_1 } =>
                AttributeKind::RustcBodyStability {
                    stability: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::RustcBuiltinMacro {
                builtin_name: __self_0, helper_attrs: __self_1, span: __self_2
                } =>
                AttributeKind::RustcBuiltinMacro {
                    builtin_name: ::core::clone::Clone::clone(__self_0),
                    helper_attrs: ::core::clone::Clone::clone(__self_1),
                    span: ::core::clone::Clone::clone(__self_2),
                },
            AttributeKind::RustcCaptureAnalysis =>
                AttributeKind::RustcCaptureAnalysis,
            AttributeKind::RustcCguTestAttr(__self_0) =>
                AttributeKind::RustcCguTestAttr(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcClean(__self_0) =>
                AttributeKind::RustcClean(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcCoherenceIsCore(__self_0) =>
                AttributeKind::RustcCoherenceIsCore(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcCoinductive(__self_0) =>
                AttributeKind::RustcCoinductive(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcConfusables {
                symbols: __self_0, first_span: __self_1 } =>
                AttributeKind::RustcConfusables {
                    symbols: ::core::clone::Clone::clone(__self_0),
                    first_span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::RustcConstStability {
                stability: __self_0, span: __self_1 } =>
                AttributeKind::RustcConstStability {
                    stability: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::RustcConstStableIndirect =>
                AttributeKind::RustcConstStableIndirect,
            AttributeKind::RustcConversionSuggestion =>
                AttributeKind::RustcConversionSuggestion,
            AttributeKind::RustcDeallocator =>
                AttributeKind::RustcDeallocator,
            AttributeKind::RustcDefPath(__self_0) =>
                AttributeKind::RustcDefPath(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcDelayedBugFromInsideQuery =>
                AttributeKind::RustcDelayedBugFromInsideQuery,
            AttributeKind::RustcDenyExplicitImpl(__self_0) =>
                AttributeKind::RustcDenyExplicitImpl(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcDeprecatedSafe2024 { suggestion: __self_0 } =>
                AttributeKind::RustcDeprecatedSafe2024 {
                    suggestion: ::core::clone::Clone::clone(__self_0),
                },
            AttributeKind::RustcDiagnosticItem(__self_0) =>
                AttributeKind::RustcDiagnosticItem(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcDoNotConstCheck =>
                AttributeKind::RustcDoNotConstCheck,
            AttributeKind::RustcDocPrimitive(__self_0, __self_1) =>
                AttributeKind::RustcDocPrimitive(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::RustcDummy => AttributeKind::RustcDummy,
            AttributeKind::RustcDumpDefParents =>
                AttributeKind::RustcDumpDefParents,
            AttributeKind::RustcDumpItemBounds =>
                AttributeKind::RustcDumpItemBounds,
            AttributeKind::RustcDumpPredicates =>
                AttributeKind::RustcDumpPredicates,
            AttributeKind::RustcDumpUserArgs =>
                AttributeKind::RustcDumpUserArgs,
            AttributeKind::RustcDumpVtable(__self_0) =>
                AttributeKind::RustcDumpVtable(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcDynIncompatibleTrait(__self_0) =>
                AttributeKind::RustcDynIncompatibleTrait(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcEffectiveVisibility =>
                AttributeKind::RustcEffectiveVisibility,
            AttributeKind::RustcEiiForeignItem =>
                AttributeKind::RustcEiiForeignItem,
            AttributeKind::RustcEvaluateWhereClauses =>
                AttributeKind::RustcEvaluateWhereClauses,
            AttributeKind::RustcHasIncoherentInherentImpls =>
                AttributeKind::RustcHasIncoherentInherentImpls,
            AttributeKind::RustcHiddenTypeOfOpaques =>
                AttributeKind::RustcHiddenTypeOfOpaques,
            AttributeKind::RustcIfThisChanged(__self_0, __self_1) =>
                AttributeKind::RustcIfThisChanged(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::RustcInheritOverflowChecks =>
                AttributeKind::RustcInheritOverflowChecks,
            AttributeKind::RustcInsignificantDtor =>
                AttributeKind::RustcInsignificantDtor,
            AttributeKind::RustcIntrinsic => AttributeKind::RustcIntrinsic,
            AttributeKind::RustcIntrinsicConstStableIndirect =>
                AttributeKind::RustcIntrinsicConstStableIndirect,
            AttributeKind::RustcLayout(__self_0) =>
                AttributeKind::RustcLayout(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcLayoutScalarValidRangeEnd(__self_0, __self_1)
                =>
                AttributeKind::RustcLayoutScalarValidRangeEnd(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::RustcLayoutScalarValidRangeStart(__self_0,
                __self_1) =>
                AttributeKind::RustcLayoutScalarValidRangeStart(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::RustcLegacyConstGenerics {
                fn_indexes: __self_0, attr_span: __self_1 } =>
                AttributeKind::RustcLegacyConstGenerics {
                    fn_indexes: ::core::clone::Clone::clone(__self_0),
                    attr_span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::RustcLintOptDenyFieldAccess {
                lint_message: __self_0 } =>
                AttributeKind::RustcLintOptDenyFieldAccess {
                    lint_message: ::core::clone::Clone::clone(__self_0),
                },
            AttributeKind::RustcLintOptTy => AttributeKind::RustcLintOptTy,
            AttributeKind::RustcLintQueryInstability =>
                AttributeKind::RustcLintQueryInstability,
            AttributeKind::RustcLintUntrackedQueryInformation =>
                AttributeKind::RustcLintUntrackedQueryInformation,
            AttributeKind::RustcMacroTransparency(__self_0) =>
                AttributeKind::RustcMacroTransparency(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcMain => AttributeKind::RustcMain,
            AttributeKind::RustcMir(__self_0) =>
                AttributeKind::RustcMir(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcMustImplementOneOf {
                attr_span: __self_0, fn_names: __self_1 } =>
                AttributeKind::RustcMustImplementOneOf {
                    attr_span: ::core::clone::Clone::clone(__self_0),
                    fn_names: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::RustcNeverReturnsNullPtr =>
                AttributeKind::RustcNeverReturnsNullPtr,
            AttributeKind::RustcNeverTypeOptions {
                fallback: __self_0, diverging_block_default: __self_1 } =>
                AttributeKind::RustcNeverTypeOptions {
                    fallback: ::core::clone::Clone::clone(__self_0),
                    diverging_block_default: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::RustcNoImplicitAutorefs =>
                AttributeKind::RustcNoImplicitAutorefs,
            AttributeKind::RustcNoImplicitBounds =>
                AttributeKind::RustcNoImplicitBounds,
            AttributeKind::RustcNoMirInline =>
                AttributeKind::RustcNoMirInline,
            AttributeKind::RustcNonConstTraitMethod =>
                AttributeKind::RustcNonConstTraitMethod,
            AttributeKind::RustcNonnullOptimizationGuaranteed =>
                AttributeKind::RustcNonnullOptimizationGuaranteed,
            AttributeKind::RustcNounwind => AttributeKind::RustcNounwind,
            AttributeKind::RustcObjcClass {
                classname: __self_0, span: __self_1 } =>
                AttributeKind::RustcObjcClass {
                    classname: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::RustcObjcSelector {
                methname: __self_0, span: __self_1 } =>
                AttributeKind::RustcObjcSelector {
                    methname: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::RustcObjectLifetimeDefault =>
                AttributeKind::RustcObjectLifetimeDefault,
            AttributeKind::RustcOffloadKernel =>
                AttributeKind::RustcOffloadKernel,
            AttributeKind::RustcOutlives => AttributeKind::RustcOutlives,
            AttributeKind::RustcParenSugar(__self_0) =>
                AttributeKind::RustcParenSugar(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcPassByValue(__self_0) =>
                AttributeKind::RustcPassByValue(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcPassIndirectlyInNonRusticAbis(__self_0) =>
                AttributeKind::RustcPassIndirectlyInNonRusticAbis(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcPreserveUbChecks =>
                AttributeKind::RustcPreserveUbChecks,
            AttributeKind::RustcProcMacroDecls =>
                AttributeKind::RustcProcMacroDecls,
            AttributeKind::RustcPubTransparent(__self_0) =>
                AttributeKind::RustcPubTransparent(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcReallocator =>
                AttributeKind::RustcReallocator,
            AttributeKind::RustcRegions => AttributeKind::RustcRegions,
            AttributeKind::RustcReservationImpl(__self_0, __self_1) =>
                AttributeKind::RustcReservationImpl(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::RustcScalableVector {
                element_count: __self_0, span: __self_1 } =>
                AttributeKind::RustcScalableVector {
                    element_count: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::RustcShouldNotBeCalledOnConstItems(__self_0) =>
                AttributeKind::RustcShouldNotBeCalledOnConstItems(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcSimdMonomorphizeLaneLimit(__self_0) =>
                AttributeKind::RustcSimdMonomorphizeLaneLimit(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcSkipDuringMethodDispatch {
                array: __self_0, boxed_slice: __self_1, span: __self_2 } =>
                AttributeKind::RustcSkipDuringMethodDispatch {
                    array: ::core::clone::Clone::clone(__self_0),
                    boxed_slice: ::core::clone::Clone::clone(__self_1),
                    span: ::core::clone::Clone::clone(__self_2),
                },
            AttributeKind::RustcSpecializationTrait(__self_0) =>
                AttributeKind::RustcSpecializationTrait(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcStdInternalSymbol(__self_0) =>
                AttributeKind::RustcStdInternalSymbol(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcStrictCoherence(__self_0) =>
                AttributeKind::RustcStrictCoherence(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcSymbolName(__self_0) =>
                AttributeKind::RustcSymbolName(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcTestMarker(__self_0) =>
                AttributeKind::RustcTestMarker(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcThenThisWouldNeed(__self_0, __self_1) =>
                AttributeKind::RustcThenThisWouldNeed(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
            AttributeKind::RustcTrivialFieldReads =>
                AttributeKind::RustcTrivialFieldReads,
            AttributeKind::RustcUnsafeSpecializationMarker(__self_0) =>
                AttributeKind::RustcUnsafeSpecializationMarker(::core::clone::Clone::clone(__self_0)),
            AttributeKind::RustcVariance => AttributeKind::RustcVariance,
            AttributeKind::RustcVarianceOfOpaques =>
                AttributeKind::RustcVarianceOfOpaques,
            AttributeKind::Sanitize {
                on_set: __self_0,
                off_set: __self_1,
                rtsan: __self_2,
                span: __self_3 } =>
                AttributeKind::Sanitize {
                    on_set: ::core::clone::Clone::clone(__self_0),
                    off_set: ::core::clone::Clone::clone(__self_1),
                    rtsan: ::core::clone::Clone::clone(__self_2),
                    span: ::core::clone::Clone::clone(__self_3),
                },
            AttributeKind::ShouldPanic { reason: __self_0, span: __self_1 } =>
                AttributeKind::ShouldPanic {
                    reason: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::Stability { stability: __self_0, span: __self_1 }
                =>
                AttributeKind::Stability {
                    stability: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::TargetFeature {
                features: __self_0, attr_span: __self_1, was_forced: __self_2
                } =>
                AttributeKind::TargetFeature {
                    features: ::core::clone::Clone::clone(__self_0),
                    attr_span: ::core::clone::Clone::clone(__self_1),
                    was_forced: ::core::clone::Clone::clone(__self_2),
                },
            AttributeKind::TestRunner(__self_0) =>
                AttributeKind::TestRunner(::core::clone::Clone::clone(__self_0)),
            AttributeKind::ThreadLocal => AttributeKind::ThreadLocal,
            AttributeKind::TrackCaller(__self_0) =>
                AttributeKind::TrackCaller(::core::clone::Clone::clone(__self_0)),
            AttributeKind::TypeLengthLimit {
                attr_span: __self_0, limit_span: __self_1, limit: __self_2 }
                =>
                AttributeKind::TypeLengthLimit {
                    attr_span: ::core::clone::Clone::clone(__self_0),
                    limit_span: ::core::clone::Clone::clone(__self_1),
                    limit: ::core::clone::Clone::clone(__self_2),
                },
            AttributeKind::UnstableFeatureBound(__self_0) =>
                AttributeKind::UnstableFeatureBound(::core::clone::Clone::clone(__self_0)),
            AttributeKind::Used { used_by: __self_0, span: __self_1 } =>
                AttributeKind::Used {
                    used_by: ::core::clone::Clone::clone(__self_0),
                    span: ::core::clone::Clone::clone(__self_1),
                },
            AttributeKind::WindowsSubsystem(__self_0, __self_1) =>
                AttributeKind::WindowsSubsystem(::core::clone::Clone::clone(__self_0),
                    ::core::clone::Clone::clone(__self_1)),
        }
    }
}Clone, #[automatically_derived]
impl ::core::fmt::Debug for AttributeKind {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        match self {
            AttributeKind::AllowInternalUnsafe(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "AllowInternalUnsafe", &__self_0),
            AttributeKind::AllowInternalUnstable(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "AllowInternalUnstable", __self_0, &__self_1),
            AttributeKind::AutomaticallyDerived(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "AutomaticallyDerived", &__self_0),
            AttributeKind::CfgAttrTrace =>
                ::core::fmt::Formatter::write_str(f, "CfgAttrTrace"),
            AttributeKind::CfgTrace(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "CfgTrace", &__self_0),
            AttributeKind::CfiEncoding { encoding: __self_0 } =>
                ::core::fmt::Formatter::debug_struct_field1_finish(f,
                    "CfiEncoding", "encoding", &__self_0),
            AttributeKind::Cold(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f, "Cold",
                    &__self_0),
            AttributeKind::CollapseDebugInfo(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "CollapseDebugInfo", &__self_0),
            AttributeKind::CompilerBuiltins =>
                ::core::fmt::Formatter::write_str(f, "CompilerBuiltins"),
            AttributeKind::ConstContinue(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "ConstContinue", &__self_0),
            AttributeKind::Coroutine(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "Coroutine", &__self_0),
            AttributeKind::Coverage(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "Coverage", __self_0, &__self_1),
            AttributeKind::CrateName {
                name: __self_0, name_span: __self_1, attr_span: __self_2 } =>
                ::core::fmt::Formatter::debug_struct_field3_finish(f,
                    "CrateName", "name", __self_0, "name_span", __self_1,
                    "attr_span", &__self_2),
            AttributeKind::CrateType(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "CrateType", &__self_0),
            AttributeKind::CustomMir(__self_0, __self_1, __self_2) =>
                ::core::fmt::Formatter::debug_tuple_field3_finish(f,
                    "CustomMir", __self_0, __self_1, &__self_2),
            AttributeKind::DebuggerVisualizer(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "DebuggerVisualizer", &__self_0),
            AttributeKind::DefaultLibAllocator =>
                ::core::fmt::Formatter::write_str(f, "DefaultLibAllocator"),
            AttributeKind::Deprecated { deprecation: __self_0, span: __self_1
                } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "Deprecated", "deprecation", __self_0, "span", &__self_1),
            AttributeKind::DoNotRecommend { attr_span: __self_0 } =>
                ::core::fmt::Formatter::debug_struct_field1_finish(f,
                    "DoNotRecommend", "attr_span", &__self_0),
            AttributeKind::Doc(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f, "Doc",
                    &__self_0),
            AttributeKind::DocComment {
                style: __self_0,
                kind: __self_1,
                span: __self_2,
                comment: __self_3 } =>
                ::core::fmt::Formatter::debug_struct_field4_finish(f,
                    "DocComment", "style", __self_0, "kind", __self_1, "span",
                    __self_2, "comment", &__self_3),
            AttributeKind::EiiDeclaration(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "EiiDeclaration", &__self_0),
            AttributeKind::EiiImpls(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "EiiImpls", &__self_0),
            AttributeKind::ExportName { name: __self_0, span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "ExportName", "name", __self_0, "span", &__self_1),
            AttributeKind::ExportStable =>
                ::core::fmt::Formatter::write_str(f, "ExportStable"),
            AttributeKind::Feature(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "Feature", __self_0, &__self_1),
            AttributeKind::FfiConst(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "FfiConst", &__self_0),
            AttributeKind::FfiPure(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "FfiPure", &__self_0),
            AttributeKind::Fundamental =>
                ::core::fmt::Formatter::write_str(f, "Fundamental"),
            AttributeKind::Ignore { span: __self_0, reason: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "Ignore", "span", __self_0, "reason", &__self_1),
            AttributeKind::Inline(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f, "Inline",
                    __self_0, &__self_1),
            AttributeKind::InstructionSet(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "InstructionSet", &__self_0),
            AttributeKind::Lang(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f, "Lang",
                    __self_0, &__self_1),
            AttributeKind::Link(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f, "Link",
                    __self_0, &__self_1),
            AttributeKind::LinkName { name: __self_0, span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "LinkName", "name", __self_0, "span", &__self_1),
            AttributeKind::LinkOrdinal { ordinal: __self_0, span: __self_1 }
                =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "LinkOrdinal", "ordinal", __self_0, "span", &__self_1),
            AttributeKind::LinkSection { name: __self_0, span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "LinkSection", "name", __self_0, "span", &__self_1),
            AttributeKind::Linkage(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "Linkage", __self_0, &__self_1),
            AttributeKind::LoopMatch(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "LoopMatch", &__self_0),
            AttributeKind::MacroEscape(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "MacroEscape", &__self_0),
            AttributeKind::MacroExport {
                span: __self_0, local_inner_macros: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "MacroExport", "span", __self_0, "local_inner_macros",
                    &__self_1),
            AttributeKind::MacroUse { span: __self_0, arguments: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "MacroUse", "span", __self_0, "arguments", &__self_1),
            AttributeKind::Marker(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f, "Marker",
                    &__self_0),
            AttributeKind::MayDangle(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "MayDangle", &__self_0),
            AttributeKind::MoveSizeLimit {
                attr_span: __self_0, limit_span: __self_1, limit: __self_2 }
                =>
                ::core::fmt::Formatter::debug_struct_field3_finish(f,
                    "MoveSizeLimit", "attr_span", __self_0, "limit_span",
                    __self_1, "limit", &__self_2),
            AttributeKind::MustNotSupend { reason: __self_0 } =>
                ::core::fmt::Formatter::debug_struct_field1_finish(f,
                    "MustNotSupend", "reason", &__self_0),
            AttributeKind::MustUse { span: __self_0, reason: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "MustUse", "span", __self_0, "reason", &__self_1),
            AttributeKind::Naked(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f, "Naked",
                    &__self_0),
            AttributeKind::NeedsAllocator =>
                ::core::fmt::Formatter::write_str(f, "NeedsAllocator"),
            AttributeKind::NeedsPanicRuntime =>
                ::core::fmt::Formatter::write_str(f, "NeedsPanicRuntime"),
            AttributeKind::NoBuiltins =>
                ::core::fmt::Formatter::write_str(f, "NoBuiltins"),
            AttributeKind::NoCore(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f, "NoCore",
                    &__self_0),
            AttributeKind::NoImplicitPrelude(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "NoImplicitPrelude", &__self_0),
            AttributeKind::NoLink =>
                ::core::fmt::Formatter::write_str(f, "NoLink"),
            AttributeKind::NoMain =>
                ::core::fmt::Formatter::write_str(f, "NoMain"),
            AttributeKind::NoMangle(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "NoMangle", &__self_0),
            AttributeKind::NoStd(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f, "NoStd",
                    &__self_0),
            AttributeKind::NonExhaustive(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "NonExhaustive", &__self_0),
            AttributeKind::OnConst { span: __self_0, directive: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "OnConst", "span", __self_0, "directive", &__self_1),
            AttributeKind::OnUnimplemented {
                span: __self_0, directive: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "OnUnimplemented", "span", __self_0, "directive",
                    &__self_1),
            AttributeKind::Optimize(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "Optimize", __self_0, &__self_1),
            AttributeKind::PanicRuntime =>
                ::core::fmt::Formatter::write_str(f, "PanicRuntime"),
            AttributeKind::PatchableFunctionEntry {
                prefix: __self_0, entry: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "PatchableFunctionEntry", "prefix", __self_0, "entry",
                    &__self_1),
            AttributeKind::Path(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f, "Path",
                    __self_0, &__self_1),
            AttributeKind::PatternComplexityLimit {
                attr_span: __self_0, limit_span: __self_1, limit: __self_2 }
                =>
                ::core::fmt::Formatter::debug_struct_field3_finish(f,
                    "PatternComplexityLimit", "attr_span", __self_0,
                    "limit_span", __self_1, "limit", &__self_2),
            AttributeKind::PinV2(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f, "PinV2",
                    &__self_0),
            AttributeKind::Pointee(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "Pointee", &__self_0),
            AttributeKind::PreludeImport =>
                ::core::fmt::Formatter::write_str(f, "PreludeImport"),
            AttributeKind::ProcMacro(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "ProcMacro", &__self_0),
            AttributeKind::ProcMacroAttribute(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "ProcMacroAttribute", &__self_0),
            AttributeKind::ProcMacroDerive {
                trait_name: __self_0, helper_attrs: __self_1, span: __self_2 }
                =>
                ::core::fmt::Formatter::debug_struct_field3_finish(f,
                    "ProcMacroDerive", "trait_name", __self_0, "helper_attrs",
                    __self_1, "span", &__self_2),
            AttributeKind::ProfilerRuntime =>
                ::core::fmt::Formatter::write_str(f, "ProfilerRuntime"),
            AttributeKind::RecursionLimit {
                attr_span: __self_0, limit_span: __self_1, limit: __self_2 }
                =>
                ::core::fmt::Formatter::debug_struct_field3_finish(f,
                    "RecursionLimit", "attr_span", __self_0, "limit_span",
                    __self_1, "limit", &__self_2),
            AttributeKind::ReexportTestHarnessMain(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "ReexportTestHarnessMain", &__self_0),
            AttributeKind::RegisterTool(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "RegisterTool", __self_0, &__self_1),
            AttributeKind::Repr { reprs: __self_0, first_span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f, "Repr",
                    "reprs", __self_0, "first_span", &__self_1),
            AttributeKind::RustcAbi { attr_span: __self_0, kind: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "RustcAbi", "attr_span", __self_0, "kind", &__self_1),
            AttributeKind::RustcAlign { align: __self_0, span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "RustcAlign", "align", __self_0, "span", &__self_1),
            AttributeKind::RustcAllocator =>
                ::core::fmt::Formatter::write_str(f, "RustcAllocator"),
            AttributeKind::RustcAllocatorZeroed =>
                ::core::fmt::Formatter::write_str(f, "RustcAllocatorZeroed"),
            AttributeKind::RustcAllocatorZeroedVariant { name: __self_0 } =>
                ::core::fmt::Formatter::debug_struct_field1_finish(f,
                    "RustcAllocatorZeroedVariant", "name", &__self_0),
            AttributeKind::RustcAllowConstFnUnstable(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "RustcAllowConstFnUnstable", __self_0, &__self_1),
            AttributeKind::RustcAllowIncoherentImpl(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcAllowIncoherentImpl", &__self_0),
            AttributeKind::RustcAsPtr(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcAsPtr", &__self_0),
            AttributeKind::RustcAutodiff(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcAutodiff", &__self_0),
            AttributeKind::RustcBodyStability {
                stability: __self_0, span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "RustcBodyStability", "stability", __self_0, "span",
                    &__self_1),
            AttributeKind::RustcBuiltinMacro {
                builtin_name: __self_0, helper_attrs: __self_1, span: __self_2
                } =>
                ::core::fmt::Formatter::debug_struct_field3_finish(f,
                    "RustcBuiltinMacro", "builtin_name", __self_0,
                    "helper_attrs", __self_1, "span", &__self_2),
            AttributeKind::RustcCaptureAnalysis =>
                ::core::fmt::Formatter::write_str(f, "RustcCaptureAnalysis"),
            AttributeKind::RustcCguTestAttr(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcCguTestAttr", &__self_0),
            AttributeKind::RustcClean(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcClean", &__self_0),
            AttributeKind::RustcCoherenceIsCore(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcCoherenceIsCore", &__self_0),
            AttributeKind::RustcCoinductive(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcCoinductive", &__self_0),
            AttributeKind::RustcConfusables {
                symbols: __self_0, first_span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "RustcConfusables", "symbols", __self_0, "first_span",
                    &__self_1),
            AttributeKind::RustcConstStability {
                stability: __self_0, span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "RustcConstStability", "stability", __self_0, "span",
                    &__self_1),
            AttributeKind::RustcConstStableIndirect =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcConstStableIndirect"),
            AttributeKind::RustcConversionSuggestion =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcConversionSuggestion"),
            AttributeKind::RustcDeallocator =>
                ::core::fmt::Formatter::write_str(f, "RustcDeallocator"),
            AttributeKind::RustcDefPath(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcDefPath", &__self_0),
            AttributeKind::RustcDelayedBugFromInsideQuery =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcDelayedBugFromInsideQuery"),
            AttributeKind::RustcDenyExplicitImpl(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcDenyExplicitImpl", &__self_0),
            AttributeKind::RustcDeprecatedSafe2024 { suggestion: __self_0 } =>
                ::core::fmt::Formatter::debug_struct_field1_finish(f,
                    "RustcDeprecatedSafe2024", "suggestion", &__self_0),
            AttributeKind::RustcDiagnosticItem(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcDiagnosticItem", &__self_0),
            AttributeKind::RustcDoNotConstCheck =>
                ::core::fmt::Formatter::write_str(f, "RustcDoNotConstCheck"),
            AttributeKind::RustcDocPrimitive(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "RustcDocPrimitive", __self_0, &__self_1),
            AttributeKind::RustcDummy =>
                ::core::fmt::Formatter::write_str(f, "RustcDummy"),
            AttributeKind::RustcDumpDefParents =>
                ::core::fmt::Formatter::write_str(f, "RustcDumpDefParents"),
            AttributeKind::RustcDumpItemBounds =>
                ::core::fmt::Formatter::write_str(f, "RustcDumpItemBounds"),
            AttributeKind::RustcDumpPredicates =>
                ::core::fmt::Formatter::write_str(f, "RustcDumpPredicates"),
            AttributeKind::RustcDumpUserArgs =>
                ::core::fmt::Formatter::write_str(f, "RustcDumpUserArgs"),
            AttributeKind::RustcDumpVtable(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcDumpVtable", &__self_0),
            AttributeKind::RustcDynIncompatibleTrait(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcDynIncompatibleTrait", &__self_0),
            AttributeKind::RustcEffectiveVisibility =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcEffectiveVisibility"),
            AttributeKind::RustcEiiForeignItem =>
                ::core::fmt::Formatter::write_str(f, "RustcEiiForeignItem"),
            AttributeKind::RustcEvaluateWhereClauses =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcEvaluateWhereClauses"),
            AttributeKind::RustcHasIncoherentInherentImpls =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcHasIncoherentInherentImpls"),
            AttributeKind::RustcHiddenTypeOfOpaques =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcHiddenTypeOfOpaques"),
            AttributeKind::RustcIfThisChanged(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "RustcIfThisChanged", __self_0, &__self_1),
            AttributeKind::RustcInheritOverflowChecks =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcInheritOverflowChecks"),
            AttributeKind::RustcInsignificantDtor =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcInsignificantDtor"),
            AttributeKind::RustcIntrinsic =>
                ::core::fmt::Formatter::write_str(f, "RustcIntrinsic"),
            AttributeKind::RustcIntrinsicConstStableIndirect =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcIntrinsicConstStableIndirect"),
            AttributeKind::RustcLayout(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcLayout", &__self_0),
            AttributeKind::RustcLayoutScalarValidRangeEnd(__self_0, __self_1)
                =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "RustcLayoutScalarValidRangeEnd", __self_0, &__self_1),
            AttributeKind::RustcLayoutScalarValidRangeStart(__self_0,
                __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "RustcLayoutScalarValidRangeStart", __self_0, &__self_1),
            AttributeKind::RustcLegacyConstGenerics {
                fn_indexes: __self_0, attr_span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "RustcLegacyConstGenerics", "fn_indexes", __self_0,
                    "attr_span", &__self_1),
            AttributeKind::RustcLintOptDenyFieldAccess {
                lint_message: __self_0 } =>
                ::core::fmt::Formatter::debug_struct_field1_finish(f,
                    "RustcLintOptDenyFieldAccess", "lint_message", &__self_0),
            AttributeKind::RustcLintOptTy =>
                ::core::fmt::Formatter::write_str(f, "RustcLintOptTy"),
            AttributeKind::RustcLintQueryInstability =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcLintQueryInstability"),
            AttributeKind::RustcLintUntrackedQueryInformation =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcLintUntrackedQueryInformation"),
            AttributeKind::RustcMacroTransparency(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcMacroTransparency", &__self_0),
            AttributeKind::RustcMain =>
                ::core::fmt::Formatter::write_str(f, "RustcMain"),
            AttributeKind::RustcMir(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcMir", &__self_0),
            AttributeKind::RustcMustImplementOneOf {
                attr_span: __self_0, fn_names: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "RustcMustImplementOneOf", "attr_span", __self_0,
                    "fn_names", &__self_1),
            AttributeKind::RustcNeverReturnsNullPtr =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcNeverReturnsNullPtr"),
            AttributeKind::RustcNeverTypeOptions {
                fallback: __self_0, diverging_block_default: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "RustcNeverTypeOptions", "fallback", __self_0,
                    "diverging_block_default", &__self_1),
            AttributeKind::RustcNoImplicitAutorefs =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcNoImplicitAutorefs"),
            AttributeKind::RustcNoImplicitBounds =>
                ::core::fmt::Formatter::write_str(f, "RustcNoImplicitBounds"),
            AttributeKind::RustcNoMirInline =>
                ::core::fmt::Formatter::write_str(f, "RustcNoMirInline"),
            AttributeKind::RustcNonConstTraitMethod =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcNonConstTraitMethod"),
            AttributeKind::RustcNonnullOptimizationGuaranteed =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcNonnullOptimizationGuaranteed"),
            AttributeKind::RustcNounwind =>
                ::core::fmt::Formatter::write_str(f, "RustcNounwind"),
            AttributeKind::RustcObjcClass {
                classname: __self_0, span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "RustcObjcClass", "classname", __self_0, "span", &__self_1),
            AttributeKind::RustcObjcSelector {
                methname: __self_0, span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "RustcObjcSelector", "methname", __self_0, "span",
                    &__self_1),
            AttributeKind::RustcObjectLifetimeDefault =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcObjectLifetimeDefault"),
            AttributeKind::RustcOffloadKernel =>
                ::core::fmt::Formatter::write_str(f, "RustcOffloadKernel"),
            AttributeKind::RustcOutlives =>
                ::core::fmt::Formatter::write_str(f, "RustcOutlives"),
            AttributeKind::RustcParenSugar(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcParenSugar", &__self_0),
            AttributeKind::RustcPassByValue(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcPassByValue", &__self_0),
            AttributeKind::RustcPassIndirectlyInNonRusticAbis(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcPassIndirectlyInNonRusticAbis", &__self_0),
            AttributeKind::RustcPreserveUbChecks =>
                ::core::fmt::Formatter::write_str(f, "RustcPreserveUbChecks"),
            AttributeKind::RustcProcMacroDecls =>
                ::core::fmt::Formatter::write_str(f, "RustcProcMacroDecls"),
            AttributeKind::RustcPubTransparent(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcPubTransparent", &__self_0),
            AttributeKind::RustcReallocator =>
                ::core::fmt::Formatter::write_str(f, "RustcReallocator"),
            AttributeKind::RustcRegions =>
                ::core::fmt::Formatter::write_str(f, "RustcRegions"),
            AttributeKind::RustcReservationImpl(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "RustcReservationImpl", __self_0, &__self_1),
            AttributeKind::RustcScalableVector {
                element_count: __self_0, span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "RustcScalableVector", "element_count", __self_0, "span",
                    &__self_1),
            AttributeKind::RustcShouldNotBeCalledOnConstItems(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcShouldNotBeCalledOnConstItems", &__self_0),
            AttributeKind::RustcSimdMonomorphizeLaneLimit(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcSimdMonomorphizeLaneLimit", &__self_0),
            AttributeKind::RustcSkipDuringMethodDispatch {
                array: __self_0, boxed_slice: __self_1, span: __self_2 } =>
                ::core::fmt::Formatter::debug_struct_field3_finish(f,
                    "RustcSkipDuringMethodDispatch", "array", __self_0,
                    "boxed_slice", __self_1, "span", &__self_2),
            AttributeKind::RustcSpecializationTrait(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcSpecializationTrait", &__self_0),
            AttributeKind::RustcStdInternalSymbol(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcStdInternalSymbol", &__self_0),
            AttributeKind::RustcStrictCoherence(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcStrictCoherence", &__self_0),
            AttributeKind::RustcSymbolName(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcSymbolName", &__self_0),
            AttributeKind::RustcTestMarker(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcTestMarker", &__self_0),
            AttributeKind::RustcThenThisWouldNeed(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "RustcThenThisWouldNeed", __self_0, &__self_1),
            AttributeKind::RustcTrivialFieldReads =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcTrivialFieldReads"),
            AttributeKind::RustcUnsafeSpecializationMarker(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "RustcUnsafeSpecializationMarker", &__self_0),
            AttributeKind::RustcVariance =>
                ::core::fmt::Formatter::write_str(f, "RustcVariance"),
            AttributeKind::RustcVarianceOfOpaques =>
                ::core::fmt::Formatter::write_str(f,
                    "RustcVarianceOfOpaques"),
            AttributeKind::Sanitize {
                on_set: __self_0,
                off_set: __self_1,
                rtsan: __self_2,
                span: __self_3 } =>
                ::core::fmt::Formatter::debug_struct_field4_finish(f,
                    "Sanitize", "on_set", __self_0, "off_set", __self_1,
                    "rtsan", __self_2, "span", &__self_3),
            AttributeKind::ShouldPanic { reason: __self_0, span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "ShouldPanic", "reason", __self_0, "span", &__self_1),
            AttributeKind::Stability { stability: __self_0, span: __self_1 }
                =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f,
                    "Stability", "stability", __self_0, "span", &__self_1),
            AttributeKind::TargetFeature {
                features: __self_0, attr_span: __self_1, was_forced: __self_2
                } =>
                ::core::fmt::Formatter::debug_struct_field3_finish(f,
                    "TargetFeature", "features", __self_0, "attr_span",
                    __self_1, "was_forced", &__self_2),
            AttributeKind::TestRunner(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "TestRunner", &__self_0),
            AttributeKind::ThreadLocal =>
                ::core::fmt::Formatter::write_str(f, "ThreadLocal"),
            AttributeKind::TrackCaller(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "TrackCaller", &__self_0),
            AttributeKind::TypeLengthLimit {
                attr_span: __self_0, limit_span: __self_1, limit: __self_2 }
                =>
                ::core::fmt::Formatter::debug_struct_field3_finish(f,
                    "TypeLengthLimit", "attr_span", __self_0, "limit_span",
                    __self_1, "limit", &__self_2),
            AttributeKind::UnstableFeatureBound(__self_0) =>
                ::core::fmt::Formatter::debug_tuple_field1_finish(f,
                    "UnstableFeatureBound", &__self_0),
            AttributeKind::Used { used_by: __self_0, span: __self_1 } =>
                ::core::fmt::Formatter::debug_struct_field2_finish(f, "Used",
                    "used_by", __self_0, "span", &__self_1),
            AttributeKind::WindowsSubsystem(__self_0, __self_1) =>
                ::core::fmt::Formatter::debug_tuple_field2_finish(f,
                    "WindowsSubsystem", __self_0, &__self_1),
        }
    }
}Debug, const _: () =
    {
        impl<__CTX> ::rustc_data_structures::stable_hasher::HashStable<__CTX>
            for AttributeKind where __CTX: crate::HashStableContext {
            #[inline]
            fn hash_stable(&self, __hcx: &mut __CTX,
                __hasher:
                    &mut ::rustc_data_structures::stable_hasher::StableHasher) {
                ::std::mem::discriminant(self).hash_stable(__hcx, __hasher);
                match *self {
                    AttributeKind::AllowInternalUnsafe(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::AllowInternalUnstable(ref __binding_0,
                        ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::AutomaticallyDerived(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::CfgAttrTrace => {}
                    AttributeKind::CfgTrace(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::CfiEncoding { encoding: ref __binding_0 } =>
                        {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Cold(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::CollapseDebugInfo(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::CompilerBuiltins => {}
                    AttributeKind::ConstContinue(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Coroutine(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Coverage(ref __binding_0, ref __binding_1) =>
                        {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::CrateName {
                        name: ref __binding_0,
                        name_span: ref __binding_1,
                        attr_span: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::CrateType(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::CustomMir(ref __binding_0, ref __binding_1,
                        ref __binding_2) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::DebuggerVisualizer(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::DefaultLibAllocator => {}
                    AttributeKind::Deprecated {
                        deprecation: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::DoNotRecommend { attr_span: ref __binding_0 }
                        => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Doc(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::DocComment {
                        style: ref __binding_0,
                        kind: ref __binding_1,
                        span: ref __binding_2,
                        comment: ref __binding_3 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                        { __binding_3.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::EiiDeclaration(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::EiiImpls(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::ExportName {
                        name: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::ExportStable => {}
                    AttributeKind::Feature(ref __binding_0, ref __binding_1) =>
                        {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::FfiConst(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::FfiPure(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Fundamental => {}
                    AttributeKind::Ignore {
                        span: ref __binding_0, reason: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Inline(ref __binding_0, ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::InstructionSet(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Lang(ref __binding_0, ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Link(ref __binding_0, ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::LinkName {
                        name: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::LinkOrdinal {
                        ordinal: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::LinkSection {
                        name: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Linkage(ref __binding_0, ref __binding_1) =>
                        {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::LoopMatch(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::MacroEscape(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::MacroExport {
                        span: ref __binding_0, local_inner_macros: ref __binding_1 }
                        => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::MacroUse {
                        span: ref __binding_0, arguments: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Marker(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::MayDangle(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::MoveSizeLimit {
                        attr_span: ref __binding_0,
                        limit_span: ref __binding_1,
                        limit: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::MustNotSupend { reason: ref __binding_0 } =>
                        {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::MustUse {
                        span: ref __binding_0, reason: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Naked(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::NeedsAllocator => {}
                    AttributeKind::NeedsPanicRuntime => {}
                    AttributeKind::NoBuiltins => {}
                    AttributeKind::NoCore(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::NoImplicitPrelude(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::NoLink => {}
                    AttributeKind::NoMain => {}
                    AttributeKind::NoMangle(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::NoStd(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::NonExhaustive(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::OnConst {
                        span: ref __binding_0, directive: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::OnUnimplemented {
                        span: ref __binding_0, directive: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Optimize(ref __binding_0, ref __binding_1) =>
                        {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::PanicRuntime => {}
                    AttributeKind::PatchableFunctionEntry {
                        prefix: ref __binding_0, entry: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Path(ref __binding_0, ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::PatternComplexityLimit {
                        attr_span: ref __binding_0,
                        limit_span: ref __binding_1,
                        limit: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::PinV2(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Pointee(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::PreludeImport => {}
                    AttributeKind::ProcMacro(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::ProcMacroAttribute(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::ProcMacroDerive {
                        trait_name: ref __binding_0,
                        helper_attrs: ref __binding_1,
                        span: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::ProfilerRuntime => {}
                    AttributeKind::RecursionLimit {
                        attr_span: ref __binding_0,
                        limit_span: ref __binding_1,
                        limit: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::ReexportTestHarnessMain(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RegisterTool(ref __binding_0,
                        ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Repr {
                        reprs: ref __binding_0, first_span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcAbi {
                        attr_span: ref __binding_0, kind: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcAlign {
                        align: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcAllocator => {}
                    AttributeKind::RustcAllocatorZeroed => {}
                    AttributeKind::RustcAllocatorZeroedVariant {
                        name: ref __binding_0 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcAllowConstFnUnstable(ref __binding_0,
                        ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcAllowIncoherentImpl(ref __binding_0) =>
                        {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcAsPtr(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcAutodiff(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcBodyStability {
                        stability: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcBuiltinMacro {
                        builtin_name: ref __binding_0,
                        helper_attrs: ref __binding_1,
                        span: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcCaptureAnalysis => {}
                    AttributeKind::RustcCguTestAttr(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcClean(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcCoherenceIsCore(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcCoinductive(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcConfusables {
                        symbols: ref __binding_0, first_span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcConstStability {
                        stability: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcConstStableIndirect => {}
                    AttributeKind::RustcConversionSuggestion => {}
                    AttributeKind::RustcDeallocator => {}
                    AttributeKind::RustcDefPath(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcDelayedBugFromInsideQuery => {}
                    AttributeKind::RustcDenyExplicitImpl(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcDeprecatedSafe2024 {
                        suggestion: ref __binding_0 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcDiagnosticItem(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcDoNotConstCheck => {}
                    AttributeKind::RustcDocPrimitive(ref __binding_0,
                        ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcDummy => {}
                    AttributeKind::RustcDumpDefParents => {}
                    AttributeKind::RustcDumpItemBounds => {}
                    AttributeKind::RustcDumpPredicates => {}
                    AttributeKind::RustcDumpUserArgs => {}
                    AttributeKind::RustcDumpVtable(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcDynIncompatibleTrait(ref __binding_0) =>
                        {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcEffectiveVisibility => {}
                    AttributeKind::RustcEiiForeignItem => {}
                    AttributeKind::RustcEvaluateWhereClauses => {}
                    AttributeKind::RustcHasIncoherentInherentImpls => {}
                    AttributeKind::RustcHiddenTypeOfOpaques => {}
                    AttributeKind::RustcIfThisChanged(ref __binding_0,
                        ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcInheritOverflowChecks => {}
                    AttributeKind::RustcInsignificantDtor => {}
                    AttributeKind::RustcIntrinsic => {}
                    AttributeKind::RustcIntrinsicConstStableIndirect => {}
                    AttributeKind::RustcLayout(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcLayoutScalarValidRangeEnd(ref __binding_0,
                        ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcLayoutScalarValidRangeStart(ref __binding_0,
                        ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcLegacyConstGenerics {
                        fn_indexes: ref __binding_0, attr_span: ref __binding_1 } =>
                        {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcLintOptDenyFieldAccess {
                        lint_message: ref __binding_0 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcLintOptTy => {}
                    AttributeKind::RustcLintQueryInstability => {}
                    AttributeKind::RustcLintUntrackedQueryInformation => {}
                    AttributeKind::RustcMacroTransparency(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcMain => {}
                    AttributeKind::RustcMir(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcMustImplementOneOf {
                        attr_span: ref __binding_0, fn_names: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcNeverReturnsNullPtr => {}
                    AttributeKind::RustcNeverTypeOptions {
                        fallback: ref __binding_0,
                        diverging_block_default: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcNoImplicitAutorefs => {}
                    AttributeKind::RustcNoImplicitBounds => {}
                    AttributeKind::RustcNoMirInline => {}
                    AttributeKind::RustcNonConstTraitMethod => {}
                    AttributeKind::RustcNonnullOptimizationGuaranteed => {}
                    AttributeKind::RustcNounwind => {}
                    AttributeKind::RustcObjcClass {
                        classname: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcObjcSelector {
                        methname: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcObjectLifetimeDefault => {}
                    AttributeKind::RustcOffloadKernel => {}
                    AttributeKind::RustcOutlives => {}
                    AttributeKind::RustcParenSugar(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcPassByValue(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcPassIndirectlyInNonRusticAbis(ref __binding_0)
                        => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcPreserveUbChecks => {}
                    AttributeKind::RustcProcMacroDecls => {}
                    AttributeKind::RustcPubTransparent(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcReallocator => {}
                    AttributeKind::RustcRegions => {}
                    AttributeKind::RustcReservationImpl(ref __binding_0,
                        ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcScalableVector {
                        element_count: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcShouldNotBeCalledOnConstItems(ref __binding_0)
                        => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcSimdMonomorphizeLaneLimit(ref __binding_0)
                        => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcSkipDuringMethodDispatch {
                        array: ref __binding_0,
                        boxed_slice: ref __binding_1,
                        span: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcSpecializationTrait(ref __binding_0) =>
                        {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcStdInternalSymbol(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcStrictCoherence(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcSymbolName(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcTestMarker(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcThenThisWouldNeed(ref __binding_0,
                        ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcTrivialFieldReads => {}
                    AttributeKind::RustcUnsafeSpecializationMarker(ref __binding_0)
                        => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::RustcVariance => {}
                    AttributeKind::RustcVarianceOfOpaques => {}
                    AttributeKind::Sanitize {
                        on_set: ref __binding_0,
                        off_set: ref __binding_1,
                        rtsan: ref __binding_2,
                        span: ref __binding_3 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                        { __binding_3.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::ShouldPanic {
                        reason: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Stability {
                        stability: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::TargetFeature {
                        features: ref __binding_0,
                        attr_span: ref __binding_1,
                        was_forced: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::TestRunner(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::ThreadLocal => {}
                    AttributeKind::TrackCaller(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::TypeLengthLimit {
                        attr_span: ref __binding_0,
                        limit_span: ref __binding_1,
                        limit: ref __binding_2 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                        { __binding_2.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::UnstableFeatureBound(ref __binding_0) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::Used {
                        used_by: ref __binding_0, span: ref __binding_1 } => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                    AttributeKind::WindowsSubsystem(ref __binding_0,
                        ref __binding_1) => {
                        { __binding_0.hash_stable(__hcx, __hasher); }
                        { __binding_1.hash_stable(__hcx, __hasher); }
                    }
                }
            }
        }
    };HashStable_Generic, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for AttributeKind {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        AttributeKind::AllowInternalUnsafe(ref __binding_0) => {
                            0usize
                        }
                        AttributeKind::AllowInternalUnstable(ref __binding_0,
                            ref __binding_1) => {
                            1usize
                        }
                        AttributeKind::AutomaticallyDerived(ref __binding_0) => {
                            2usize
                        }
                        AttributeKind::CfgAttrTrace => { 3usize }
                        AttributeKind::CfgTrace(ref __binding_0) => { 4usize }
                        AttributeKind::CfiEncoding { encoding: ref __binding_0 } =>
                            {
                            5usize
                        }
                        AttributeKind::Cold(ref __binding_0) => { 6usize }
                        AttributeKind::CollapseDebugInfo(ref __binding_0) => {
                            7usize
                        }
                        AttributeKind::CompilerBuiltins => { 8usize }
                        AttributeKind::ConstContinue(ref __binding_0) => { 9usize }
                        AttributeKind::Coroutine(ref __binding_0) => { 10usize }
                        AttributeKind::Coverage(ref __binding_0, ref __binding_1) =>
                            {
                            11usize
                        }
                        AttributeKind::CrateName {
                            name: ref __binding_0,
                            name_span: ref __binding_1,
                            attr_span: ref __binding_2 } => {
                            12usize
                        }
                        AttributeKind::CrateType(ref __binding_0) => { 13usize }
                        AttributeKind::CustomMir(ref __binding_0, ref __binding_1,
                            ref __binding_2) => {
                            14usize
                        }
                        AttributeKind::DebuggerVisualizer(ref __binding_0) => {
                            15usize
                        }
                        AttributeKind::DefaultLibAllocator => { 16usize }
                        AttributeKind::Deprecated {
                            deprecation: ref __binding_0, span: ref __binding_1 } => {
                            17usize
                        }
                        AttributeKind::DoNotRecommend { attr_span: ref __binding_0 }
                            => {
                            18usize
                        }
                        AttributeKind::Doc(ref __binding_0) => { 19usize }
                        AttributeKind::DocComment {
                            style: ref __binding_0,
                            kind: ref __binding_1,
                            span: ref __binding_2,
                            comment: ref __binding_3 } => {
                            20usize
                        }
                        AttributeKind::EiiDeclaration(ref __binding_0) => {
                            21usize
                        }
                        AttributeKind::EiiImpls(ref __binding_0) => { 22usize }
                        AttributeKind::ExportName {
                            name: ref __binding_0, span: ref __binding_1 } => {
                            23usize
                        }
                        AttributeKind::ExportStable => { 24usize }
                        AttributeKind::Feature(ref __binding_0, ref __binding_1) =>
                            {
                            25usize
                        }
                        AttributeKind::FfiConst(ref __binding_0) => { 26usize }
                        AttributeKind::FfiPure(ref __binding_0) => { 27usize }
                        AttributeKind::Fundamental => { 28usize }
                        AttributeKind::Ignore {
                            span: ref __binding_0, reason: ref __binding_1 } => {
                            29usize
                        }
                        AttributeKind::Inline(ref __binding_0, ref __binding_1) => {
                            30usize
                        }
                        AttributeKind::InstructionSet(ref __binding_0) => {
                            31usize
                        }
                        AttributeKind::Lang(ref __binding_0, ref __binding_1) => {
                            32usize
                        }
                        AttributeKind::Link(ref __binding_0, ref __binding_1) => {
                            33usize
                        }
                        AttributeKind::LinkName {
                            name: ref __binding_0, span: ref __binding_1 } => {
                            34usize
                        }
                        AttributeKind::LinkOrdinal {
                            ordinal: ref __binding_0, span: ref __binding_1 } => {
                            35usize
                        }
                        AttributeKind::LinkSection {
                            name: ref __binding_0, span: ref __binding_1 } => {
                            36usize
                        }
                        AttributeKind::Linkage(ref __binding_0, ref __binding_1) =>
                            {
                            37usize
                        }
                        AttributeKind::LoopMatch(ref __binding_0) => { 38usize }
                        AttributeKind::MacroEscape(ref __binding_0) => { 39usize }
                        AttributeKind::MacroExport {
                            span: ref __binding_0, local_inner_macros: ref __binding_1 }
                            => {
                            40usize
                        }
                        AttributeKind::MacroUse {
                            span: ref __binding_0, arguments: ref __binding_1 } => {
                            41usize
                        }
                        AttributeKind::Marker(ref __binding_0) => { 42usize }
                        AttributeKind::MayDangle(ref __binding_0) => { 43usize }
                        AttributeKind::MoveSizeLimit {
                            attr_span: ref __binding_0,
                            limit_span: ref __binding_1,
                            limit: ref __binding_2 } => {
                            44usize
                        }
                        AttributeKind::MustNotSupend { reason: ref __binding_0 } =>
                            {
                            45usize
                        }
                        AttributeKind::MustUse {
                            span: ref __binding_0, reason: ref __binding_1 } => {
                            46usize
                        }
                        AttributeKind::Naked(ref __binding_0) => { 47usize }
                        AttributeKind::NeedsAllocator => { 48usize }
                        AttributeKind::NeedsPanicRuntime => { 49usize }
                        AttributeKind::NoBuiltins => { 50usize }
                        AttributeKind::NoCore(ref __binding_0) => { 51usize }
                        AttributeKind::NoImplicitPrelude(ref __binding_0) => {
                            52usize
                        }
                        AttributeKind::NoLink => { 53usize }
                        AttributeKind::NoMain => { 54usize }
                        AttributeKind::NoMangle(ref __binding_0) => { 55usize }
                        AttributeKind::NoStd(ref __binding_0) => { 56usize }
                        AttributeKind::NonExhaustive(ref __binding_0) => { 57usize }
                        AttributeKind::OnConst {
                            span: ref __binding_0, directive: ref __binding_1 } => {
                            58usize
                        }
                        AttributeKind::OnUnimplemented {
                            span: ref __binding_0, directive: ref __binding_1 } => {
                            59usize
                        }
                        AttributeKind::Optimize(ref __binding_0, ref __binding_1) =>
                            {
                            60usize
                        }
                        AttributeKind::PanicRuntime => { 61usize }
                        AttributeKind::PatchableFunctionEntry {
                            prefix: ref __binding_0, entry: ref __binding_1 } => {
                            62usize
                        }
                        AttributeKind::Path(ref __binding_0, ref __binding_1) => {
                            63usize
                        }
                        AttributeKind::PatternComplexityLimit {
                            attr_span: ref __binding_0,
                            limit_span: ref __binding_1,
                            limit: ref __binding_2 } => {
                            64usize
                        }
                        AttributeKind::PinV2(ref __binding_0) => { 65usize }
                        AttributeKind::Pointee(ref __binding_0) => { 66usize }
                        AttributeKind::PreludeImport => { 67usize }
                        AttributeKind::ProcMacro(ref __binding_0) => { 68usize }
                        AttributeKind::ProcMacroAttribute(ref __binding_0) => {
                            69usize
                        }
                        AttributeKind::ProcMacroDerive {
                            trait_name: ref __binding_0,
                            helper_attrs: ref __binding_1,
                            span: ref __binding_2 } => {
                            70usize
                        }
                        AttributeKind::ProfilerRuntime => { 71usize }
                        AttributeKind::RecursionLimit {
                            attr_span: ref __binding_0,
                            limit_span: ref __binding_1,
                            limit: ref __binding_2 } => {
                            72usize
                        }
                        AttributeKind::ReexportTestHarnessMain(ref __binding_0) => {
                            73usize
                        }
                        AttributeKind::RegisterTool(ref __binding_0,
                            ref __binding_1) => {
                            74usize
                        }
                        AttributeKind::Repr {
                            reprs: ref __binding_0, first_span: ref __binding_1 } => {
                            75usize
                        }
                        AttributeKind::RustcAbi {
                            attr_span: ref __binding_0, kind: ref __binding_1 } => {
                            76usize
                        }
                        AttributeKind::RustcAlign {
                            align: ref __binding_0, span: ref __binding_1 } => {
                            77usize
                        }
                        AttributeKind::RustcAllocator => { 78usize }
                        AttributeKind::RustcAllocatorZeroed => { 79usize }
                        AttributeKind::RustcAllocatorZeroedVariant {
                            name: ref __binding_0 } => {
                            80usize
                        }
                        AttributeKind::RustcAllowConstFnUnstable(ref __binding_0,
                            ref __binding_1) => {
                            81usize
                        }
                        AttributeKind::RustcAllowIncoherentImpl(ref __binding_0) =>
                            {
                            82usize
                        }
                        AttributeKind::RustcAsPtr(ref __binding_0) => { 83usize }
                        AttributeKind::RustcAutodiff(ref __binding_0) => { 84usize }
                        AttributeKind::RustcBodyStability {
                            stability: ref __binding_0, span: ref __binding_1 } => {
                            85usize
                        }
                        AttributeKind::RustcBuiltinMacro {
                            builtin_name: ref __binding_0,
                            helper_attrs: ref __binding_1,
                            span: ref __binding_2 } => {
                            86usize
                        }
                        AttributeKind::RustcCaptureAnalysis => { 87usize }
                        AttributeKind::RustcCguTestAttr(ref __binding_0) => {
                            88usize
                        }
                        AttributeKind::RustcClean(ref __binding_0) => { 89usize }
                        AttributeKind::RustcCoherenceIsCore(ref __binding_0) => {
                            90usize
                        }
                        AttributeKind::RustcCoinductive(ref __binding_0) => {
                            91usize
                        }
                        AttributeKind::RustcConfusables {
                            symbols: ref __binding_0, first_span: ref __binding_1 } => {
                            92usize
                        }
                        AttributeKind::RustcConstStability {
                            stability: ref __binding_0, span: ref __binding_1 } => {
                            93usize
                        }
                        AttributeKind::RustcConstStableIndirect => { 94usize }
                        AttributeKind::RustcConversionSuggestion => { 95usize }
                        AttributeKind::RustcDeallocator => { 96usize }
                        AttributeKind::RustcDefPath(ref __binding_0) => { 97usize }
                        AttributeKind::RustcDelayedBugFromInsideQuery => { 98usize }
                        AttributeKind::RustcDenyExplicitImpl(ref __binding_0) => {
                            99usize
                        }
                        AttributeKind::RustcDeprecatedSafe2024 {
                            suggestion: ref __binding_0 } => {
                            100usize
                        }
                        AttributeKind::RustcDiagnosticItem(ref __binding_0) => {
                            101usize
                        }
                        AttributeKind::RustcDoNotConstCheck => { 102usize }
                        AttributeKind::RustcDocPrimitive(ref __binding_0,
                            ref __binding_1) => {
                            103usize
                        }
                        AttributeKind::RustcDummy => { 104usize }
                        AttributeKind::RustcDumpDefParents => { 105usize }
                        AttributeKind::RustcDumpItemBounds => { 106usize }
                        AttributeKind::RustcDumpPredicates => { 107usize }
                        AttributeKind::RustcDumpUserArgs => { 108usize }
                        AttributeKind::RustcDumpVtable(ref __binding_0) => {
                            109usize
                        }
                        AttributeKind::RustcDynIncompatibleTrait(ref __binding_0) =>
                            {
                            110usize
                        }
                        AttributeKind::RustcEffectiveVisibility => { 111usize }
                        AttributeKind::RustcEiiForeignItem => { 112usize }
                        AttributeKind::RustcEvaluateWhereClauses => { 113usize }
                        AttributeKind::RustcHasIncoherentInherentImpls => {
                            114usize
                        }
                        AttributeKind::RustcHiddenTypeOfOpaques => { 115usize }
                        AttributeKind::RustcIfThisChanged(ref __binding_0,
                            ref __binding_1) => {
                            116usize
                        }
                        AttributeKind::RustcInheritOverflowChecks => { 117usize }
                        AttributeKind::RustcInsignificantDtor => { 118usize }
                        AttributeKind::RustcIntrinsic => { 119usize }
                        AttributeKind::RustcIntrinsicConstStableIndirect => {
                            120usize
                        }
                        AttributeKind::RustcLayout(ref __binding_0) => { 121usize }
                        AttributeKind::RustcLayoutScalarValidRangeEnd(ref __binding_0,
                            ref __binding_1) => {
                            122usize
                        }
                        AttributeKind::RustcLayoutScalarValidRangeStart(ref __binding_0,
                            ref __binding_1) => {
                            123usize
                        }
                        AttributeKind::RustcLegacyConstGenerics {
                            fn_indexes: ref __binding_0, attr_span: ref __binding_1 } =>
                            {
                            124usize
                        }
                        AttributeKind::RustcLintOptDenyFieldAccess {
                            lint_message: ref __binding_0 } => {
                            125usize
                        }
                        AttributeKind::RustcLintOptTy => { 126usize }
                        AttributeKind::RustcLintQueryInstability => { 127usize }
                        AttributeKind::RustcLintUntrackedQueryInformation => {
                            128usize
                        }
                        AttributeKind::RustcMacroTransparency(ref __binding_0) => {
                            129usize
                        }
                        AttributeKind::RustcMain => { 130usize }
                        AttributeKind::RustcMir(ref __binding_0) => { 131usize }
                        AttributeKind::RustcMustImplementOneOf {
                            attr_span: ref __binding_0, fn_names: ref __binding_1 } => {
                            132usize
                        }
                        AttributeKind::RustcNeverReturnsNullPtr => { 133usize }
                        AttributeKind::RustcNeverTypeOptions {
                            fallback: ref __binding_0,
                            diverging_block_default: ref __binding_1 } => {
                            134usize
                        }
                        AttributeKind::RustcNoImplicitAutorefs => { 135usize }
                        AttributeKind::RustcNoImplicitBounds => { 136usize }
                        AttributeKind::RustcNoMirInline => { 137usize }
                        AttributeKind::RustcNonConstTraitMethod => { 138usize }
                        AttributeKind::RustcNonnullOptimizationGuaranteed => {
                            139usize
                        }
                        AttributeKind::RustcNounwind => { 140usize }
                        AttributeKind::RustcObjcClass {
                            classname: ref __binding_0, span: ref __binding_1 } => {
                            141usize
                        }
                        AttributeKind::RustcObjcSelector {
                            methname: ref __binding_0, span: ref __binding_1 } => {
                            142usize
                        }
                        AttributeKind::RustcObjectLifetimeDefault => { 143usize }
                        AttributeKind::RustcOffloadKernel => { 144usize }
                        AttributeKind::RustcOutlives => { 145usize }
                        AttributeKind::RustcParenSugar(ref __binding_0) => {
                            146usize
                        }
                        AttributeKind::RustcPassByValue(ref __binding_0) => {
                            147usize
                        }
                        AttributeKind::RustcPassIndirectlyInNonRusticAbis(ref __binding_0)
                            => {
                            148usize
                        }
                        AttributeKind::RustcPreserveUbChecks => { 149usize }
                        AttributeKind::RustcProcMacroDecls => { 150usize }
                        AttributeKind::RustcPubTransparent(ref __binding_0) => {
                            151usize
                        }
                        AttributeKind::RustcReallocator => { 152usize }
                        AttributeKind::RustcRegions => { 153usize }
                        AttributeKind::RustcReservationImpl(ref __binding_0,
                            ref __binding_1) => {
                            154usize
                        }
                        AttributeKind::RustcScalableVector {
                            element_count: ref __binding_0, span: ref __binding_1 } => {
                            155usize
                        }
                        AttributeKind::RustcShouldNotBeCalledOnConstItems(ref __binding_0)
                            => {
                            156usize
                        }
                        AttributeKind::RustcSimdMonomorphizeLaneLimit(ref __binding_0)
                            => {
                            157usize
                        }
                        AttributeKind::RustcSkipDuringMethodDispatch {
                            array: ref __binding_0,
                            boxed_slice: ref __binding_1,
                            span: ref __binding_2 } => {
                            158usize
                        }
                        AttributeKind::RustcSpecializationTrait(ref __binding_0) =>
                            {
                            159usize
                        }
                        AttributeKind::RustcStdInternalSymbol(ref __binding_0) => {
                            160usize
                        }
                        AttributeKind::RustcStrictCoherence(ref __binding_0) => {
                            161usize
                        }
                        AttributeKind::RustcSymbolName(ref __binding_0) => {
                            162usize
                        }
                        AttributeKind::RustcTestMarker(ref __binding_0) => {
                            163usize
                        }
                        AttributeKind::RustcThenThisWouldNeed(ref __binding_0,
                            ref __binding_1) => {
                            164usize
                        }
                        AttributeKind::RustcTrivialFieldReads => { 165usize }
                        AttributeKind::RustcUnsafeSpecializationMarker(ref __binding_0)
                            => {
                            166usize
                        }
                        AttributeKind::RustcVariance => { 167usize }
                        AttributeKind::RustcVarianceOfOpaques => { 168usize }
                        AttributeKind::Sanitize {
                            on_set: ref __binding_0,
                            off_set: ref __binding_1,
                            rtsan: ref __binding_2,
                            span: ref __binding_3 } => {
                            169usize
                        }
                        AttributeKind::ShouldPanic {
                            reason: ref __binding_0, span: ref __binding_1 } => {
                            170usize
                        }
                        AttributeKind::Stability {
                            stability: ref __binding_0, span: ref __binding_1 } => {
                            171usize
                        }
                        AttributeKind::TargetFeature {
                            features: ref __binding_0,
                            attr_span: ref __binding_1,
                            was_forced: ref __binding_2 } => {
                            172usize
                        }
                        AttributeKind::TestRunner(ref __binding_0) => { 173usize }
                        AttributeKind::ThreadLocal => { 174usize }
                        AttributeKind::TrackCaller(ref __binding_0) => { 175usize }
                        AttributeKind::TypeLengthLimit {
                            attr_span: ref __binding_0,
                            limit_span: ref __binding_1,
                            limit: ref __binding_2 } => {
                            176usize
                        }
                        AttributeKind::UnstableFeatureBound(ref __binding_0) => {
                            177usize
                        }
                        AttributeKind::Used {
                            used_by: ref __binding_0, span: ref __binding_1 } => {
                            178usize
                        }
                        AttributeKind::WindowsSubsystem(ref __binding_0,
                            ref __binding_1) => {
                            179usize
                        }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    AttributeKind::AllowInternalUnsafe(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::AllowInternalUnstable(ref __binding_0,
                        ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::AutomaticallyDerived(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::CfgAttrTrace => {}
                    AttributeKind::CfgTrace(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::CfiEncoding { encoding: ref __binding_0 } =>
                        {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::Cold(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::CollapseDebugInfo(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::CompilerBuiltins => {}
                    AttributeKind::ConstContinue(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::Coroutine(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::Coverage(ref __binding_0, ref __binding_1) =>
                        {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::CrateName {
                        name: ref __binding_0,
                        name_span: ref __binding_1,
                        attr_span: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                    AttributeKind::CrateType(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::CustomMir(ref __binding_0, ref __binding_1,
                        ref __binding_2) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                    AttributeKind::DebuggerVisualizer(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::DefaultLibAllocator => {}
                    AttributeKind::Deprecated {
                        deprecation: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::DoNotRecommend { attr_span: ref __binding_0 }
                        => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::Doc(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::DocComment {
                        style: ref __binding_0,
                        kind: ref __binding_1,
                        span: ref __binding_2,
                        comment: ref __binding_3 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_3,
                            __encoder);
                    }
                    AttributeKind::EiiDeclaration(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::EiiImpls(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::ExportName {
                        name: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::ExportStable => {}
                    AttributeKind::Feature(ref __binding_0, ref __binding_1) =>
                        {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::FfiConst(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::FfiPure(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::Fundamental => {}
                    AttributeKind::Ignore {
                        span: ref __binding_0, reason: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::Inline(ref __binding_0, ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::InstructionSet(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::Lang(ref __binding_0, ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::Link(ref __binding_0, ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::LinkName {
                        name: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::LinkOrdinal {
                        ordinal: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::LinkSection {
                        name: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::Linkage(ref __binding_0, ref __binding_1) =>
                        {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::LoopMatch(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::MacroEscape(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::MacroExport {
                        span: ref __binding_0, local_inner_macros: ref __binding_1 }
                        => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::MacroUse {
                        span: ref __binding_0, arguments: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::Marker(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::MayDangle(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::MoveSizeLimit {
                        attr_span: ref __binding_0,
                        limit_span: ref __binding_1,
                        limit: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                    AttributeKind::MustNotSupend { reason: ref __binding_0 } =>
                        {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::MustUse {
                        span: ref __binding_0, reason: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::Naked(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::NeedsAllocator => {}
                    AttributeKind::NeedsPanicRuntime => {}
                    AttributeKind::NoBuiltins => {}
                    AttributeKind::NoCore(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::NoImplicitPrelude(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::NoLink => {}
                    AttributeKind::NoMain => {}
                    AttributeKind::NoMangle(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::NoStd(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::NonExhaustive(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::OnConst {
                        span: ref __binding_0, directive: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::OnUnimplemented {
                        span: ref __binding_0, directive: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::Optimize(ref __binding_0, ref __binding_1) =>
                        {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::PanicRuntime => {}
                    AttributeKind::PatchableFunctionEntry {
                        prefix: ref __binding_0, entry: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::Path(ref __binding_0, ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::PatternComplexityLimit {
                        attr_span: ref __binding_0,
                        limit_span: ref __binding_1,
                        limit: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                    AttributeKind::PinV2(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::Pointee(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::PreludeImport => {}
                    AttributeKind::ProcMacro(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::ProcMacroAttribute(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::ProcMacroDerive {
                        trait_name: ref __binding_0,
                        helper_attrs: ref __binding_1,
                        span: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                    AttributeKind::ProfilerRuntime => {}
                    AttributeKind::RecursionLimit {
                        attr_span: ref __binding_0,
                        limit_span: ref __binding_1,
                        limit: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                    AttributeKind::ReexportTestHarnessMain(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RegisterTool(ref __binding_0,
                        ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::Repr {
                        reprs: ref __binding_0, first_span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcAbi {
                        attr_span: ref __binding_0, kind: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcAlign {
                        align: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcAllocator => {}
                    AttributeKind::RustcAllocatorZeroed => {}
                    AttributeKind::RustcAllocatorZeroedVariant {
                        name: ref __binding_0 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcAllowConstFnUnstable(ref __binding_0,
                        ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcAllowIncoherentImpl(ref __binding_0) =>
                        {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcAsPtr(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcAutodiff(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcBodyStability {
                        stability: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcBuiltinMacro {
                        builtin_name: ref __binding_0,
                        helper_attrs: ref __binding_1,
                        span: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                    AttributeKind::RustcCaptureAnalysis => {}
                    AttributeKind::RustcCguTestAttr(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcClean(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcCoherenceIsCore(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcCoinductive(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcConfusables {
                        symbols: ref __binding_0, first_span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcConstStability {
                        stability: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcConstStableIndirect => {}
                    AttributeKind::RustcConversionSuggestion => {}
                    AttributeKind::RustcDeallocator => {}
                    AttributeKind::RustcDefPath(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcDelayedBugFromInsideQuery => {}
                    AttributeKind::RustcDenyExplicitImpl(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcDeprecatedSafe2024 {
                        suggestion: ref __binding_0 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcDiagnosticItem(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcDoNotConstCheck => {}
                    AttributeKind::RustcDocPrimitive(ref __binding_0,
                        ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcDummy => {}
                    AttributeKind::RustcDumpDefParents => {}
                    AttributeKind::RustcDumpItemBounds => {}
                    AttributeKind::RustcDumpPredicates => {}
                    AttributeKind::RustcDumpUserArgs => {}
                    AttributeKind::RustcDumpVtable(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcDynIncompatibleTrait(ref __binding_0) =>
                        {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcEffectiveVisibility => {}
                    AttributeKind::RustcEiiForeignItem => {}
                    AttributeKind::RustcEvaluateWhereClauses => {}
                    AttributeKind::RustcHasIncoherentInherentImpls => {}
                    AttributeKind::RustcHiddenTypeOfOpaques => {}
                    AttributeKind::RustcIfThisChanged(ref __binding_0,
                        ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcInheritOverflowChecks => {}
                    AttributeKind::RustcInsignificantDtor => {}
                    AttributeKind::RustcIntrinsic => {}
                    AttributeKind::RustcIntrinsicConstStableIndirect => {}
                    AttributeKind::RustcLayout(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcLayoutScalarValidRangeEnd(ref __binding_0,
                        ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcLayoutScalarValidRangeStart(ref __binding_0,
                        ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcLegacyConstGenerics {
                        fn_indexes: ref __binding_0, attr_span: ref __binding_1 } =>
                        {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcLintOptDenyFieldAccess {
                        lint_message: ref __binding_0 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcLintOptTy => {}
                    AttributeKind::RustcLintQueryInstability => {}
                    AttributeKind::RustcLintUntrackedQueryInformation => {}
                    AttributeKind::RustcMacroTransparency(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcMain => {}
                    AttributeKind::RustcMir(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcMustImplementOneOf {
                        attr_span: ref __binding_0, fn_names: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcNeverReturnsNullPtr => {}
                    AttributeKind::RustcNeverTypeOptions {
                        fallback: ref __binding_0,
                        diverging_block_default: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcNoImplicitAutorefs => {}
                    AttributeKind::RustcNoImplicitBounds => {}
                    AttributeKind::RustcNoMirInline => {}
                    AttributeKind::RustcNonConstTraitMethod => {}
                    AttributeKind::RustcNonnullOptimizationGuaranteed => {}
                    AttributeKind::RustcNounwind => {}
                    AttributeKind::RustcObjcClass {
                        classname: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcObjcSelector {
                        methname: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcObjectLifetimeDefault => {}
                    AttributeKind::RustcOffloadKernel => {}
                    AttributeKind::RustcOutlives => {}
                    AttributeKind::RustcParenSugar(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcPassByValue(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcPassIndirectlyInNonRusticAbis(ref __binding_0)
                        => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcPreserveUbChecks => {}
                    AttributeKind::RustcProcMacroDecls => {}
                    AttributeKind::RustcPubTransparent(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcReallocator => {}
                    AttributeKind::RustcRegions => {}
                    AttributeKind::RustcReservationImpl(ref __binding_0,
                        ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcScalableVector {
                        element_count: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcShouldNotBeCalledOnConstItems(ref __binding_0)
                        => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcSimdMonomorphizeLaneLimit(ref __binding_0)
                        => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcSkipDuringMethodDispatch {
                        array: ref __binding_0,
                        boxed_slice: ref __binding_1,
                        span: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                    AttributeKind::RustcSpecializationTrait(ref __binding_0) =>
                        {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcStdInternalSymbol(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcStrictCoherence(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcSymbolName(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcTestMarker(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcThenThisWouldNeed(ref __binding_0,
                        ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::RustcTrivialFieldReads => {}
                    AttributeKind::RustcUnsafeSpecializationMarker(ref __binding_0)
                        => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::RustcVariance => {}
                    AttributeKind::RustcVarianceOfOpaques => {}
                    AttributeKind::Sanitize {
                        on_set: ref __binding_0,
                        off_set: ref __binding_1,
                        rtsan: ref __binding_2,
                        span: ref __binding_3 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_3,
                            __encoder);
                    }
                    AttributeKind::ShouldPanic {
                        reason: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::Stability {
                        stability: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::TargetFeature {
                        features: ref __binding_0,
                        attr_span: ref __binding_1,
                        was_forced: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                    AttributeKind::TestRunner(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::ThreadLocal => {}
                    AttributeKind::TrackCaller(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::TypeLengthLimit {
                        attr_span: ref __binding_0,
                        limit_span: ref __binding_1,
                        limit: ref __binding_2 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_2,
                            __encoder);
                    }
                    AttributeKind::UnstableFeatureBound(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    AttributeKind::Used {
                        used_by: ref __binding_0, span: ref __binding_1 } => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                    AttributeKind::WindowsSubsystem(ref __binding_0,
                        ref __binding_1) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                            __encoder);
                    }
                }
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::SpanDecoder> ::rustc_serialize::Decodable<__D>
            for AttributeKind {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => {
                        AttributeKind::AllowInternalUnsafe(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    1usize => {
                        AttributeKind::AllowInternalUnstable(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    2usize => {
                        AttributeKind::AutomaticallyDerived(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    3usize => { AttributeKind::CfgAttrTrace }
                    4usize => {
                        AttributeKind::CfgTrace(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    5usize => {
                        AttributeKind::CfiEncoding {
                            encoding: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    6usize => {
                        AttributeKind::Cold(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    7usize => {
                        AttributeKind::CollapseDebugInfo(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    8usize => { AttributeKind::CompilerBuiltins }
                    9usize => {
                        AttributeKind::ConstContinue(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    10usize => {
                        AttributeKind::Coroutine(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    11usize => {
                        AttributeKind::Coverage(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    12usize => {
                        AttributeKind::CrateName {
                            name: ::rustc_serialize::Decodable::decode(__decoder),
                            name_span: ::rustc_serialize::Decodable::decode(__decoder),
                            attr_span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    13usize => {
                        AttributeKind::CrateType(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    14usize => {
                        AttributeKind::CustomMir(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    15usize => {
                        AttributeKind::DebuggerVisualizer(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    16usize => { AttributeKind::DefaultLibAllocator }
                    17usize => {
                        AttributeKind::Deprecated {
                            deprecation: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    18usize => {
                        AttributeKind::DoNotRecommend {
                            attr_span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    19usize => {
                        AttributeKind::Doc(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    20usize => {
                        AttributeKind::DocComment {
                            style: ::rustc_serialize::Decodable::decode(__decoder),
                            kind: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                            comment: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    21usize => {
                        AttributeKind::EiiDeclaration(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    22usize => {
                        AttributeKind::EiiImpls(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    23usize => {
                        AttributeKind::ExportName {
                            name: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    24usize => { AttributeKind::ExportStable }
                    25usize => {
                        AttributeKind::Feature(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    26usize => {
                        AttributeKind::FfiConst(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    27usize => {
                        AttributeKind::FfiPure(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    28usize => { AttributeKind::Fundamental }
                    29usize => {
                        AttributeKind::Ignore {
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                            reason: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    30usize => {
                        AttributeKind::Inline(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    31usize => {
                        AttributeKind::InstructionSet(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    32usize => {
                        AttributeKind::Lang(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    33usize => {
                        AttributeKind::Link(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    34usize => {
                        AttributeKind::LinkName {
                            name: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    35usize => {
                        AttributeKind::LinkOrdinal {
                            ordinal: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    36usize => {
                        AttributeKind::LinkSection {
                            name: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    37usize => {
                        AttributeKind::Linkage(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    38usize => {
                        AttributeKind::LoopMatch(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    39usize => {
                        AttributeKind::MacroEscape(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    40usize => {
                        AttributeKind::MacroExport {
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                            local_inner_macros: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    41usize => {
                        AttributeKind::MacroUse {
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                            arguments: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    42usize => {
                        AttributeKind::Marker(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    43usize => {
                        AttributeKind::MayDangle(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    44usize => {
                        AttributeKind::MoveSizeLimit {
                            attr_span: ::rustc_serialize::Decodable::decode(__decoder),
                            limit_span: ::rustc_serialize::Decodable::decode(__decoder),
                            limit: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    45usize => {
                        AttributeKind::MustNotSupend {
                            reason: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    46usize => {
                        AttributeKind::MustUse {
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                            reason: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    47usize => {
                        AttributeKind::Naked(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    48usize => { AttributeKind::NeedsAllocator }
                    49usize => { AttributeKind::NeedsPanicRuntime }
                    50usize => { AttributeKind::NoBuiltins }
                    51usize => {
                        AttributeKind::NoCore(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    52usize => {
                        AttributeKind::NoImplicitPrelude(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    53usize => { AttributeKind::NoLink }
                    54usize => { AttributeKind::NoMain }
                    55usize => {
                        AttributeKind::NoMangle(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    56usize => {
                        AttributeKind::NoStd(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    57usize => {
                        AttributeKind::NonExhaustive(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    58usize => {
                        AttributeKind::OnConst {
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                            directive: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    59usize => {
                        AttributeKind::OnUnimplemented {
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                            directive: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    60usize => {
                        AttributeKind::Optimize(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    61usize => { AttributeKind::PanicRuntime }
                    62usize => {
                        AttributeKind::PatchableFunctionEntry {
                            prefix: ::rustc_serialize::Decodable::decode(__decoder),
                            entry: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    63usize => {
                        AttributeKind::Path(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    64usize => {
                        AttributeKind::PatternComplexityLimit {
                            attr_span: ::rustc_serialize::Decodable::decode(__decoder),
                            limit_span: ::rustc_serialize::Decodable::decode(__decoder),
                            limit: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    65usize => {
                        AttributeKind::PinV2(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    66usize => {
                        AttributeKind::Pointee(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    67usize => { AttributeKind::PreludeImport }
                    68usize => {
                        AttributeKind::ProcMacro(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    69usize => {
                        AttributeKind::ProcMacroAttribute(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    70usize => {
                        AttributeKind::ProcMacroDerive {
                            trait_name: ::rustc_serialize::Decodable::decode(__decoder),
                            helper_attrs: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    71usize => { AttributeKind::ProfilerRuntime }
                    72usize => {
                        AttributeKind::RecursionLimit {
                            attr_span: ::rustc_serialize::Decodable::decode(__decoder),
                            limit_span: ::rustc_serialize::Decodable::decode(__decoder),
                            limit: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    73usize => {
                        AttributeKind::ReexportTestHarnessMain(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    74usize => {
                        AttributeKind::RegisterTool(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    75usize => {
                        AttributeKind::Repr {
                            reprs: ::rustc_serialize::Decodable::decode(__decoder),
                            first_span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    76usize => {
                        AttributeKind::RustcAbi {
                            attr_span: ::rustc_serialize::Decodable::decode(__decoder),
                            kind: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    77usize => {
                        AttributeKind::RustcAlign {
                            align: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    78usize => { AttributeKind::RustcAllocator }
                    79usize => { AttributeKind::RustcAllocatorZeroed }
                    80usize => {
                        AttributeKind::RustcAllocatorZeroedVariant {
                            name: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    81usize => {
                        AttributeKind::RustcAllowConstFnUnstable(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    82usize => {
                        AttributeKind::RustcAllowIncoherentImpl(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    83usize => {
                        AttributeKind::RustcAsPtr(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    84usize => {
                        AttributeKind::RustcAutodiff(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    85usize => {
                        AttributeKind::RustcBodyStability {
                            stability: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    86usize => {
                        AttributeKind::RustcBuiltinMacro {
                            builtin_name: ::rustc_serialize::Decodable::decode(__decoder),
                            helper_attrs: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    87usize => { AttributeKind::RustcCaptureAnalysis }
                    88usize => {
                        AttributeKind::RustcCguTestAttr(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    89usize => {
                        AttributeKind::RustcClean(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    90usize => {
                        AttributeKind::RustcCoherenceIsCore(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    91usize => {
                        AttributeKind::RustcCoinductive(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    92usize => {
                        AttributeKind::RustcConfusables {
                            symbols: ::rustc_serialize::Decodable::decode(__decoder),
                            first_span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    93usize => {
                        AttributeKind::RustcConstStability {
                            stability: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    94usize => { AttributeKind::RustcConstStableIndirect }
                    95usize => { AttributeKind::RustcConversionSuggestion }
                    96usize => { AttributeKind::RustcDeallocator }
                    97usize => {
                        AttributeKind::RustcDefPath(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    98usize => { AttributeKind::RustcDelayedBugFromInsideQuery }
                    99usize => {
                        AttributeKind::RustcDenyExplicitImpl(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    100usize => {
                        AttributeKind::RustcDeprecatedSafe2024 {
                            suggestion: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    101usize => {
                        AttributeKind::RustcDiagnosticItem(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    102usize => { AttributeKind::RustcDoNotConstCheck }
                    103usize => {
                        AttributeKind::RustcDocPrimitive(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    104usize => { AttributeKind::RustcDummy }
                    105usize => { AttributeKind::RustcDumpDefParents }
                    106usize => { AttributeKind::RustcDumpItemBounds }
                    107usize => { AttributeKind::RustcDumpPredicates }
                    108usize => { AttributeKind::RustcDumpUserArgs }
                    109usize => {
                        AttributeKind::RustcDumpVtable(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    110usize => {
                        AttributeKind::RustcDynIncompatibleTrait(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    111usize => { AttributeKind::RustcEffectiveVisibility }
                    112usize => { AttributeKind::RustcEiiForeignItem }
                    113usize => { AttributeKind::RustcEvaluateWhereClauses }
                    114usize => {
                        AttributeKind::RustcHasIncoherentInherentImpls
                    }
                    115usize => { AttributeKind::RustcHiddenTypeOfOpaques }
                    116usize => {
                        AttributeKind::RustcIfThisChanged(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    117usize => { AttributeKind::RustcInheritOverflowChecks }
                    118usize => { AttributeKind::RustcInsignificantDtor }
                    119usize => { AttributeKind::RustcIntrinsic }
                    120usize => {
                        AttributeKind::RustcIntrinsicConstStableIndirect
                    }
                    121usize => {
                        AttributeKind::RustcLayout(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    122usize => {
                        AttributeKind::RustcLayoutScalarValidRangeEnd(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    123usize => {
                        AttributeKind::RustcLayoutScalarValidRangeStart(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    124usize => {
                        AttributeKind::RustcLegacyConstGenerics {
                            fn_indexes: ::rustc_serialize::Decodable::decode(__decoder),
                            attr_span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    125usize => {
                        AttributeKind::RustcLintOptDenyFieldAccess {
                            lint_message: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    126usize => { AttributeKind::RustcLintOptTy }
                    127usize => { AttributeKind::RustcLintQueryInstability }
                    128usize => {
                        AttributeKind::RustcLintUntrackedQueryInformation
                    }
                    129usize => {
                        AttributeKind::RustcMacroTransparency(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    130usize => { AttributeKind::RustcMain }
                    131usize => {
                        AttributeKind::RustcMir(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    132usize => {
                        AttributeKind::RustcMustImplementOneOf {
                            attr_span: ::rustc_serialize::Decodable::decode(__decoder),
                            fn_names: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    133usize => { AttributeKind::RustcNeverReturnsNullPtr }
                    134usize => {
                        AttributeKind::RustcNeverTypeOptions {
                            fallback: ::rustc_serialize::Decodable::decode(__decoder),
                            diverging_block_default: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    135usize => { AttributeKind::RustcNoImplicitAutorefs }
                    136usize => { AttributeKind::RustcNoImplicitBounds }
                    137usize => { AttributeKind::RustcNoMirInline }
                    138usize => { AttributeKind::RustcNonConstTraitMethod }
                    139usize => {
                        AttributeKind::RustcNonnullOptimizationGuaranteed
                    }
                    140usize => { AttributeKind::RustcNounwind }
                    141usize => {
                        AttributeKind::RustcObjcClass {
                            classname: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    142usize => {
                        AttributeKind::RustcObjcSelector {
                            methname: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    143usize => { AttributeKind::RustcObjectLifetimeDefault }
                    144usize => { AttributeKind::RustcOffloadKernel }
                    145usize => { AttributeKind::RustcOutlives }
                    146usize => {
                        AttributeKind::RustcParenSugar(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    147usize => {
                        AttributeKind::RustcPassByValue(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    148usize => {
                        AttributeKind::RustcPassIndirectlyInNonRusticAbis(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    149usize => { AttributeKind::RustcPreserveUbChecks }
                    150usize => { AttributeKind::RustcProcMacroDecls }
                    151usize => {
                        AttributeKind::RustcPubTransparent(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    152usize => { AttributeKind::RustcReallocator }
                    153usize => { AttributeKind::RustcRegions }
                    154usize => {
                        AttributeKind::RustcReservationImpl(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    155usize => {
                        AttributeKind::RustcScalableVector {
                            element_count: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    156usize => {
                        AttributeKind::RustcShouldNotBeCalledOnConstItems(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    157usize => {
                        AttributeKind::RustcSimdMonomorphizeLaneLimit(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    158usize => {
                        AttributeKind::RustcSkipDuringMethodDispatch {
                            array: ::rustc_serialize::Decodable::decode(__decoder),
                            boxed_slice: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    159usize => {
                        AttributeKind::RustcSpecializationTrait(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    160usize => {
                        AttributeKind::RustcStdInternalSymbol(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    161usize => {
                        AttributeKind::RustcStrictCoherence(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    162usize => {
                        AttributeKind::RustcSymbolName(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    163usize => {
                        AttributeKind::RustcTestMarker(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    164usize => {
                        AttributeKind::RustcThenThisWouldNeed(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    165usize => { AttributeKind::RustcTrivialFieldReads }
                    166usize => {
                        AttributeKind::RustcUnsafeSpecializationMarker(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    167usize => { AttributeKind::RustcVariance }
                    168usize => { AttributeKind::RustcVarianceOfOpaques }
                    169usize => {
                        AttributeKind::Sanitize {
                            on_set: ::rustc_serialize::Decodable::decode(__decoder),
                            off_set: ::rustc_serialize::Decodable::decode(__decoder),
                            rtsan: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    170usize => {
                        AttributeKind::ShouldPanic {
                            reason: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    171usize => {
                        AttributeKind::Stability {
                            stability: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    172usize => {
                        AttributeKind::TargetFeature {
                            features: ::rustc_serialize::Decodable::decode(__decoder),
                            attr_span: ::rustc_serialize::Decodable::decode(__decoder),
                            was_forced: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    173usize => {
                        AttributeKind::TestRunner(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    174usize => { AttributeKind::ThreadLocal }
                    175usize => {
                        AttributeKind::TrackCaller(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    176usize => {
                        AttributeKind::TypeLengthLimit {
                            attr_span: ::rustc_serialize::Decodable::decode(__decoder),
                            limit_span: ::rustc_serialize::Decodable::decode(__decoder),
                            limit: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    177usize => {
                        AttributeKind::UnstableFeatureBound(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    178usize => {
                        AttributeKind::Used {
                            used_by: ::rustc_serialize::Decodable::decode(__decoder),
                            span: ::rustc_serialize::Decodable::decode(__decoder),
                        }
                    }
                    179usize => {
                        AttributeKind::WindowsSubsystem(::rustc_serialize::Decodable::decode(__decoder),
                            ::rustc_serialize::Decodable::decode(__decoder))
                    }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `AttributeKind`, expected 0..180, actual {0}",
                                n));
                    }
                }
            }
        }
    };Decodable, const _: () =
    {
        #[allow(unused)]
        impl PrintAttribute for AttributeKind {
            fn should_render(&self) -> bool { true }
            fn print_attribute(&self,
                __p: &mut rustc_ast_pretty::pp::Printer) {
                match self {
                    Self::AllowInternalUnsafe(f0) => {
                        __p.word("AllowInternalUnsafe");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::AllowInternalUnstable(f0, f1) => {
                        __p.word("AllowInternalUnstable");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::AutomaticallyDerived(f0) => {
                        __p.word("AutomaticallyDerived");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::CfgAttrTrace => { __p.word("CfgAttrTrace") }
                    Self::CfgTrace(f0) => {
                        __p.word("CfgTrace");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::CfiEncoding { encoding } => {
                        __p.word("CfiEncoding");
                        if true && !encoding.should_render() { return; }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if encoding.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("encoding");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        encoding.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::Cold(f0) => {
                        __p.word("Cold");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::CollapseDebugInfo(f0) => {
                        __p.word("CollapseDebugInfo");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::CompilerBuiltins => { __p.word("CompilerBuiltins") }
                    Self::ConstContinue(f0) => {
                        __p.word("ConstContinue");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::Coroutine(f0) => {
                        __p.word("Coroutine");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::Coverage(f0, f1) => {
                        __p.word("Coverage");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::CrateName { name, name_span, attr_span } => {
                        __p.word("CrateName");
                        if true && !name.should_render() &&
                                    !name_span.should_render() && !attr_span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if name.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("name");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        name.print_attribute(__p);
                        if name_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("name_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        name_span.print_attribute(__p);
                        if attr_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("attr_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        attr_span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::CrateType(f0) => {
                        __p.word("CrateType");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::CustomMir(f0, f1, f2) => {
                        __p.word("CustomMir");
                        if true && !f0.should_render() && !f1.should_render() &&
                                !f2.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        if f2.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f2.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::DebuggerVisualizer(f0) => {
                        __p.word("DebuggerVisualizer");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::DefaultLibAllocator => {
                        __p.word("DefaultLibAllocator")
                    }
                    Self::Deprecated { deprecation, span } => {
                        __p.word("Deprecated");
                        if true && !deprecation.should_render() &&
                                !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if deprecation.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("deprecation");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        deprecation.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::DoNotRecommend { attr_span } => {
                        __p.word("DoNotRecommend");
                        if true && !attr_span.should_render() { return; }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if attr_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("attr_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        attr_span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::Doc(f0) => {
                        __p.word("Doc");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::DocComment { style, kind, span, comment } => {
                        __p.word("DocComment");
                        if true && !style.should_render() && !kind.should_render()
                                    && !span.should_render() && !comment.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if style.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("style");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        style.print_attribute(__p);
                        if kind.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("kind");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        kind.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        if comment.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("comment");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        comment.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::EiiDeclaration(f0) => {
                        __p.word("EiiDeclaration");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::EiiImpls(f0) => {
                        __p.word("EiiImpls");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::ExportName { name, span } => {
                        __p.word("ExportName");
                        if true && !name.should_render() && !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if name.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("name");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        name.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::ExportStable => { __p.word("ExportStable") }
                    Self::Feature(f0, f1) => {
                        __p.word("Feature");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::FfiConst(f0) => {
                        __p.word("FfiConst");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::FfiPure(f0) => {
                        __p.word("FfiPure");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::Fundamental => { __p.word("Fundamental") }
                    Self::Ignore { span, reason } => {
                        __p.word("Ignore");
                        if true && !span.should_render() && !reason.should_render()
                            {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        if reason.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("reason");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        reason.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::Inline(f0, f1) => {
                        __p.word("Inline");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::InstructionSet(f0) => {
                        __p.word("InstructionSet");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::Lang(f0, f1) => {
                        __p.word("Lang");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::Link(f0, f1) => {
                        __p.word("Link");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::LinkName { name, span } => {
                        __p.word("LinkName");
                        if true && !name.should_render() && !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if name.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("name");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        name.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::LinkOrdinal { ordinal, span } => {
                        __p.word("LinkOrdinal");
                        if true && !ordinal.should_render() && !span.should_render()
                            {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if ordinal.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("ordinal");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        ordinal.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::LinkSection { name, span } => {
                        __p.word("LinkSection");
                        if true && !name.should_render() && !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if name.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("name");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        name.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::Linkage(f0, f1) => {
                        __p.word("Linkage");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::LoopMatch(f0) => {
                        __p.word("LoopMatch");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::MacroEscape(f0) => {
                        __p.word("MacroEscape");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::MacroExport { span, local_inner_macros } => {
                        __p.word("MacroExport");
                        if true && !span.should_render() &&
                                !local_inner_macros.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        if local_inner_macros.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("local_inner_macros");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        local_inner_macros.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::MacroUse { span, arguments } => {
                        __p.word("MacroUse");
                        if true && !span.should_render() &&
                                !arguments.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        if arguments.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("arguments");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        arguments.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::Marker(f0) => {
                        __p.word("Marker");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::MayDangle(f0) => {
                        __p.word("MayDangle");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::MoveSizeLimit { attr_span, limit_span, limit } => {
                        __p.word("MoveSizeLimit");
                        if true && !attr_span.should_render() &&
                                    !limit_span.should_render() && !limit.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if attr_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("attr_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        attr_span.print_attribute(__p);
                        if limit_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("limit_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        limit_span.print_attribute(__p);
                        if limit.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("limit");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        limit.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::MustNotSupend { reason } => {
                        __p.word("MustNotSupend");
                        if true && !reason.should_render() { return; }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if reason.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("reason");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        reason.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::MustUse { span, reason } => {
                        __p.word("MustUse");
                        if true && !span.should_render() && !reason.should_render()
                            {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        if reason.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("reason");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        reason.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::Naked(f0) => {
                        __p.word("Naked");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::NeedsAllocator => { __p.word("NeedsAllocator") }
                    Self::NeedsPanicRuntime => { __p.word("NeedsPanicRuntime") }
                    Self::NoBuiltins => { __p.word("NoBuiltins") }
                    Self::NoCore(f0) => {
                        __p.word("NoCore");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::NoImplicitPrelude(f0) => {
                        __p.word("NoImplicitPrelude");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::NoLink => { __p.word("NoLink") }
                    Self::NoMain => { __p.word("NoMain") }
                    Self::NoMangle(f0) => {
                        __p.word("NoMangle");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::NoStd(f0) => {
                        __p.word("NoStd");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::NonExhaustive(f0) => {
                        __p.word("NonExhaustive");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::OnConst { span, directive } => {
                        __p.word("OnConst");
                        if true && !span.should_render() &&
                                !directive.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        if directive.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("directive");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        directive.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::OnUnimplemented { span, directive } => {
                        __p.word("OnUnimplemented");
                        if true && !span.should_render() &&
                                !directive.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        if directive.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("directive");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        directive.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::Optimize(f0, f1) => {
                        __p.word("Optimize");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::PanicRuntime => { __p.word("PanicRuntime") }
                    Self::PatchableFunctionEntry { prefix, entry } => {
                        __p.word("PatchableFunctionEntry");
                        if true && !prefix.should_render() && !entry.should_render()
                            {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if prefix.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("prefix");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        prefix.print_attribute(__p);
                        if entry.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("entry");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        entry.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::Path(f0, f1) => {
                        __p.word("Path");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::PatternComplexityLimit { attr_span, limit_span, limit
                        } => {
                        __p.word("PatternComplexityLimit");
                        if true && !attr_span.should_render() &&
                                    !limit_span.should_render() && !limit.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if attr_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("attr_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        attr_span.print_attribute(__p);
                        if limit_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("limit_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        limit_span.print_attribute(__p);
                        if limit.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("limit");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        limit.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::PinV2(f0) => {
                        __p.word("PinV2");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::Pointee(f0) => {
                        __p.word("Pointee");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::PreludeImport => { __p.word("PreludeImport") }
                    Self::ProcMacro(f0) => {
                        __p.word("ProcMacro");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::ProcMacroAttribute(f0) => {
                        __p.word("ProcMacroAttribute");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::ProcMacroDerive { trait_name, helper_attrs, span } =>
                        {
                        __p.word("ProcMacroDerive");
                        if true && !trait_name.should_render() &&
                                    !helper_attrs.should_render() && !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if trait_name.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("trait_name");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        trait_name.print_attribute(__p);
                        if helper_attrs.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("helper_attrs");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        helper_attrs.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::ProfilerRuntime => { __p.word("ProfilerRuntime") }
                    Self::RecursionLimit { attr_span, limit_span, limit } => {
                        __p.word("RecursionLimit");
                        if true && !attr_span.should_render() &&
                                    !limit_span.should_render() && !limit.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if attr_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("attr_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        attr_span.print_attribute(__p);
                        if limit_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("limit_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        limit_span.print_attribute(__p);
                        if limit.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("limit");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        limit.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::ReexportTestHarnessMain(f0) => {
                        __p.word("ReexportTestHarnessMain");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RegisterTool(f0, f1) => {
                        __p.word("RegisterTool");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::Repr { reprs, first_span } => {
                        __p.word("Repr");
                        if true && !reprs.should_render() &&
                                !first_span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if reprs.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("reprs");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        reprs.print_attribute(__p);
                        if first_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("first_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        first_span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcAbi { attr_span, kind } => {
                        __p.word("RustcAbi");
                        if true && !attr_span.should_render() &&
                                !kind.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if attr_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("attr_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        attr_span.print_attribute(__p);
                        if kind.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("kind");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        kind.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcAlign { align, span } => {
                        __p.word("RustcAlign");
                        if true && !align.should_render() && !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if align.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("align");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        align.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcAllocator => { __p.word("RustcAllocator") }
                    Self::RustcAllocatorZeroed => {
                        __p.word("RustcAllocatorZeroed")
                    }
                    Self::RustcAllocatorZeroedVariant { name } => {
                        __p.word("RustcAllocatorZeroedVariant");
                        if true && !name.should_render() { return; }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if name.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("name");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        name.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcAllowConstFnUnstable(f0, f1) => {
                        __p.word("RustcAllowConstFnUnstable");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcAllowIncoherentImpl(f0) => {
                        __p.word("RustcAllowIncoherentImpl");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcAsPtr(f0) => {
                        __p.word("RustcAsPtr");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcAutodiff(f0) => {
                        __p.word("RustcAutodiff");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcBodyStability { stability, span } => {
                        __p.word("RustcBodyStability");
                        if true && !stability.should_render() &&
                                !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if stability.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("stability");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        stability.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcBuiltinMacro { builtin_name, helper_attrs, span }
                        => {
                        __p.word("RustcBuiltinMacro");
                        if true && !builtin_name.should_render() &&
                                    !helper_attrs.should_render() && !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if builtin_name.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("builtin_name");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        builtin_name.print_attribute(__p);
                        if helper_attrs.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("helper_attrs");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        helper_attrs.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcCaptureAnalysis => {
                        __p.word("RustcCaptureAnalysis")
                    }
                    Self::RustcCguTestAttr(f0) => {
                        __p.word("RustcCguTestAttr");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcClean(f0) => {
                        __p.word("RustcClean");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcCoherenceIsCore(f0) => {
                        __p.word("RustcCoherenceIsCore");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcCoinductive(f0) => {
                        __p.word("RustcCoinductive");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcConfusables { symbols, first_span } => {
                        __p.word("RustcConfusables");
                        if true && !symbols.should_render() &&
                                !first_span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if symbols.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("symbols");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        symbols.print_attribute(__p);
                        if first_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("first_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        first_span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcConstStability { stability, span } => {
                        __p.word("RustcConstStability");
                        if true && !stability.should_render() &&
                                !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if stability.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("stability");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        stability.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcConstStableIndirect => {
                        __p.word("RustcConstStableIndirect")
                    }
                    Self::RustcConversionSuggestion => {
                        __p.word("RustcConversionSuggestion")
                    }
                    Self::RustcDeallocator => { __p.word("RustcDeallocator") }
                    Self::RustcDefPath(f0) => {
                        __p.word("RustcDefPath");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcDelayedBugFromInsideQuery => {
                        __p.word("RustcDelayedBugFromInsideQuery")
                    }
                    Self::RustcDenyExplicitImpl(f0) => {
                        __p.word("RustcDenyExplicitImpl");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcDeprecatedSafe2024 { suggestion } => {
                        __p.word("RustcDeprecatedSafe2024");
                        if true && !suggestion.should_render() { return; }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if suggestion.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("suggestion");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        suggestion.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcDiagnosticItem(f0) => {
                        __p.word("RustcDiagnosticItem");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcDoNotConstCheck => {
                        __p.word("RustcDoNotConstCheck")
                    }
                    Self::RustcDocPrimitive(f0, f1) => {
                        __p.word("RustcDocPrimitive");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcDummy => { __p.word("RustcDummy") }
                    Self::RustcDumpDefParents => {
                        __p.word("RustcDumpDefParents")
                    }
                    Self::RustcDumpItemBounds => {
                        __p.word("RustcDumpItemBounds")
                    }
                    Self::RustcDumpPredicates => {
                        __p.word("RustcDumpPredicates")
                    }
                    Self::RustcDumpUserArgs => { __p.word("RustcDumpUserArgs") }
                    Self::RustcDumpVtable(f0) => {
                        __p.word("RustcDumpVtable");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcDynIncompatibleTrait(f0) => {
                        __p.word("RustcDynIncompatibleTrait");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcEffectiveVisibility => {
                        __p.word("RustcEffectiveVisibility")
                    }
                    Self::RustcEiiForeignItem => {
                        __p.word("RustcEiiForeignItem")
                    }
                    Self::RustcEvaluateWhereClauses => {
                        __p.word("RustcEvaluateWhereClauses")
                    }
                    Self::RustcHasIncoherentInherentImpls => {
                        __p.word("RustcHasIncoherentInherentImpls")
                    }
                    Self::RustcHiddenTypeOfOpaques => {
                        __p.word("RustcHiddenTypeOfOpaques")
                    }
                    Self::RustcIfThisChanged(f0, f1) => {
                        __p.word("RustcIfThisChanged");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcInheritOverflowChecks => {
                        __p.word("RustcInheritOverflowChecks")
                    }
                    Self::RustcInsignificantDtor => {
                        __p.word("RustcInsignificantDtor")
                    }
                    Self::RustcIntrinsic => { __p.word("RustcIntrinsic") }
                    Self::RustcIntrinsicConstStableIndirect => {
                        __p.word("RustcIntrinsicConstStableIndirect")
                    }
                    Self::RustcLayout(f0) => {
                        __p.word("RustcLayout");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcLayoutScalarValidRangeEnd(f0, f1) => {
                        __p.word("RustcLayoutScalarValidRangeEnd");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcLayoutScalarValidRangeStart(f0, f1) => {
                        __p.word("RustcLayoutScalarValidRangeStart");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcLegacyConstGenerics { fn_indexes, attr_span } =>
                        {
                        __p.word("RustcLegacyConstGenerics");
                        if true && !fn_indexes.should_render() &&
                                !attr_span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if fn_indexes.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("fn_indexes");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        fn_indexes.print_attribute(__p);
                        if attr_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("attr_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        attr_span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcLintOptDenyFieldAccess { lint_message } => {
                        __p.word("RustcLintOptDenyFieldAccess");
                        if true && !lint_message.should_render() { return; }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if lint_message.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("lint_message");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        lint_message.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcLintOptTy => { __p.word("RustcLintOptTy") }
                    Self::RustcLintQueryInstability => {
                        __p.word("RustcLintQueryInstability")
                    }
                    Self::RustcLintUntrackedQueryInformation => {
                        __p.word("RustcLintUntrackedQueryInformation")
                    }
                    Self::RustcMacroTransparency(f0) => {
                        __p.word("RustcMacroTransparency");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcMain => { __p.word("RustcMain") }
                    Self::RustcMir(f0) => {
                        __p.word("RustcMir");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcMustImplementOneOf { attr_span, fn_names } => {
                        __p.word("RustcMustImplementOneOf");
                        if true && !attr_span.should_render() &&
                                !fn_names.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if attr_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("attr_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        attr_span.print_attribute(__p);
                        if fn_names.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("fn_names");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        fn_names.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcNeverReturnsNullPtr => {
                        __p.word("RustcNeverReturnsNullPtr")
                    }
                    Self::RustcNeverTypeOptions {
                        fallback, diverging_block_default } => {
                        __p.word("RustcNeverTypeOptions");
                        if true && !fallback.should_render() &&
                                !diverging_block_default.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if fallback.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("fallback");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        fallback.print_attribute(__p);
                        if diverging_block_default.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("diverging_block_default");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        diverging_block_default.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcNoImplicitAutorefs => {
                        __p.word("RustcNoImplicitAutorefs")
                    }
                    Self::RustcNoImplicitBounds => {
                        __p.word("RustcNoImplicitBounds")
                    }
                    Self::RustcNoMirInline => { __p.word("RustcNoMirInline") }
                    Self::RustcNonConstTraitMethod => {
                        __p.word("RustcNonConstTraitMethod")
                    }
                    Self::RustcNonnullOptimizationGuaranteed => {
                        __p.word("RustcNonnullOptimizationGuaranteed")
                    }
                    Self::RustcNounwind => { __p.word("RustcNounwind") }
                    Self::RustcObjcClass { classname, span } => {
                        __p.word("RustcObjcClass");
                        if true && !classname.should_render() &&
                                !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if classname.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("classname");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        classname.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcObjcSelector { methname, span } => {
                        __p.word("RustcObjcSelector");
                        if true && !methname.should_render() &&
                                !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if methname.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("methname");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        methname.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcObjectLifetimeDefault => {
                        __p.word("RustcObjectLifetimeDefault")
                    }
                    Self::RustcOffloadKernel => {
                        __p.word("RustcOffloadKernel")
                    }
                    Self::RustcOutlives => { __p.word("RustcOutlives") }
                    Self::RustcParenSugar(f0) => {
                        __p.word("RustcParenSugar");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcPassByValue(f0) => {
                        __p.word("RustcPassByValue");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcPassIndirectlyInNonRusticAbis(f0) => {
                        __p.word("RustcPassIndirectlyInNonRusticAbis");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcPreserveUbChecks => {
                        __p.word("RustcPreserveUbChecks")
                    }
                    Self::RustcProcMacroDecls => {
                        __p.word("RustcProcMacroDecls")
                    }
                    Self::RustcPubTransparent(f0) => {
                        __p.word("RustcPubTransparent");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcReallocator => { __p.word("RustcReallocator") }
                    Self::RustcRegions => { __p.word("RustcRegions") }
                    Self::RustcReservationImpl(f0, f1) => {
                        __p.word("RustcReservationImpl");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcScalableVector { element_count, span } => {
                        __p.word("RustcScalableVector");
                        if true && !element_count.should_render() &&
                                !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if element_count.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("element_count");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        element_count.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcShouldNotBeCalledOnConstItems(f0) => {
                        __p.word("RustcShouldNotBeCalledOnConstItems");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcSimdMonomorphizeLaneLimit(f0) => {
                        __p.word("RustcSimdMonomorphizeLaneLimit");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcSkipDuringMethodDispatch {
                        array, boxed_slice, span } => {
                        __p.word("RustcSkipDuringMethodDispatch");
                        if true && !array.should_render() &&
                                    !boxed_slice.should_render() && !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if array.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("array");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        array.print_attribute(__p);
                        if boxed_slice.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("boxed_slice");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        boxed_slice.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::RustcSpecializationTrait(f0) => {
                        __p.word("RustcSpecializationTrait");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcStdInternalSymbol(f0) => {
                        __p.word("RustcStdInternalSymbol");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcStrictCoherence(f0) => {
                        __p.word("RustcStrictCoherence");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcSymbolName(f0) => {
                        __p.word("RustcSymbolName");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcTestMarker(f0) => {
                        __p.word("RustcTestMarker");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcThenThisWouldNeed(f0, f1) => {
                        __p.word("RustcThenThisWouldNeed");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcTrivialFieldReads => {
                        __p.word("RustcTrivialFieldReads")
                    }
                    Self::RustcUnsafeSpecializationMarker(f0) => {
                        __p.word("RustcUnsafeSpecializationMarker");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::RustcVariance => { __p.word("RustcVariance") }
                    Self::RustcVarianceOfOpaques => {
                        __p.word("RustcVarianceOfOpaques")
                    }
                    Self::Sanitize { on_set, off_set, rtsan, span } => {
                        __p.word("Sanitize");
                        if true && !on_set.should_render() &&
                                        !off_set.should_render() && !rtsan.should_render() &&
                                !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if on_set.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("on_set");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        on_set.print_attribute(__p);
                        if off_set.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("off_set");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        off_set.print_attribute(__p);
                        if rtsan.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("rtsan");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        rtsan.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::ShouldPanic { reason, span } => {
                        __p.word("ShouldPanic");
                        if true && !reason.should_render() && !span.should_render()
                            {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if reason.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("reason");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        reason.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::Stability { stability, span } => {
                        __p.word("Stability");
                        if true && !stability.should_render() &&
                                !span.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if stability.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("stability");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        stability.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::TargetFeature { features, attr_span, was_forced } => {
                        __p.word("TargetFeature");
                        if true && !features.should_render() &&
                                    !attr_span.should_render() && !was_forced.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if features.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("features");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        features.print_attribute(__p);
                        if attr_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("attr_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        attr_span.print_attribute(__p);
                        if was_forced.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("was_forced");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        was_forced.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::TestRunner(f0) => {
                        __p.word("TestRunner");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::ThreadLocal => { __p.word("ThreadLocal") }
                    Self::TrackCaller(f0) => {
                        __p.word("TrackCaller");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::TypeLengthLimit { attr_span, limit_span, limit } => {
                        __p.word("TypeLengthLimit");
                        if true && !attr_span.should_render() &&
                                    !limit_span.should_render() && !limit.should_render() {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if attr_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("attr_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        attr_span.print_attribute(__p);
                        if limit_span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("limit_span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        limit_span.print_attribute(__p);
                        if limit.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("limit");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        limit.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::UnstableFeatureBound(f0) => {
                        __p.word("UnstableFeatureBound");
                        if true && !f0.should_render() { return; }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        __p.pclose();
                    }
                    Self::Used { used_by, span } => {
                        __p.word("Used");
                        if true && !used_by.should_render() && !span.should_render()
                            {
                            return;
                        }
                        __p.nbsp();
                        __p.word("{");
                        let mut __printed_anything = false;
                        if used_by.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("used_by");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        used_by.print_attribute(__p);
                        if span.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __p.word("span");
                            __p.word(":");
                            __p.nbsp();
                            __printed_anything = true;
                        }
                        span.print_attribute(__p);
                        __p.word("}");
                    }
                    Self::WindowsSubsystem(f0, f1) => {
                        __p.word("WindowsSubsystem");
                        if true && !f0.should_render() && !f1.should_render() {
                            return;
                        }
                        __p.popen();
                        let mut __printed_anything = false;
                        if f0.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f0.print_attribute(__p);
                        if f1.should_render() {
                            if __printed_anything { __p.word_space(","); }
                            __printed_anything = true;
                        }
                        f1.print_attribute(__p);
                        __p.pclose();
                    }
                }
            }
        }
    };PrintAttribute)]
947pub enum AttributeKind {
948    // tidy-alphabetical-start
949    /// Represents `#[allow_internal_unsafe]`.
950    AllowInternalUnsafe(Span),
951
952    /// Represents `#[allow_internal_unstable]`.
953    AllowInternalUnstable(ThinVec<(Symbol, Span)>, Span),
954
955    /// Represents `#[automatically_derived]`
956    AutomaticallyDerived(Span),
957
958    /// Represents the trace attribute of `#[cfg_attr]`
959    CfgAttrTrace,
960
961    /// Represents the trace attribute of `#[cfg]`
962    CfgTrace(ThinVec<(CfgEntry, Span)>),
963
964    /// Represents `#[cfi_encoding]`
965    CfiEncoding {
966        encoding: Symbol,
967    },
968
969    /// Represents `#[cold]`.
970    Cold(Span),
971
972    /// Represents `#[collapse_debuginfo]`.
973    CollapseDebugInfo(CollapseMacroDebuginfo),
974
975    /// Represents `#[compiler_builtins]`.
976    CompilerBuiltins,
977
978    /// Represents `#[const_continue]`.
979    ConstContinue(Span),
980
981    /// Represents `#[coroutine]`.
982    Coroutine(Span),
983
984    /// Represents `#[coverage(..)]`.
985    Coverage(Span, CoverageAttrKind),
986
987    /// Represents `#[crate_name = ...]`
988    CrateName {
989        name: Symbol,
990        name_span: Span,
991        attr_span: Span,
992    },
993
994    /// Represents `#![crate_type = ...]`
995    CrateType(ThinVec<CrateType>),
996
997    /// Represents `#[custom_mir]`.
998    CustomMir(Option<(MirDialect, Span)>, Option<(MirPhase, Span)>, Span),
999
1000    /// Represents `#[debugger_visualizer]`.
1001    DebuggerVisualizer(ThinVec<DebugVisualizer>),
1002
1003    /// Represents `#![default_lib_allocator]`
1004    DefaultLibAllocator,
1005
1006    /// Represents [`#[deprecated]`](https://doc.rust-lang.org/stable/reference/attributes/diagnostics.html#the-deprecated-attribute).
1007    Deprecated {
1008        deprecation: Deprecation,
1009        span: Span,
1010    },
1011
1012    /// Represents `#[diagnostic::do_not_recommend]`.
1013    DoNotRecommend {
1014        attr_span: Span,
1015    },
1016
1017    /// Represents [`#[doc]`](https://doc.rust-lang.org/stable/rustdoc/write-documentation/the-doc-attribute.html).
1018    /// Represents all other uses of the [`#[doc]`](https://doc.rust-lang.org/stable/rustdoc/write-documentation/the-doc-attribute.html)
1019    /// attribute.
1020    Doc(Box<DocAttribute>),
1021
1022    /// Represents specifically [`#[doc = "..."]`](https://doc.rust-lang.org/stable/rustdoc/write-documentation/the-doc-attribute.html).
1023    /// i.e. doc comments.
1024    DocComment {
1025        style: AttrStyle,
1026        kind: DocFragmentKind,
1027        span: Span,
1028        comment: Symbol,
1029    },
1030
1031    /// Implementation detail of `#[eii]`
1032    EiiDeclaration(EiiDecl),
1033
1034    /// Implementation detail of `#[eii]`
1035    EiiImpls(ThinVec<EiiImpl>),
1036
1037    /// Represents [`#[export_name]`](https://doc.rust-lang.org/reference/abi.html#the-export_name-attribute).
1038    ExportName {
1039        /// The name to export this item with.
1040        /// It may not contain \0 bytes as it will be converted to a null-terminated string.
1041        name: Symbol,
1042        span: Span,
1043    },
1044
1045    /// Represents `#[export_stable]`.
1046    ExportStable,
1047
1048    /// Represents `#[feature(...)]`
1049    Feature(ThinVec<Ident>, Span),
1050
1051    /// Represents `#[ffi_const]`.
1052    FfiConst(Span),
1053
1054    /// Represents `#[ffi_pure]`.
1055    FfiPure(Span),
1056
1057    /// Represents `#[fundamental]`.
1058    Fundamental,
1059
1060    /// Represents `#[ignore]`
1061    Ignore {
1062        span: Span,
1063        /// ignore can optionally have a reason: `#[ignore = "reason this is ignored"]`
1064        reason: Option<Symbol>,
1065    },
1066
1067    /// Represents `#[inline]` and `#[rustc_force_inline]`.
1068    Inline(InlineAttr, Span),
1069
1070    /// Represents `#[instruction_set]`
1071    InstructionSet(InstructionSetAttr),
1072
1073    /// Represents `#[lang]`
1074    Lang(LangItem, Span),
1075
1076    /// Represents `#[link]`.
1077    Link(ThinVec<LinkEntry>, Span),
1078
1079    /// Represents `#[link_name]`.
1080    LinkName {
1081        name: Symbol,
1082        span: Span,
1083    },
1084
1085    /// Represents `#[link_ordinal]`.
1086    LinkOrdinal {
1087        ordinal: u16,
1088        span: Span,
1089    },
1090
1091    /// Represents [`#[link_section]`](https://doc.rust-lang.org/reference/abi.html#the-link_section-attribute)
1092    LinkSection {
1093        name: Symbol,
1094        span: Span,
1095    },
1096
1097    /// Represents `#[linkage]`.
1098    Linkage(Linkage, Span),
1099
1100    /// Represents `#[loop_match]`.
1101    LoopMatch(Span),
1102
1103    /// Represents `#[macro_escape]`.
1104    MacroEscape(Span),
1105
1106    /// Represents [`#[macro_export]`](https://doc.rust-lang.org/reference/macros-by-example.html#r-macro.decl.scope.path).
1107    MacroExport {
1108        span: Span,
1109        local_inner_macros: bool,
1110    },
1111
1112    /// Represents `#[macro_use]`.
1113    MacroUse {
1114        span: Span,
1115        arguments: MacroUseArgs,
1116    },
1117
1118    /// Represents `#[marker]`.
1119    Marker(Span),
1120
1121    /// Represents [`#[may_dangle]`](https://std-dev-guide.rust-lang.org/tricky/may-dangle.html).
1122    MayDangle(Span),
1123
1124    /// Represents `#[move_size_limit]`
1125    MoveSizeLimit {
1126        attr_span: Span,
1127        limit_span: Span,
1128        limit: Limit,
1129    },
1130
1131    /// Represents `#[must_not_suspend]`
1132    MustNotSupend {
1133        reason: Option<Symbol>,
1134    },
1135
1136    /// Represents `#[must_use]`.
1137    MustUse {
1138        span: Span,
1139        /// must_use can optionally have a reason: `#[must_use = "reason this must be used"]`
1140        reason: Option<Symbol>,
1141    },
1142
1143    /// Represents `#[naked]`
1144    Naked(Span),
1145
1146    /// Represents `#[needs_allocator]`
1147    NeedsAllocator,
1148
1149    /// Represents `#[needs_panic_runtime]`
1150    NeedsPanicRuntime,
1151
1152    /// Represents `#[no_builtins]`
1153    NoBuiltins,
1154
1155    /// Represents `#[no_core]`
1156    NoCore(Span),
1157
1158    /// Represents `#[no_implicit_prelude]`
1159    NoImplicitPrelude(Span),
1160
1161    /// Represents `#[no_link]`
1162    NoLink,
1163
1164    /// Represents `#[no_main]`
1165    NoMain,
1166
1167    /// Represents `#[no_mangle]`
1168    NoMangle(Span),
1169
1170    /// Represents `#[no_std]`
1171    NoStd(Span),
1172
1173    /// Represents `#[non_exhaustive]`
1174    NonExhaustive(Span),
1175
1176    /// Represents `#[diagnostic::on_const]`.
1177    OnConst {
1178        span: Span,
1179        /// None if the directive was malformed in some way.
1180        directive: Option<Box<Directive>>,
1181    },
1182
1183    /// Represents `#[rustc_on_unimplemented]` and `#[diagnostic::on_unimplemented]`.
1184    OnUnimplemented {
1185        span: Span,
1186        /// None if the directive was malformed in some way.
1187        directive: Option<Box<Directive>>,
1188    },
1189
1190    /// Represents `#[optimize(size|speed)]`
1191    Optimize(OptimizeAttr, Span),
1192
1193    /// Represents `#[panic_runtime]`
1194    PanicRuntime,
1195
1196    /// Represents `#[patchable_function_entry]`
1197    PatchableFunctionEntry {
1198        prefix: u8,
1199        entry: u8,
1200    },
1201
1202    /// Represents `#[path]`
1203    Path(Symbol, Span),
1204
1205    /// Represents `#[pattern_complexity_limit]`
1206    PatternComplexityLimit {
1207        attr_span: Span,
1208        limit_span: Span,
1209        limit: Limit,
1210    },
1211
1212    /// Represents `#[pin_v2]`
1213    PinV2(Span),
1214
1215    /// Represents `#[pointee]`
1216    Pointee(Span),
1217
1218    /// Represents `#[prelude_import]`
1219    PreludeImport,
1220
1221    /// Represents `#[proc_macro]`
1222    ProcMacro(Span),
1223
1224    /// Represents `#[proc_macro_attribute]`
1225    ProcMacroAttribute(Span),
1226
1227    /// Represents `#[proc_macro_derive]`
1228    ProcMacroDerive {
1229        trait_name: Symbol,
1230        helper_attrs: ThinVec<Symbol>,
1231        span: Span,
1232    },
1233
1234    /// Represents `#[profiler_runtime]`
1235    ProfilerRuntime,
1236
1237    /// Represents [`#[recursion_limit]`](https://doc.rust-lang.org/reference/attributes/limits.html#the-recursion_limit-attribute)
1238    RecursionLimit {
1239        attr_span: Span,
1240        limit_span: Span,
1241        limit: Limit,
1242    },
1243
1244    /// Represents `#[reexport_test_harness_main]`
1245    ReexportTestHarnessMain(Symbol),
1246
1247    /// Represents `#[register_tool]`
1248    RegisterTool(ThinVec<Ident>, Span),
1249
1250    /// Represents [`#[repr]`](https://doc.rust-lang.org/stable/reference/type-layout.html#representations).
1251    Repr {
1252        reprs: ThinVec<(ReprAttr, Span)>,
1253        first_span: Span,
1254    },
1255
1256    /// Represents `#[rustc_abi(..)]`
1257    RustcAbi {
1258        attr_span: Span,
1259        kind: RustcAbiAttrKind,
1260    },
1261
1262    /// Represents `#[align(N)]`.
1263    // FIXME(#82232, #143834): temporarily renamed to mitigate `#[align]` nameres ambiguity
1264    RustcAlign {
1265        align: Align,
1266        span: Span,
1267    },
1268
1269    /// Represents `#[rustc_allocator]`
1270    RustcAllocator,
1271
1272    /// Represents `#[rustc_allocator_zeroed]`
1273    RustcAllocatorZeroed,
1274
1275    /// Represents `#[rustc_allocator_zeroed_variant]`
1276    RustcAllocatorZeroedVariant {
1277        name: Symbol,
1278    },
1279
1280    /// Represents `#[rustc_allow_const_fn_unstable]`.
1281    RustcAllowConstFnUnstable(ThinVec<Symbol>, Span),
1282
1283    /// Represents `#[rustc_allow_incoherent_impl]`.
1284    RustcAllowIncoherentImpl(Span),
1285
1286    /// Represents `#[rustc_as_ptr]` (used by the `dangling_pointers_from_temporaries` lint).
1287    RustcAsPtr(Span),
1288
1289    /// Represents `#[rustc_autodiff]`.
1290    RustcAutodiff(Option<Box<RustcAutodiff>>),
1291
1292    /// Represents `#[rustc_default_body_unstable]`.
1293    RustcBodyStability {
1294        stability: DefaultBodyStability,
1295        /// Span of the `#[rustc_default_body_unstable(...)]` attribute
1296        span: Span,
1297    },
1298    /// Represents `#[rustc_builtin_macro]`.
1299    RustcBuiltinMacro {
1300        builtin_name: Option<Symbol>,
1301        helper_attrs: ThinVec<Symbol>,
1302        span: Span,
1303    },
1304    /// Represents `#[rustc_capture_analysis]`
1305    RustcCaptureAnalysis,
1306
1307    /// Represents `#[rustc_expected_cgu_reuse]`, `#[rustc_partition_codegened]` and `#[rustc_partition_reused]`.
1308    RustcCguTestAttr(ThinVec<(Span, CguFields)>),
1309
1310    /// Represents `#[rustc_clean]`
1311    RustcClean(ThinVec<RustcCleanAttribute>),
1312
1313    /// Represents `#[rustc_coherence_is_core]`
1314    RustcCoherenceIsCore(Span),
1315
1316    /// Represents `#[rustc_coinductive]`.
1317    RustcCoinductive(Span),
1318
1319    /// Represents `#[rustc_confusables]`.
1320    RustcConfusables {
1321        symbols: ThinVec<Symbol>,
1322        // FIXME(jdonszelmann): remove when target validation code is moved
1323        first_span: Span,
1324    },
1325    /// Represents `#[rustc_const_stable]` and `#[rustc_const_unstable]`.
1326    RustcConstStability {
1327        stability: PartialConstStability,
1328        /// Span of the `#[rustc_const_stable(...)]` or `#[rustc_const_unstable(...)]` attribute
1329        span: Span,
1330    },
1331
1332    /// Represents `#[rustc_const_stable_indirect]`.
1333    RustcConstStableIndirect,
1334
1335    /// Represents `#[rustc_conversion_suggestion]`
1336    RustcConversionSuggestion,
1337
1338    /// Represents `#[rustc_deallocator]`
1339    RustcDeallocator,
1340
1341    /// Represents `#[rustc_def_path]`
1342    RustcDefPath(Span),
1343
1344    /// Represents `#[rustc_delayed_bug_from_inside_query]`
1345    RustcDelayedBugFromInsideQuery,
1346
1347    /// Represents `#[rustc_deny_explicit_impl]`.
1348    RustcDenyExplicitImpl(Span),
1349
1350    /// Represents `#[rustc_deprecated_safe_2024]`
1351    RustcDeprecatedSafe2024 {
1352        suggestion: Symbol,
1353    },
1354    /// Represents `#[rustc_diagnostic_item]`
1355    RustcDiagnosticItem(Symbol),
1356
1357    /// Represents `#[rustc_do_not_const_check]`
1358    RustcDoNotConstCheck,
1359
1360    /// Represents `#[rustc_doc_primitive = ...]`
1361    RustcDocPrimitive(Span, Symbol),
1362
1363    /// Represents `#[rustc_dummy]`.
1364    RustcDummy,
1365
1366    /// Represents `#[rustc_dump_def_parents]`
1367    RustcDumpDefParents,
1368
1369    /// Represents `#[rustc_dump_item_bounds]`
1370    RustcDumpItemBounds,
1371
1372    /// Represents `#[rustc_dump_predicates]`
1373    RustcDumpPredicates,
1374
1375    /// Represents `#[rustc_dump_user_args]`
1376    RustcDumpUserArgs,
1377
1378    /// Represents `#[rustc_dump_vtable]`
1379    RustcDumpVtable(Span),
1380
1381    /// Represents `#[rustc_dyn_incompatible_trait]`.
1382    RustcDynIncompatibleTrait(Span),
1383
1384    /// Represents `#[rustc_effective_visibility]`.
1385    RustcEffectiveVisibility,
1386
1387    /// Implementation detail of `#[eii]`
1388    RustcEiiForeignItem,
1389
1390    /// Represents `#[rustc_evaluate_where_clauses]`
1391    RustcEvaluateWhereClauses,
1392
1393    RustcHasIncoherentInherentImpls,
1394
1395    /// Represents `#[rustc_hidden_type_of_opaques]`
1396    RustcHiddenTypeOfOpaques,
1397
1398    /// Represents `#[rustc_if_this_changed]`
1399    RustcIfThisChanged(Span, Option<Symbol>),
1400
1401    /// Represents `#[rustc_inherit_overflow_checks]`
1402    RustcInheritOverflowChecks,
1403
1404    /// Represents `#[rustc_insignificant_dtor]`
1405    RustcInsignificantDtor,
1406
1407    /// Represents `#[rustc_intrinsic]`
1408    RustcIntrinsic,
1409
1410    /// Represents `#[rustc_intrinsic_const_stable_indirect]`
1411    RustcIntrinsicConstStableIndirect,
1412
1413    /// Represents `#[rustc_layout]`
1414    RustcLayout(ThinVec<RustcLayoutType>),
1415
1416    /// Represents `#[rustc_layout_scalar_valid_range_end]`.
1417    RustcLayoutScalarValidRangeEnd(Box<u128>, Span),
1418
1419    /// Represents `#[rustc_layout_scalar_valid_range_start]`.
1420    RustcLayoutScalarValidRangeStart(Box<u128>, Span),
1421
1422    /// Represents `#[rustc_legacy_const_generics]`
1423    RustcLegacyConstGenerics {
1424        fn_indexes: ThinVec<(usize, Span)>,
1425        attr_span: Span,
1426    },
1427
1428    /// Represents `#[rustc_lint_opt_deny_field_access]`
1429    RustcLintOptDenyFieldAccess {
1430        lint_message: Symbol,
1431    },
1432
1433    /// Represents `#[rustc_lint_opt_ty]`
1434    RustcLintOptTy,
1435
1436    /// Represents `#[rustc_lint_query_instability]`
1437    RustcLintQueryInstability,
1438
1439    /// Represents `#[rustc_lint_untracked_query_information]`
1440    RustcLintUntrackedQueryInformation,
1441
1442    /// Represents `#[rustc_macro_transparency]`.
1443    RustcMacroTransparency(Transparency),
1444
1445    /// Represents `#[rustc_main]`.
1446    RustcMain,
1447
1448    /// Represents `#[rustc_mir]`.
1449    RustcMir(ThinVec<RustcMirKind>),
1450
1451    /// Represents `#[rustc_must_implement_one_of]`
1452    RustcMustImplementOneOf {
1453        attr_span: Span,
1454        fn_names: ThinVec<Ident>,
1455    },
1456
1457    /// Represents `#[rustc_never_returns_null_ptr]`
1458    RustcNeverReturnsNullPtr,
1459
1460    /// Represents `#[rustc_never_type_options]`.
1461    RustcNeverTypeOptions {
1462        fallback: Option<DivergingFallbackBehavior>,
1463        diverging_block_default: Option<DivergingBlockBehavior>,
1464    },
1465
1466    /// Represents `#[rustc_no_implicit_autorefs]`
1467    RustcNoImplicitAutorefs,
1468
1469    /// Represents `#[rustc_no_implicit_bounds]`
1470    RustcNoImplicitBounds,
1471
1472    /// Represents `#[rustc_no_mir_inline]`
1473    RustcNoMirInline,
1474
1475    /// Represents `#[rustc_non_const_trait_method]`.
1476    RustcNonConstTraitMethod,
1477
1478    /// Represents `#[rustc_nonnull_optimization_guaranteed]`.
1479    RustcNonnullOptimizationGuaranteed,
1480
1481    /// Represents `#[rustc_nounwind]`
1482    RustcNounwind,
1483
1484    /// Represents `#[rustc_objc_class]`
1485    RustcObjcClass {
1486        classname: Symbol,
1487        span: Span,
1488    },
1489
1490    /// Represents `#[rustc_objc_selector]`
1491    RustcObjcSelector {
1492        methname: Symbol,
1493        span: Span,
1494    },
1495
1496    /// Represents `#[rustc_object_lifetime_default]`.
1497    RustcObjectLifetimeDefault,
1498
1499    /// Represents `#[rustc_offload_kernel]`
1500    RustcOffloadKernel,
1501
1502    /// Represents `#[rustc_outlives]`
1503    RustcOutlives,
1504
1505    /// Represents `#[rustc_paren_sugar]`.
1506    RustcParenSugar(Span),
1507
1508    /// Represents `#[rustc_pass_by_value]` (used by the `rustc_pass_by_value` lint).
1509    RustcPassByValue(Span),
1510
1511    /// Represents `#[rustc_pass_indirectly_in_non_rustic_abis]`
1512    RustcPassIndirectlyInNonRusticAbis(Span),
1513
1514    /// Represents `#[rustc_preserve_ub_checks]`
1515    RustcPreserveUbChecks,
1516
1517    /// Represents `#[rustc_proc_macro_decls]`
1518    RustcProcMacroDecls,
1519
1520    /// Represents `#[rustc_pub_transparent]` (used by the `repr_transparent_external_private_fields` lint).
1521    RustcPubTransparent(Span),
1522
1523    /// Represents `#[rustc_reallocator]`
1524    RustcReallocator,
1525
1526    /// Represents `#[rustc_regions]`
1527    RustcRegions,
1528
1529    /// Represents `#[rustc_reservation_impl]`
1530    RustcReservationImpl(Span, Symbol),
1531
1532    /// Represents `#[rustc_scalable_vector(N)]`
1533    RustcScalableVector {
1534        /// The base multiple of lanes that are in a scalable vector, if provided. `element_count`
1535        /// is not provided for representing tuple types.
1536        element_count: Option<u16>,
1537        span: Span,
1538    },
1539
1540    /// Represents `#[rustc_should_not_be_called_on_const_items]`
1541    RustcShouldNotBeCalledOnConstItems(Span),
1542
1543    /// Represents `#[rustc_simd_monomorphize_lane_limit = "N"]`.
1544    RustcSimdMonomorphizeLaneLimit(Limit),
1545
1546    /// Represents `#[rustc_skip_during_method_dispatch]`.
1547    RustcSkipDuringMethodDispatch {
1548        array: bool,
1549        boxed_slice: bool,
1550        span: Span,
1551    },
1552
1553    /// Represents `#[rustc_specialization_trait]`.
1554    RustcSpecializationTrait(Span),
1555
1556    /// Represents `#[rustc_std_internal_symbol]`.
1557    RustcStdInternalSymbol(Span),
1558
1559    /// Represents `#[rustc_strict_coherence]`.
1560    RustcStrictCoherence(Span),
1561
1562    /// Represents `#[rustc_symbol_name]`
1563    RustcSymbolName(Span),
1564
1565    /// Represents `#[rustc_test_marker]`
1566    RustcTestMarker(Symbol),
1567
1568    /// Represents `#[rustc_then_this_would_need]`
1569    RustcThenThisWouldNeed(Span, ThinVec<Ident>),
1570
1571    /// Represents `#[rustc_trivial_field_reads]`
1572    RustcTrivialFieldReads,
1573
1574    /// Represents `#[rustc_unsafe_specialization_marker]`.
1575    RustcUnsafeSpecializationMarker(Span),
1576
1577    /// Represents `#[rustc_variance]`
1578    RustcVariance,
1579
1580    /// Represents `#[rustc_variance_of_opaques]`
1581    RustcVarianceOfOpaques,
1582
1583    /// Represents `#[sanitize]`
1584    ///
1585    /// the on set and off set are distjoint since there's a third option: unset.
1586    /// a node may not set the sanitizer setting in which case it inherits from parents.
1587    /// rtsan is unset if None
1588    Sanitize {
1589        on_set: SanitizerSet,
1590        off_set: SanitizerSet,
1591        rtsan: Option<RtsanSetting>,
1592        span: Span,
1593    },
1594
1595    /// Represents `#[should_panic]`
1596    ShouldPanic {
1597        reason: Option<Symbol>,
1598        span: Span,
1599    },
1600
1601    /// Represents `#[stable]`, `#[unstable]` and `#[rustc_allowed_through_unstable_modules]`.
1602    Stability {
1603        stability: Stability,
1604        /// Span of the attribute.
1605        span: Span,
1606    },
1607
1608    /// Represents `#[target_feature(enable = "...")]` and
1609    /// `#[unsafe(force_target_feature(enable = "...")]`.
1610    TargetFeature {
1611        features: ThinVec<(Symbol, Span)>,
1612        attr_span: Span,
1613        was_forced: bool,
1614    },
1615
1616    /// Represents `#![test_runner(path)]`
1617    TestRunner(Path),
1618
1619    /// Represents `#[thread_local]`
1620    ThreadLocal,
1621
1622    /// Represents `#[track_caller]`
1623    TrackCaller(Span),
1624
1625    /// Represents `#[type_length_limit]`
1626    TypeLengthLimit {
1627        attr_span: Span,
1628        limit_span: Span,
1629        limit: Limit,
1630    },
1631
1632    /// Represents `#[unstable_feature_bound]`.
1633    UnstableFeatureBound(ThinVec<(Symbol, Span)>),
1634
1635    /// Represents `#[used]`
1636    Used {
1637        used_by: UsedBy,
1638        span: Span,
1639    },
1640
1641    /// Represents `#[windows_subsystem]`.
1642    WindowsSubsystem(WindowsSubsystemKind, Span),
1643    // tidy-alphabetical-end
1644}