Skip to main content

rustc_session/
options.rs

1use std::collections::BTreeMap;
2use std::num::{IntErrorKind, NonZero};
3use std::path::PathBuf;
4use std::str;
5
6use rustc_abi::Align;
7use rustc_ast::attr::version::RustcVersion;
8use rustc_data_structures::profiling::TimePassesFormat;
9use rustc_data_structures::stable_hash::StableHasher;
10use rustc_errors::{ColorConfig, TerminalUrl};
11use rustc_feature::UnstableFeatures;
12use rustc_hashes::Hash64;
13use rustc_macros::{BlobDecodable, Encodable};
14use rustc_span::edit_distance::edit_distance;
15use rustc_span::edition::Edition;
16use rustc_span::{RealFileName, RemapPathScopeComponents, SourceFileHashAlgorithm};
17use rustc_structures::{CollapseMacroDebuginfo, CrateType};
18use rustc_target::spec::{
19    CodeModel, FramePointer, LinkerFlavorCli, MergeFunctions, OnBrokenPipe, PanicStrategy,
20    RelocModel, RelroLevel, SanitizerSet, SplitDebuginfo, StackProtector, SymbolVisibility,
21    TargetTuple, TlsModel,
22};
23
24use crate::config::*;
25use crate::search_paths::SearchPath;
26use crate::utils::NativeLib;
27use crate::{EarlyDiagCtxt, Session, lint};
28
29macro_rules! insert {
30    ($opt_name:ident, $opt_expr:expr, $sub_hashes:expr) => {
31        if $sub_hashes
32            .insert(stringify!($opt_name), $opt_expr as &dyn dep_tracking::DepTrackingHash)
33            .is_some()
34        {
35            panic!("duplicate key in CLI DepTrackingHash: {}", stringify!($opt_name))
36        }
37    };
38}
39
40macro_rules! hash_opt {
41    ($opt_name:ident, $opt_expr:expr, $sub_hashes:expr, $_for_crate_hash: ident, [UNTRACKED]) => {{}};
42    ($opt_name:ident, $opt_expr:expr, $sub_hashes:expr, $_for_crate_hash: ident, [TRACKED]) => {{ insert!($opt_name, $opt_expr, $sub_hashes) }};
43    ($opt_name:ident, $opt_expr:expr, $sub_hashes:expr, $for_crate_hash: ident, [TRACKED_NO_CRATE_HASH]) => {{
44        if !$for_crate_hash {
45            insert!($opt_name, $opt_expr, $sub_hashes)
46        }
47    }};
48    ($opt_name:ident, $opt_expr:expr, $sub_hashes:expr, $_for_crate_hash: ident, [SUBSTRUCT]) => {{}};
49}
50
51macro_rules! hash_substruct {
52    ($opt_name:ident, $opt_expr:expr, $error_format:expr, $for_crate_hash:expr, $hasher:expr, [UNTRACKED]) => {{}};
53    ($opt_name:ident, $opt_expr:expr, $error_format:expr, $for_crate_hash:expr, $hasher:expr, [TRACKED]) => {{}};
54    ($opt_name:ident, $opt_expr:expr, $error_format:expr, $for_crate_hash:expr, $hasher:expr, [TRACKED_NO_CRATE_HASH]) => {{}};
55    ($opt_name:ident, $opt_expr:expr, $error_format:expr, $for_crate_hash:expr, $hasher:expr, [SUBSTRUCT]) => {{
56        use crate::config::dep_tracking::DepTrackingHash;
57        $opt_expr.dep_tracking_hash($for_crate_hash, $error_format).hash(
58            $hasher,
59            $error_format,
60            $for_crate_hash,
61        );
62    }};
63}
64
65/// Extended target modifier info.
66/// For example, when external target modifier is '-Zregparm=2':
67/// Target modifier enum value + user value ('2') from external crate
68/// is converted into description: prefix ('Z'), name ('regparm'), tech value ('Some(2)').
69pub struct ExtendedTargetModifierInfo {
70    /// Flag prefix (usually, 'C' for codegen flags or 'Z' for unstable flags). And empty string
71    /// indicates a synthetic target modifier, which does not correspond directly to a flag.
72    pub prefix: String,
73    /// Flag name. For synthetic features, this is still relevant as the name used to suppress
74    /// the error for mismatches involving this target modifier.
75    pub name: String,
76    /// Flag parsed technical value
77    pub tech_value: String,
78}
79
80/// A recorded -Zopt_name=opt_value (or -Copt_name=opt_value)
81/// which alter the ABI or effectiveness of exploit mitigations.
82#[derive(#[automatically_derived]impl ::core::fmt::Debug for TargetModifier {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_struct_field2_finish(f,
            "TargetModifier opt value_name", &self.opt, &&self.value_name)
    }
}Debug, #[automatically_derived]impl ::core::clone::Clone for TargetModifier {
    #[inline]
    fn clone(&self) -> Self {
        TargetModifier {
            opt: ::core::clone::Clone::clone(&self.opt),
            value_name: ::core::clone::Clone::clone(&self.value_name),
        }
    }
}Clone, #[automatically_derived]impl ::core::marker::StructuralPartialEq for
    TargetModifier {
}
#[automatically_derived]impl ::core::cmp::PartialEq for TargetModifier {
    #[inline]
    fn eq(&self, other: &Self) -> bool {
        self.opt == other.opt && self.value_name == other.value_name
    }
}PartialEq, #[automatically_derived]impl ::core::cmp::Eq for TargetModifier {
    #[inline]
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {
        let _: ::core::cmp::AssertParamIsEq<OptionsTargetModifiers>;
        let _: ::core::cmp::AssertParamIsEq<String>;
    }
}Eq, #[automatically_derived]impl ::core::cmp::PartialOrd for TargetModifier {
    #[inline]
    fn partial_cmp(&self, other: &Self)
        -> ::core::option::Option<::core::cmp::Ordering> {
        ::core::option::Option::Some(::core::cmp::Ord::cmp(self, other))
    }
}PartialOrd, #[automatically_derived]impl ::core::cmp::Ord for TargetModifier {
    #[inline]
    fn cmp(&self, other: &Self) -> ::core::cmp::Ordering {
        match ::core::cmp::Ord::cmp(&self.opt, &other.opt) {
            ::core::cmp::Ordering::Equal =>
                ::core::cmp::Ord::cmp(&self.value_name, &other.value_name),
            cmp => cmp,
        }
    }
}Ord, const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for TargetModifier {
            fn encode(&self, __encoder: &mut __E) {
                let TargetModifier {
                        opt: ref __binding_0, value_name: ref __binding_1 } = *self;
                ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                    __encoder);
                ::rustc_serialize::Encodable::<__E>::encode(__binding_1,
                    __encoder);
            }
        }
    };Encodable, const _: () =
    {
        impl<__D: ::rustc_span::BlobDecoder> ::rustc_serialize::Decodable<__D>
            for TargetModifier {
            fn decode(__decoder: &mut __D) -> Self {
                TargetModifier {
                    opt: ::rustc_serialize::Decodable::decode(__decoder),
                    value_name: ::rustc_serialize::Decodable::decode(__decoder),
                }
            }
        }
    };BlobDecodable)]
83pub struct TargetModifier {
84    /// Option enum value
85    pub opt: OptionsTargetModifiers,
86    /// User-provided option value (before parsing)
87    pub value_name: String,
88}
89
90pub mod mitigation_coverage;
91
92mod target_modifier_consistency_check {
93    use super::*;
94    pub(super) fn sanitizer(
95        sess: &Session,
96        l: &TargetModifier,
97        r: Option<&TargetModifier>,
98    ) -> bool {
99        let mut lparsed: SanitizerSet = SanitizerSet::empty();
100        let lval = if l.value_name.is_empty() { None } else { Some(l.value_name.as_str()) };
101        parse::parse_sanitizers(&mut lparsed, lval);
102        let lparsed = lparsed.combine_with_defaults(sess.target.options.default_sanitizers);
103
104        let mut rparsed: SanitizerSet = SanitizerSet::empty();
105        let rval = r.filter(|v| !v.value_name.is_empty()).map(|v| v.value_name.as_str());
106        parse::parse_sanitizers(&mut rparsed, rval);
107        let rparsed = rparsed.combine_with_defaults(sess.target.options.default_sanitizers);
108
109        // Some sanitizers need to be target modifiers, and some do not.
110        // For now, we should mark all sanitizers as target modifiers except for these:
111        // AddressSanitizer, LeakSanitizer
112        let tmod_sanitizers = SanitizerSet::MEMORY
113            | SanitizerSet::THREAD
114            | SanitizerSet::HWADDRESS
115            | SanitizerSet::CFI
116            | SanitizerSet::MEMTAG
117            | SanitizerSet::SHADOWCALLSTACK
118            | SanitizerSet::KCFI
119            | SanitizerSet::KERNELADDRESS
120            | SanitizerSet::KERNELHWADDRESS
121            | SanitizerSet::SAFESTACK
122            | SanitizerSet::DATAFLOW;
123
124        lparsed & tmod_sanitizers == rparsed & tmod_sanitizers
125    }
126    pub(super) fn sanitizer_cfi_normalize_integers(
127        sess: &Session,
128        l: &TargetModifier,
129        r: Option<&TargetModifier>,
130    ) -> bool {
131        // For kCFI, the helper flag -Zsanitizer-cfi-normalize-integers should also be a target modifier
132        if sess.sanitizers().contains(SanitizerSet::KCFI) {
133            if let Some(r) = r {
134                return l.extend().tech_value == r.extend().tech_value;
135            } else {
136                return false;
137            }
138        }
139        true
140    }
141    pub(super) fn sanitizer_cfi_minimal_runtime(
142        sess: &Session,
143        l: &TargetModifier,
144        r: Option<&TargetModifier>,
145    ) -> bool {
146        // For CFI, the helper flag -Zsanitizer-cfi-minimal-runtime should also be a target modifier
147        if sess.sanitizers().contains(SanitizerSet::CFI) {
148            if let Some(r) = r {
149                return l.extend().tech_value == r.extend().tech_value;
150            } else {
151                return false;
152            }
153        }
154        true
155    }
156    pub(super) fn target_cpu(
157        sess: &Session,
158        l: &TargetModifier,
159        r: Option<&TargetModifier>,
160    ) -> bool {
161        if !sess.target.requires_consistent_cpu {
162            return true;
163        }
164        let l_tech_value = l.extend().tech_value;
165        let r_tech_value = match r {
166            Some(r) => r.extend().tech_value,
167            // If only one of the two compared crates specifies the CPU
168            // explicitly we compare against the target's default CPU.
169            None => {
170                // We reuse the same parsing logic.
171                CodegenOptionsTargetModifiers::TargetCpu
172                    .reparse(sess.target.cpu.as_ref())
173                    .tech_value
174            }
175        };
176        l_tech_value == r_tech_value
177    }
178}
179
180impl TargetModifier {
181    pub fn extend(&self) -> ExtendedTargetModifierInfo {
182        self.opt.reparse(&self.value_name)
183    }
184    // Custom consistency check for target modifiers (or default `l.tech_value == r.tech_value`)
185    // When other is None, consistency with default value is checked
186    pub fn consistent(&self, sess: &Session, other: Option<&TargetModifier>) -> bool {
187        if !(other.is_none() || self.opt == other.unwrap().opt) {
    ::core::panicking::panic("assertion failed: other.is_none() || self.opt == other.unwrap().opt")
};assert!(other.is_none() || self.opt == other.unwrap().opt);
188        match self.opt {
189            OptionsTargetModifiers::UnstableOptions(unstable) => match unstable {
190                UnstableOptionsTargetModifiers::Sanitizer => {
191                    return target_modifier_consistency_check::sanitizer(sess, self, other);
192                }
193                UnstableOptionsTargetModifiers::SanitizerCfiNormalizeIntegers => {
194                    return target_modifier_consistency_check::sanitizer_cfi_normalize_integers(
195                        sess, self, other,
196                    );
197                }
198                UnstableOptionsTargetModifiers::SanitizerCfiMinimalRuntime => {
199                    return target_modifier_consistency_check::sanitizer_cfi_minimal_runtime(
200                        sess, self, other,
201                    );
202                }
203                _ => {}
204            },
205            OptionsTargetModifiers::CodegenOptions(codegen) => match codegen {
206                CodegenOptionsTargetModifiers::TargetCpu => {
207                    return target_modifier_consistency_check::target_cpu(sess, self, other);
208                }
209            },
210            _ => {}
211        };
212        match other {
213            Some(other) => self.extend().tech_value == other.extend().tech_value,
214            None => false,
215        }
216    }
217}
218
219fn tmod_push_impl(
220    opt: OptionsTargetModifiers,
221    tmod_vals: &BTreeMap<OptionsTargetModifiers, String>,
222    tmods: &mut Vec<TargetModifier>,
223) {
224    if let Some(v) = tmod_vals.get(&opt) {
225        tmods.push(TargetModifier { opt, value_name: v.clone() })
226    }
227}
228
229macro_rules! top_level_options {
230    (
231        $(#[$top_level_attr:meta])*
232        pub struct Options {
233            $(
234                $(#[$attr:meta])*
235                $opt:ident : $t:ty
236                [$dep_tracking_marker:ident]
237                $( { TARGET_MODIFIER: $tmod_variant:ident($tmod_enum:ident) } )?
238                ,
239            )*
240        }
241    ) => {
242        #[derive(PartialEq, Eq, PartialOrd, Ord, Debug, Copy, Clone, Encodable, BlobDecodable)]
243        pub enum OptionsTargetModifiers {
244            $(
245                $(
246                    $tmod_variant($tmod_enum),
247                )?
248            )*
249            // Synthetic target modifiers, manually computed.
250            /// List of target features that are actually target modifiers.
251            TargetFeatures,
252        }
253
254        impl OptionsTargetModifiers {
255            pub fn reparse(&self, user_value: &str) -> ExtendedTargetModifierInfo {
256                match self {
257                    $(
258                        $(
259                            Self::$tmod_variant(v) => v.reparse(user_value),
260                        )?
261                    )*
262
263                    // Synthetic target modifiers.
264                    Self::TargetFeatures => {
265                        ExtendedTargetModifierInfo {
266                            prefix: String::new(),
267                            name: "target-feature".into(),
268                            tech_value: format!("{:?}", user_value),
269                        }
270                    }
271
272                    #[allow(unreachable_patterns)]
273                    _ => panic!("unknown target modifier option: {self:?}"),
274                }
275            }
276
277            /// Used by `-Cunsafe-allow-abi-mismatch` to determine whether this is a valid thing to
278            /// allow.
279            pub fn is_target_modifier(flag_name: &str) -> bool {
280                $(
281                    $(
282                        if $tmod_enum::is_target_modifier(flag_name) {
283                            return true
284                        }
285                    )?
286                )*
287
288                // Synthetic target modifiers. The names must match `reparse` above.
289                if flag_name == "target-feature" {
290                    return true;
291                }
292
293                false
294            }
295        }
296
297        #[derive(Clone)]
298        $(#[$top_level_attr])*
299        pub struct Options {
300            $(
301                $(#[$attr])*
302                pub $opt: $t,
303            )*
304            /// Store values for target modifiers. `gather_target_modifiers` takes those values
305            /// to decide what to store in metadata.
306            pub target_modifiers: BTreeMap<OptionsTargetModifiers, String>,
307            pub mitigation_coverage_map: mitigation_coverage::MitigationCoverageMap,
308        }
309
310        impl Options {
311            pub fn dep_tracking_hash(&self, for_crate_hash: bool) -> Hash64 {
312                let mut sub_hashes = BTreeMap::new();
313                $(
314                    hash_opt!(
315                        $opt,
316                        &self.$opt,
317                        &mut sub_hashes,
318                        for_crate_hash,
319                        [$dep_tracking_marker]
320                    );
321                )*
322                let mut hasher = StableHasher::new();
323                dep_tracking::stable_hash(
324                    sub_hashes,
325                    &mut hasher,
326                    self.error_format,
327                    for_crate_hash,
328                );
329                $(
330                    hash_substruct!(
331                        $opt,
332                        &self.$opt,
333                        self.error_format,
334                        for_crate_hash,
335                        &mut hasher,
336                        [$dep_tracking_marker]
337                    );
338                )*
339                hasher.finish()
340            }
341
342            pub fn gather_target_modifiers(&self) -> Vec<TargetModifier> {
343                let mut mods = Vec::<TargetModifier>::new();
344                // Forward values from `self.target_modifiers` into `mods`.
345                $(
346                    $(
347                        // Only expand for flags that have `TARGET_MODIFIER`.
348                        ${ignore($tmod_enum)}
349                        self.$opt.gather_target_modifiers(&mut mods, &self.target_modifiers);
350                    )?
351                )*
352                tmod_push_impl(OptionsTargetModifiers::TargetFeatures, &self.target_modifiers, &mut mods);
353                mods.sort_by(|a, b| a.opt.cmp(&b.opt));
354                mods
355            }
356        }
357    }
358}
359
360pub enum OptionsTargetModifiers {
    UnstableOptions(UnstableOptionsTargetModifiers),
    CodegenOptions(CodegenOptionsTargetModifiers),

    /// List of target features that are actually target modifiers.
    TargetFeatures,
}
#[automatically_derived]impl ::core::marker::StructuralPartialEq for
    OptionsTargetModifiers {
}
#[automatically_derived]impl ::core::cmp::PartialEq for OptionsTargetModifiers
    {
    #[inline]
    fn eq(&self, other: &Self) -> bool {
        ::core::intrinsics::discriminant_value(self) ==
                ::core::intrinsics::discriminant_value(other) &&
            match (self, other) {
                (Self::UnstableOptions(__self_0),
                    Self::UnstableOptions(__arg1_0)) => __self_0 == __arg1_0,
                (Self::CodegenOptions(__self_0),
                    Self::CodegenOptions(__arg1_0)) => __self_0 == __arg1_0,
                _ => true,
            }
    }
}
#[automatically_derived]impl ::core::cmp::Eq for OptionsTargetModifiers {
    #[inline]
    #[doc(hidden)]
    #[coverage(off)]
    fn assert_fields_are_eq(&self) {
        let _: ::core::cmp::AssertParamIsEq<UnstableOptionsTargetModifiers>;
        let _: ::core::cmp::AssertParamIsEq<CodegenOptionsTargetModifiers>;
    }
}
#[automatically_derived]impl ::core::cmp::PartialOrd for
    OptionsTargetModifiers {
    #[inline]
    fn partial_cmp(&self, other: &Self)
        -> ::core::option::Option<::core::cmp::Ordering> {
        ::core::option::Option::Some(::core::cmp::Ord::cmp(self, other))
    }
}
#[automatically_derived]impl ::core::cmp::Ord for OptionsTargetModifiers {
    #[inline]
    fn cmp(&self, other: &Self) -> ::core::cmp::Ordering {
        match (self, other) {
            (Self::UnstableOptions(__self_0), Self::UnstableOptions(__arg1_0))
                => ::core::cmp::Ord::cmp(__self_0, __arg1_0),
            (Self::CodegenOptions(__self_0), Self::CodegenOptions(__arg1_0))
                => ::core::cmp::Ord::cmp(__self_0, __arg1_0),
            _ =>
                ::core::cmp::Ord::cmp(&::core::intrinsics::discriminant_value(self),
                    &::core::intrinsics::discriminant_value(other)),
        }
    }
}
#[automatically_derived]impl ::core::fmt::Debug for OptionsTargetModifiers {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        match self {
            Self::UnstableOptions(__self_0) =>
                ::core::fmt::Formatter::debug_struct_field1_finish(f,
                    "UnstableOptions", &__self_0),
            Self::CodegenOptions(__self_0) =>
                ::core::fmt::Formatter::debug_struct_field1_finish(f,
                    "CodegenOptions", &__self_0),
            Self::TargetFeatures =>
                ::core::fmt::Formatter::write_str(f, "TargetFeatures"),
        }
    }
}
#[automatically_derived]impl ::core::marker::Copy for OptionsTargetModifiers {
}
#[automatically_derived]#[doc(hidden)]unsafe impl ::core::clone::TrivialClone
    for OptionsTargetModifiers {
}
#[automatically_derived]impl ::core::clone::Clone for OptionsTargetModifiers {
    #[inline]
    fn clone(&self) -> Self {
        let _:
                ::core::clone::AssertParamIsClone<UnstableOptionsTargetModifiers>;
        let _:
                ::core::clone::AssertParamIsClone<CodegenOptionsTargetModifiers>;
        *self
    }
}
const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for OptionsTargetModifiers {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        OptionsTargetModifiers::UnstableOptions(ref __binding_0) =>
                            {
                            0usize
                        }
                        OptionsTargetModifiers::CodegenOptions(ref __binding_0) => {
                            1usize
                        }
                        OptionsTargetModifiers::TargetFeatures => { 2usize }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
                match *self {
                    OptionsTargetModifiers::UnstableOptions(ref __binding_0) =>
                        {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    OptionsTargetModifiers::CodegenOptions(ref __binding_0) => {
                        ::rustc_serialize::Encodable::<__E>::encode(__binding_0,
                            __encoder);
                    }
                    OptionsTargetModifiers::TargetFeatures => {}
                }
            }
        }
    };
const _: () =
    {
        impl<__D: ::rustc_span::BlobDecoder> ::rustc_serialize::Decodable<__D>
            for OptionsTargetModifiers {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => {
                        OptionsTargetModifiers::UnstableOptions(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    1usize => {
                        OptionsTargetModifiers::CodegenOptions(::rustc_serialize::Decodable::decode(__decoder))
                    }
                    2usize => { OptionsTargetModifiers::TargetFeatures }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `OptionsTargetModifiers`, expected 0..3, actual {0}",
                                n));
                    }
                }
            }
        }
    };
impl OptionsTargetModifiers {
    pub fn reparse(&self, user_value: &str) -> ExtendedTargetModifierInfo {
        match self {
            Self::UnstableOptions(v) => v.reparse(user_value),
            Self::CodegenOptions(v) => v.reparse(user_value),
            Self::TargetFeatures => {
                ExtendedTargetModifierInfo {
                    prefix: String::new(),
                    name: "target-feature".into(),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", user_value))
                        }),
                }
            }
                #[allow(unreachable_patterns)]
                _ => {
                ::core::panicking::panic_fmt(format_args!("unknown target modifier option: {0:?}",
                        self));
            }
        }
    }
    /// Used by `-Cunsafe-allow-abi-mismatch` to determine whether this is a valid thing to
    /// allow.
    pub fn is_target_modifier(flag_name: &str) -> bool {
        if UnstableOptionsTargetModifiers::is_target_modifier(flag_name) {
            return true
        }
        if CodegenOptionsTargetModifiers::is_target_modifier(flag_name) {
            return true
        }
        if flag_name == "target-feature" { return true; }
        false
    }
}
#[doc = r" The top-level command-line options struct."]
#[doc = r""]
#[doc =
r" For each option, one has to specify how it behaves with regard to the"]
#[doc =
r" dependency tracking system of incremental compilation. This is done via the"]
#[doc = r" square-bracketed directive after the field type. The options are:"]
#[doc = r""]
#[doc = r" - `[TRACKED]`"]
#[doc =
r" A change in the given field will cause the compiler to completely clear the"]
#[doc = r" incremental compilation cache before proceeding."]
#[doc = r""]
#[doc = r" - `[TRACKED_NO_CRATE_HASH]`"]
#[doc =
r" Same as `[TRACKED]`, but will not affect the crate hash. This is useful for options that"]
#[doc = r" only affect the incremental cache."]
#[doc = r""]
#[doc = r" - `[UNTRACKED]`"]
#[doc = r" Incremental compilation is not influenced by this option."]
#[doc = r""]
#[doc = r" - `[SUBSTRUCT]`"]
#[doc = r" Second-level sub-structs containing more options."]
#[doc = r""]
#[doc =
r" If you add a new option to this struct or one of the sub-structs like"]
#[doc =
r" `CodegenOptions`, think about how it influences incremental compilation. If in"]
#[doc =
r#" doubt, specify `[TRACKED]`, which is always "correct" but might lead to"#]
#[doc = r" unnecessary re-compilation."]
#[rustc_lint_opt_ty]
pub struct Options {
    #[doc =
    r" The crate config requested for the session, which may be combined"]
    #[doc =
    r" with additional crate configurations during the compile process."]
    #[rustc_lint_opt_deny_field_access("use `TyCtxt::crate_types` instead of this field")]
    pub crate_types: Vec<CrateType>,
    pub optimize: OptLevel,
    #[doc =
    r" Include the `debug_assertions` flag in dependency tracking, since it"]
    #[doc = r" can influence whether overflow checks are done or not."]
    pub debug_assertions: bool,
    pub debuginfo: DebugInfo,
    pub lint_opts: Vec<(String, lint::Level)>,
    pub lint_cap: Option<lint::Level>,
    pub describe_lints: bool,
    pub output_types: OutputTypes,
    pub search_paths: Vec<SearchPath>,
    pub libs: Vec<NativeLib>,
    pub sysroot: Sysroot,
    pub target_triple: TargetTuple,
    pub test: bool,
    pub error_format: ErrorOutputType,
    pub diagnostic_width: Option<usize>,
    #[doc = r" If `Some`, enable incremental compilation, using the given"]
    #[doc = r" directory to store intermediate results."]
    pub incremental: Option<PathBuf>,
    pub unstable_opts: UnstableOptions,
    pub prints: Vec<PrintRequest>,
    pub cg: CodegenOptions,
    pub externs: Externs,
    pub crate_name: Option<String>,
    #[doc = r" Indicates how the compiler should treat unstable features."]
    pub unstable_features: UnstableFeatures,
    #[doc =
    r" Indicates whether this run of the compiler is actually rustdoc. This"]
    #[doc =
    r" is currently just a hack and will be removed eventually, so please"]
    #[doc = r" try to not rely on this too much."]
    pub actually_rustdoc: bool,
    #[doc = r" Whether name resolver should resolve documentation links."]
    pub resolve_doc_links: ResolveDocLinks,
    #[doc = r" Control path trimming."]
    pub trimmed_def_paths: bool,
    #[doc =
    r" Specifications of codegen units / ThinLTO which are forced as a"]
    #[doc =
    r" result of parsing command line options. These are not necessarily"]
    #[doc = r" what rustc was invoked with, but massaged a bit to agree with"]
    #[doc =
    r" commands like `--emit llvm-ir` which they're often incompatible with"]
    #[doc = r" if we otherwise use the defaults of rustc."]
    #[rustc_lint_opt_deny_field_access("use `Session::codegen_units` instead of this field")]
    pub cli_forced_codegen_units: Option<usize>,
    #[rustc_lint_opt_deny_field_access("use `Session::lto` instead of this field")]
    pub cli_forced_local_thinlto_off: bool,
    #[doc =
    r" Remap source path prefixes in all output (messages, object files, debug, etc.)."]
    pub remap_path_prefix: Vec<(PathBuf, PathBuf)>,
    #[doc =
    r" Defines which scopes of paths should be remapped by `--remap-path-prefix`."]
    pub remap_path_scope: RemapPathScopeComponents,
    #[doc =
    r" Base directory containing the `library/` directory for the Rust standard library."]
    #[doc = r" Right now it's always `$sysroot/lib/rustlib/src/rust`"]
    #[doc = r" (i.e. the `rustup` `rust-src` component)."]
    #[doc = r""]
    #[doc =
    r" This directory is what the virtual `/rustc/$hash` is translated back to,"]
    #[doc =
    r" if Rust was built with path remapping to `/rustc/$hash` enabled"]
    #[doc = r" (the `rust.remap-debuginfo` option in `bootstrap.toml`)."]
    pub real_rust_source_base_dir: Option<PathBuf>,
    #[doc =
    r" Base directory containing the `compiler/` directory for the rustc sources."]
    #[doc = r" Right now it's always `$sysroot/lib/rustlib/rustc-src/rust`"]
    #[doc = r" (i.e. the `rustup` `rustc-dev` component)."]
    #[doc = r""]
    #[doc =
    r" This directory is what the virtual `/rustc-dev/$hash` is translated back to,"]
    #[doc =
    r" if Rust was built with path remapping to `/rustc/$hash` enabled"]
    #[doc = r" (the `rust.remap-debuginfo` option in `bootstrap.toml`)."]
    pub real_rustc_dev_source_base_dir: Option<PathBuf>,
    pub edition: Edition,
    #[doc =
    r" `true` if we're emitting JSON blobs about each artifact produced"]
    #[doc = r" by the compiler."]
    pub json_artifact_notifications: bool,
    #[doc =
    r" `true` if we're emitting JSON timings with the start and end of"]
    #[doc = r" high-level compilation sections"]
    pub json_timings: bool,
    #[doc =
    r" `true` if we're emitting a JSON blob containing the unused externs"]
    pub json_unused_externs: JsonUnusedExterns,
    #[doc =
    r" `true` if we're emitting a JSON job containing a future-incompat report for lints"]
    pub json_future_incompat: bool,
    pub pretty: Option<PpMode>,
    #[doc = r" The (potentially remapped) working directory"]
    #[rustc_lint_opt_deny_field_access("use `SourceMap::working_dir` instead of this field")]
    pub working_dir: RealFileName,
    pub color: ColorConfig,
    pub verbose: bool,
    pub jobs: Jobs,
    pub recommended_stack_size: usize,
    /// Store values for target modifiers. `gather_target_modifiers` takes those values
    /// to decide what to store in metadata.
    pub target_modifiers: BTreeMap<OptionsTargetModifiers, String>,
    pub mitigation_coverage_map: mitigation_coverage::MitigationCoverageMap,
}
#[automatically_derived]impl ::core::clone::Clone for Options {
    #[inline]
    fn clone(&self) -> Self {
        Options {
            crate_types: ::core::clone::Clone::clone(&self.crate_types),
            optimize: ::core::clone::Clone::clone(&self.optimize),
            debug_assertions: ::core::clone::Clone::clone(&self.debug_assertions),
            debuginfo: ::core::clone::Clone::clone(&self.debuginfo),
            lint_opts: ::core::clone::Clone::clone(&self.lint_opts),
            lint_cap: ::core::clone::Clone::clone(&self.lint_cap),
            describe_lints: ::core::clone::Clone::clone(&self.describe_lints),
            output_types: ::core::clone::Clone::clone(&self.output_types),
            search_paths: ::core::clone::Clone::clone(&self.search_paths),
            libs: ::core::clone::Clone::clone(&self.libs),
            sysroot: ::core::clone::Clone::clone(&self.sysroot),
            target_triple: ::core::clone::Clone::clone(&self.target_triple),
            test: ::core::clone::Clone::clone(&self.test),
            error_format: ::core::clone::Clone::clone(&self.error_format),
            diagnostic_width: ::core::clone::Clone::clone(&self.diagnostic_width),
            incremental: ::core::clone::Clone::clone(&self.incremental),
            unstable_opts: ::core::clone::Clone::clone(&self.unstable_opts),
            prints: ::core::clone::Clone::clone(&self.prints),
            cg: ::core::clone::Clone::clone(&self.cg),
            externs: ::core::clone::Clone::clone(&self.externs),
            crate_name: ::core::clone::Clone::clone(&self.crate_name),
            unstable_features: ::core::clone::Clone::clone(&self.unstable_features),
            actually_rustdoc: ::core::clone::Clone::clone(&self.actually_rustdoc),
            resolve_doc_links: ::core::clone::Clone::clone(&self.resolve_doc_links),
            trimmed_def_paths: ::core::clone::Clone::clone(&self.trimmed_def_paths),
            cli_forced_codegen_units: ::core::clone::Clone::clone(&self.cli_forced_codegen_units),
            cli_forced_local_thinlto_off: ::core::clone::Clone::clone(&self.cli_forced_local_thinlto_off),
            remap_path_prefix: ::core::clone::Clone::clone(&self.remap_path_prefix),
            remap_path_scope: ::core::clone::Clone::clone(&self.remap_path_scope),
            real_rust_source_base_dir: ::core::clone::Clone::clone(&self.real_rust_source_base_dir),
            real_rustc_dev_source_base_dir: ::core::clone::Clone::clone(&self.real_rustc_dev_source_base_dir),
            edition: ::core::clone::Clone::clone(&self.edition),
            json_artifact_notifications: ::core::clone::Clone::clone(&self.json_artifact_notifications),
            json_timings: ::core::clone::Clone::clone(&self.json_timings),
            json_unused_externs: ::core::clone::Clone::clone(&self.json_unused_externs),
            json_future_incompat: ::core::clone::Clone::clone(&self.json_future_incompat),
            pretty: ::core::clone::Clone::clone(&self.pretty),
            working_dir: ::core::clone::Clone::clone(&self.working_dir),
            color: ::core::clone::Clone::clone(&self.color),
            verbose: ::core::clone::Clone::clone(&self.verbose),
            jobs: ::core::clone::Clone::clone(&self.jobs),
            recommended_stack_size: ::core::clone::Clone::clone(&self.recommended_stack_size),
            target_modifiers: ::core::clone::Clone::clone(&self.target_modifiers),
            mitigation_coverage_map: ::core::clone::Clone::clone(&self.mitigation_coverage_map),
        }
    }
}
impl Options {
    pub fn dep_tracking_hash(&self, for_crate_hash: bool) -> Hash64 {
        let mut sub_hashes = BTreeMap::new();
        {
            if (&mut sub_hashes).insert("crate_types",
                        &self.crate_types as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "crate_types"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("optimize",
                        &self.optimize as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "optimize"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("debug_assertions",
                        &self.debug_assertions as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "debug_assertions"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("debuginfo",
                        &self.debuginfo as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "debuginfo"));
                }
            }
        };
        {
            if !for_crate_hash {
                if (&mut sub_hashes).insert("lint_opts",
                            &self.lint_opts as
                                &dyn dep_tracking::DepTrackingHash).is_some() {
                    {
                        ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                                "lint_opts"));
                    }
                }
            }
        };
        {
            if !for_crate_hash {
                if (&mut sub_hashes).insert("lint_cap",
                            &self.lint_cap as
                                &dyn dep_tracking::DepTrackingHash).is_some() {
                    {
                        ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                                "lint_cap"));
                    }
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("output_types",
                        &self.output_types as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "output_types"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("libs",
                        &self.libs as &dyn dep_tracking::DepTrackingHash).is_some()
                {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "libs"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("target_triple",
                        &self.target_triple as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "target_triple"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("test",
                        &self.test as &dyn dep_tracking::DepTrackingHash).is_some()
                {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "test"));
                }
            }
        };
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {
            if (&mut sub_hashes).insert("crate_name",
                        &self.crate_name as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "crate_name"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("unstable_features",
                        &self.unstable_features as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "unstable_features"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("actually_rustdoc",
                        &self.actually_rustdoc as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "actually_rustdoc"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("resolve_doc_links",
                        &self.resolve_doc_links as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "resolve_doc_links"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("trimmed_def_paths",
                        &self.trimmed_def_paths as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "trimmed_def_paths"));
                }
            }
        };
        {};
        {};
        {
            if !for_crate_hash {
                if (&mut sub_hashes).insert("remap_path_prefix",
                            &self.remap_path_prefix as
                                &dyn dep_tracking::DepTrackingHash).is_some() {
                    {
                        ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                                "remap_path_prefix"));
                    }
                }
            }
        };
        {
            if !for_crate_hash {
                if (&mut sub_hashes).insert("remap_path_scope",
                            &self.remap_path_scope as
                                &dyn dep_tracking::DepTrackingHash).is_some() {
                    {
                        ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                                "remap_path_scope"));
                    }
                }
            }
        };
        {
            if !for_crate_hash {
                if (&mut sub_hashes).insert("real_rust_source_base_dir",
                            &self.real_rust_source_base_dir as
                                &dyn dep_tracking::DepTrackingHash).is_some() {
                    {
                        ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                                "real_rust_source_base_dir"));
                    }
                }
            }
        };
        {
            if !for_crate_hash {
                if (&mut sub_hashes).insert("real_rustc_dev_source_base_dir",
                            &self.real_rustc_dev_source_base_dir as
                                &dyn dep_tracking::DepTrackingHash).is_some() {
                    {
                        ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                                "real_rustc_dev_source_base_dir"));
                    }
                }
            }
        };
        {
            if (&mut sub_hashes).insert("edition",
                        &self.edition as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "edition"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("json_artifact_notifications",
                        &self.json_artifact_notifications as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "json_artifact_notifications"));
                }
            }
        };
        {};
        {};
        {
            if (&mut sub_hashes).insert("json_future_incompat",
                        &self.json_future_incompat as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "json_future_incompat"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("working_dir",
                        &self.working_dir as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "working_dir"));
                }
            }
        };
        {};
        {
            if !for_crate_hash {
                if (&mut sub_hashes).insert("verbose",
                            &self.verbose as
                                &dyn dep_tracking::DepTrackingHash).is_some() {
                    {
                        ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                                "verbose"));
                    }
                }
            }
        };
        {};
        {};
        let mut hasher = StableHasher::new();
        dep_tracking::stable_hash(sub_hashes, &mut hasher, self.error_format,
            for_crate_hash);
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {
            use crate::config::dep_tracking::DepTrackingHash;
            (&self.unstable_opts).dep_tracking_hash(for_crate_hash,
                    self.error_format).hash(&mut hasher, self.error_format,
                for_crate_hash);
        };
        {};
        {
            use crate::config::dep_tracking::DepTrackingHash;
            (&self.cg).dep_tracking_hash(for_crate_hash,
                    self.error_format).hash(&mut hasher, self.error_format,
                for_crate_hash);
        };
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        hasher.finish()
    }
    pub fn gather_target_modifiers(&self) -> Vec<TargetModifier> {
        let mut mods = Vec::<TargetModifier>::new();
        self.unstable_opts.gather_target_modifiers(&mut mods,
            &self.target_modifiers);
        self.cg.gather_target_modifiers(&mut mods, &self.target_modifiers);
        tmod_push_impl(OptionsTargetModifiers::TargetFeatures,
            &self.target_modifiers, &mut mods);
        mods.sort_by(|a, b| a.opt.cmp(&b.opt));
        mods
    }
}top_level_options!(
361    /// The top-level command-line options struct.
362    ///
363    /// For each option, one has to specify how it behaves with regard to the
364    /// dependency tracking system of incremental compilation. This is done via the
365    /// square-bracketed directive after the field type. The options are:
366    ///
367    /// - `[TRACKED]`
368    /// A change in the given field will cause the compiler to completely clear the
369    /// incremental compilation cache before proceeding.
370    ///
371    /// - `[TRACKED_NO_CRATE_HASH]`
372    /// Same as `[TRACKED]`, but will not affect the crate hash. This is useful for options that
373    /// only affect the incremental cache.
374    ///
375    /// - `[UNTRACKED]`
376    /// Incremental compilation is not influenced by this option.
377    ///
378    /// - `[SUBSTRUCT]`
379    /// Second-level sub-structs containing more options.
380    ///
381    /// If you add a new option to this struct or one of the sub-structs like
382    /// `CodegenOptions`, think about how it influences incremental compilation. If in
383    /// doubt, specify `[TRACKED]`, which is always "correct" but might lead to
384    /// unnecessary re-compilation.
385    #[rustc_lint_opt_ty]
386    pub struct Options {
387        /// The crate config requested for the session, which may be combined
388        /// with additional crate configurations during the compile process.
389        #[rustc_lint_opt_deny_field_access("use `TyCtxt::crate_types` instead of this field")]
390        crate_types: Vec<CrateType> [TRACKED],
391        optimize: OptLevel [TRACKED],
392        /// Include the `debug_assertions` flag in dependency tracking, since it
393        /// can influence whether overflow checks are done or not.
394        debug_assertions: bool [TRACKED],
395        debuginfo: DebugInfo [TRACKED],
396        lint_opts: Vec<(String, lint::Level)> [TRACKED_NO_CRATE_HASH],
397        lint_cap: Option<lint::Level> [TRACKED_NO_CRATE_HASH],
398        describe_lints: bool [UNTRACKED],
399        output_types: OutputTypes [TRACKED],
400        search_paths: Vec<SearchPath> [UNTRACKED],
401        libs: Vec<NativeLib> [TRACKED],
402        sysroot: Sysroot [UNTRACKED],
403
404        target_triple: TargetTuple [TRACKED],
405
406        test: bool [TRACKED],
407        error_format: ErrorOutputType [UNTRACKED],
408        diagnostic_width: Option<usize> [UNTRACKED],
409
410        /// If `Some`, enable incremental compilation, using the given
411        /// directory to store intermediate results.
412        incremental: Option<PathBuf> [UNTRACKED],
413
414        unstable_opts: UnstableOptions [SUBSTRUCT] { TARGET_MODIFIER: UnstableOptions(UnstableOptionsTargetModifiers) },
415        prints: Vec<PrintRequest> [UNTRACKED],
416        cg: CodegenOptions [SUBSTRUCT] { TARGET_MODIFIER: CodegenOptions(CodegenOptionsTargetModifiers) },
417        externs: Externs [UNTRACKED],
418        crate_name: Option<String> [TRACKED],
419        /// Indicates how the compiler should treat unstable features.
420        unstable_features: UnstableFeatures [TRACKED],
421
422        /// Indicates whether this run of the compiler is actually rustdoc. This
423        /// is currently just a hack and will be removed eventually, so please
424        /// try to not rely on this too much.
425        actually_rustdoc: bool [TRACKED],
426        /// Whether name resolver should resolve documentation links.
427        resolve_doc_links: ResolveDocLinks [TRACKED],
428
429        /// Control path trimming.
430        trimmed_def_paths: bool [TRACKED],
431
432        /// Specifications of codegen units / ThinLTO which are forced as a
433        /// result of parsing command line options. These are not necessarily
434        /// what rustc was invoked with, but massaged a bit to agree with
435        /// commands like `--emit llvm-ir` which they're often incompatible with
436        /// if we otherwise use the defaults of rustc.
437        #[rustc_lint_opt_deny_field_access("use `Session::codegen_units` instead of this field")]
438        cli_forced_codegen_units: Option<usize> [UNTRACKED],
439        #[rustc_lint_opt_deny_field_access("use `Session::lto` instead of this field")]
440        cli_forced_local_thinlto_off: bool [UNTRACKED],
441
442        /// Remap source path prefixes in all output (messages, object files, debug, etc.).
443        remap_path_prefix: Vec<(PathBuf, PathBuf)> [TRACKED_NO_CRATE_HASH],
444        /// Defines which scopes of paths should be remapped by `--remap-path-prefix`.
445        remap_path_scope: RemapPathScopeComponents [TRACKED_NO_CRATE_HASH],
446
447        /// Base directory containing the `library/` directory for the Rust standard library.
448        /// Right now it's always `$sysroot/lib/rustlib/src/rust`
449        /// (i.e. the `rustup` `rust-src` component).
450        ///
451        /// This directory is what the virtual `/rustc/$hash` is translated back to,
452        /// if Rust was built with path remapping to `/rustc/$hash` enabled
453        /// (the `rust.remap-debuginfo` option in `bootstrap.toml`).
454        real_rust_source_base_dir: Option<PathBuf> [TRACKED_NO_CRATE_HASH],
455
456        /// Base directory containing the `compiler/` directory for the rustc sources.
457        /// Right now it's always `$sysroot/lib/rustlib/rustc-src/rust`
458        /// (i.e. the `rustup` `rustc-dev` component).
459        ///
460        /// This directory is what the virtual `/rustc-dev/$hash` is translated back to,
461        /// if Rust was built with path remapping to `/rustc/$hash` enabled
462        /// (the `rust.remap-debuginfo` option in `bootstrap.toml`).
463        real_rustc_dev_source_base_dir: Option<PathBuf> [TRACKED_NO_CRATE_HASH],
464
465        edition: Edition [TRACKED],
466
467        /// `true` if we're emitting JSON blobs about each artifact produced
468        /// by the compiler.
469        json_artifact_notifications: bool [TRACKED],
470
471        /// `true` if we're emitting JSON timings with the start and end of
472        /// high-level compilation sections
473        json_timings: bool [UNTRACKED],
474
475        /// `true` if we're emitting a JSON blob containing the unused externs
476        json_unused_externs: JsonUnusedExterns [UNTRACKED],
477
478        /// `true` if we're emitting a JSON job containing a future-incompat report for lints
479        json_future_incompat: bool [TRACKED],
480
481        pretty: Option<PpMode> [UNTRACKED],
482
483        /// The (potentially remapped) working directory
484        #[rustc_lint_opt_deny_field_access("use `SourceMap::working_dir` instead of this field")]
485        working_dir: RealFileName [TRACKED],
486        color: ColorConfig [UNTRACKED],
487        verbose: bool [TRACKED_NO_CRATE_HASH],
488        jobs: Jobs [UNTRACKED],
489        recommended_stack_size: usize [UNTRACKED],
490    }
491);
492
493#[derive(#[automatically_derived]impl ::core::default::Default for CollectedOptions {
    #[inline]
    fn default() -> Self {
        CollectedOptions {
            target_modifiers: ::core::default::Default::default(),
            mitigations: ::core::default::Default::default(),
        }
    }
}Default)]
494pub struct CollectedOptions {
495    pub target_modifiers: BTreeMap<OptionsTargetModifiers, String>,
496    pub mitigations: mitigation_coverage::MitigationCoverageMap,
497}
498
499macro_rules! setter_for {
500    // the allow/deny-mitigations options use collected/index instead of the cg, since they
501    // work across option groups
502    (allow_partial_mitigations, $struct_name:ident, $parse:ident) => {
503        pub(super) fn allow_partial_mitigations(
504            _cg: &mut super::$struct_name,
505            collected: &mut super::CollectedOptions,
506            v: Option<&str>,
507            index: usize,
508        ) -> bool {
509            collected.mitigations.handle_allowdeny_mitigation_option(v, index, true)
510        }
511    };
512    (deny_partial_mitigations, $struct_name:ident, $parse:ident) => {
513        pub(super) fn deny_partial_mitigations(
514            _cg: &mut super::$struct_name,
515            collected: &mut super::CollectedOptions,
516            v: Option<&str>,
517            index: usize,
518        ) -> bool {
519            collected.mitigations.handle_allowdeny_mitigation_option(v, index, false)
520        }
521    };
522    ($opt:ident, $struct_name:ident, $parse:ident) => {
523        pub(super) fn $opt(
524            cg: &mut super::$struct_name,
525            _collected: &mut super::CollectedOptions,
526            v: Option<&str>,
527            _index: usize,
528        ) -> bool {
529            super::parse::$parse(&mut redirect_field!(cg.$opt), v)
530        }
531    };
532}
533
534/// Defines all `CodegenOptions`/`DebuggingOptions` fields and parsers all at once. The goal of this
535/// macro is to define an interface that can be programmatically used by the option parser
536/// to initialize the struct without hardcoding field names all over the place.
537///
538/// The goal is to invoke this macro once with the correct fields, and then this macro generates all
539/// necessary code. The main gotcha of this macro is the `cgsetters` module which is a bunch of
540/// generated code to parse an option into its respective field in the struct. There are a few
541/// hand-written parsers for parsing specific types of values in this module.
542macro_rules! options {
543    (
544        $struct_name:ident,
545        $tmod_enum:ident,
546        $stat:ident,
547        $optmod:ident,
548        $prefix:expr,
549        $outputname:expr,
550
551        $(
552            $(#[$attr:meta])*
553            $opt:ident : $t:ty = (
554                $init:expr,
555                $parse:ident,
556                [$dep_tracking_marker:ident]
557                $( { TARGET_MODIFIER: $tmod_variant:ident } )?
558                $( { MITIGATION: $mitigation_variant:ident } )?
559                ,
560                $desc:expr
561                $(, removed: $removed:ident )?
562            ),
563        )*
564    ) => {
565        #[derive(Clone)]
566        #[rustc_lint_opt_ty]
567        pub struct $struct_name {
568            $(
569                $(#[$attr])*
570                pub $opt: $t,
571            )*
572        }
573
574        #[derive(PartialEq, Eq, PartialOrd, Ord, Debug, Copy, Clone, Encodable, BlobDecodable)]
575        pub enum $tmod_enum {
576            $(
577                $( $tmod_variant, )?
578            )*
579        }
580
581        impl $tmod_enum {
582            pub fn reparse(&self, _user_value: &str) -> ExtendedTargetModifierInfo {
583                match self {
584                    $(
585                        $(
586                            Self::$tmod_variant => {
587                                let mut parsed: $t = Default::default();
588                                let val = if _user_value.is_empty() { None } else { Some(_user_value) };
589                                parse::$parse(&mut parsed, val);
590                                ExtendedTargetModifierInfo {
591                                    prefix: $prefix.to_string(),
592                                    name: stringify!($opt).to_string().replace('_', "-"),
593                                    tech_value: format!("{:?}", parsed),
594                                }
595                            }
596                        )?
597                    )*
598
599                    #[allow(unreachable_patterns)]
600                    _ => panic!("unknown target modifier option: {:?}", *self)
601                }
602            }
603
604            pub fn is_target_modifier(flag_name: &str) -> bool {
605                match flag_name.replace('-', "_").as_str() {
606                    $(
607                        $(
608                            // Only expand for flags that have `TARGET_MODIFIER`.
609                            ${ignore($tmod_variant)}
610                            stringify!($opt) => true,
611                        )?
612                    )*
613                    _ => false,
614                }
615            }
616        }
617
618        impl Default for $struct_name {
619            fn default() -> $struct_name {
620                $struct_name {
621                    $(
622                        $opt: $init,
623                    )*
624                }
625            }
626        }
627
628        impl $struct_name {
629            pub fn build(
630                early_dcx: &EarlyDiagCtxt,
631                matches: &getopts::Matches,
632                target_modifiers: &mut CollectedOptions,
633            ) -> $struct_name {
634                build_options(early_dcx, matches, target_modifiers, $stat, $prefix, $outputname)
635            }
636
637            fn dep_tracking_hash(
638                &self,
639                for_crate_hash: bool,
640                error_format: ErrorOutputType,
641            ) -> Hash64 {
642                let mut sub_hashes = BTreeMap::new();
643                $(
644                    hash_opt!(
645                        $opt,
646                        &self.$opt,
647                        &mut sub_hashes,
648                        for_crate_hash,
649                        [$dep_tracking_marker]
650                    );
651                )*
652                let mut hasher = StableHasher::new();
653                dep_tracking::stable_hash(
654                    sub_hashes,
655                    &mut hasher,
656                    error_format,
657                    for_crate_hash,
658                );
659                hasher.finish()
660            }
661
662            pub fn gather_target_modifiers(
663                &self,
664                _mods: &mut Vec<TargetModifier>,
665                _tmod_vals: &BTreeMap<OptionsTargetModifiers, String>,
666            ) {
667                $(
668                    $(
669                        if self.$opt != $init {
670                            tmod_push_impl(
671                                OptionsTargetModifiers::$struct_name($tmod_enum::$tmod_variant),
672                                _tmod_vals,
673                                _mods,
674                            );
675                        }
676                    )?
677                )*
678            }
679        }
680
681        pub const $stat: OptionDescrs<$struct_name> = &[
682            $(
683                OptionDesc {
684                    name: stringify!($opt),
685                    setter: $optmod::$opt,
686                    type_desc: desc::$parse,
687                    desc: $desc,
688                    removed: None $( .or(Some(RemovedOption::$removed)) )?,
689                    tmod: None $( .or(Some(
690                        OptionsTargetModifiers::$struct_name($tmod_enum::$tmod_variant)
691                    )))?,
692                    mitigation: None $( .or(Some(
693                        mitigation_coverage::DeniedPartialMitigationKind::$mitigation_variant
694                    )))?,
695                },
696            )*
697        ];
698
699        mod $optmod {
700            $(
701                setter_for!($opt, $struct_name, $parse);
702            )*
703        }
704    }
705}
706
707impl CodegenOptions {
708    // JUSTIFICATION: defn of the suggested wrapper fn
709    #[allow(rustc::bad_opt_access)]
710    pub fn instrument_coverage(&self) -> InstrumentCoverage {
711        self.instrument_coverage
712    }
713}
714
715// Sometimes different options need to build a common structure.
716// That structure can be kept in one of the options' fields, the others become dummy.
717macro_rules! redirect_field {
718    ($cg:ident.link_arg) => {
719        $cg.link_args
720    };
721    ($cg:ident.pre_link_arg) => {
722        $cg.pre_link_args
723    };
724    ($cg:ident.$field:ident) => {
725        $cg.$field
726    };
727}
728
729type OptionSetter<O> = fn(&mut O, &mut CollectedOptions, v: Option<&str>, pos: usize) -> bool;
730type OptionDescrs<O> = &'static [OptionDesc<O>];
731
732/// Indicates whether a removed option should warn or error.
733enum RemovedOption {
734    #[allow(unused)] // we might want deprecated options that warn again in the future
735    Warn,
736    Err,
737}
738
739pub struct OptionDesc<O> {
740    name: &'static str,
741    setter: OptionSetter<O>,
742    // description for return value/type from mod desc
743    type_desc: &'static str,
744    // description for option from options table
745    desc: &'static str,
746    removed: Option<RemovedOption>,
747    tmod: Option<OptionsTargetModifiers>,
748    mitigation: Option<mitigation_coverage::DeniedPartialMitigationKind>,
749}
750
751impl<O> OptionDesc<O> {
752    pub fn name(&self) -> &'static str {
753        self.name
754    }
755
756    pub fn desc(&self) -> &'static str {
757        self.desc
758    }
759}
760
761fn build_options<O: Default>(
762    early_dcx: &EarlyDiagCtxt,
763    matches: &getopts::Matches,
764    collected_options: &mut CollectedOptions,
765    descrs: OptionDescrs<O>,
766    prefix: &str,
767    outputname: &str,
768) -> O {
769    let mut op = O::default();
770    for (index, option) in matches.opt_strs_pos(prefix) {
771        let (key, value) = match option.split_once('=') {
772            None => (option, None),
773            Some((k, v)) => (k.to_string(), Some(v)),
774        };
775
776        let option_to_lookup = key.replace('-', "_");
777        match descrs.iter().find(|opt_desc| opt_desc.name == option_to_lookup) {
778            Some(OptionDesc { name: _, setter, type_desc, desc, removed, tmod, mitigation }) => {
779                if let Some(removed) = removed {
780                    // deprecation works for prefixed options only
781                    if !!prefix.is_empty() {
    ::core::panicking::panic("assertion failed: !prefix.is_empty()")
};assert!(!prefix.is_empty());
782                    match removed {
783                        RemovedOption::Warn => {
784                            early_dcx.early_warn(::alloc::__export::must_use({
        ::alloc::fmt::format(format_args!("`-{0} {1}`: {2}", prefix, key,
                desc))
    })format!("`-{prefix} {key}`: {desc}"))
785                        }
786                        RemovedOption::Err => {
787                            early_dcx.early_fatal(::alloc::__export::must_use({
        ::alloc::fmt::format(format_args!("`-{0} {1}`: {2}", prefix, key,
                desc))
    })format!("`-{prefix} {key}`: {desc}"))
788                        }
789                    }
790                }
791                if !setter(&mut op, collected_options, value, index) {
792                    match value {
793                        None => early_dcx.early_fatal(
794                            ::alloc::__export::must_use({
        ::alloc::fmt::format(format_args!("{0} option `{1}` requires {2} (`-{3} {1}=<value>`)",
                outputname, key, type_desc, prefix))
    })format!(
795                                "{outputname} option `{key}` requires {type_desc} (`-{prefix} {key}=<value>`)"
796                            ),
797                        ),
798                        Some(value) => early_dcx.early_fatal(
799                            ::alloc::__export::must_use({
        ::alloc::fmt::format(format_args!("incorrect value `{0}` for {1} option `{2}` - {3} was expected",
                value, outputname, key, type_desc))
    })format!(
800                                "incorrect value `{value}` for {outputname} option `{key}` - {type_desc} was expected"
801                            ),
802                        ),
803                    }
804                }
805                if let Some(tmod) = *tmod {
806                    let v = value.map_or(String::new(), ToOwned::to_owned);
807
808                    // Accumulate all the -Zsanitizer flags into a single target modifier.
809                    match tmod {
810                        OptionsTargetModifiers::UnstableOptions(
811                            UnstableOptionsTargetModifiers::Sanitizer,
812                        ) => {
813                            collected_options
814                                .target_modifiers
815                                .entry(tmod)
816                                .and_modify(|existing| {
817                                    existing.push(',');
818                                    existing.push_str(&v);
819                                })
820                                .or_insert(v);
821                        }
822                        _ => {
823                            collected_options.target_modifiers.insert(tmod, v);
824                        }
825                    }
826                }
827                if let Some(mitigation) = mitigation {
828                    collected_options.mitigations.reset_mitigation(*mitigation, index);
829                }
830            }
831            None => {
832                let mut error =
833                    early_dcx.early_struct_fatal(::alloc::__export::must_use({
        ::alloc::fmt::format(format_args!("unknown {0} option: `{1}`",
                outputname, key))
    })format!("unknown {outputname} option: `{key}`"));
834                let max_dist = option_to_lookup.chars().count().max(3) / 3;
835                if let Some(option) = descrs
836                    .iter()
837                    .filter(|option| option.removed.is_none())
838                    .filter_map(|option| {
839                        edit_distance(&option_to_lookup, option.name, max_dist)
840                            .map(|dist| (dist, option))
841                    })
842                    .min_by_key(|(dist, _)| *dist)
843                    .map(|(_, option)| option)
844                {
845                    let name = option.name.replace('_', "-");
846                    let value =
847                        if option.type_desc == desc::parse_no_value { "" } else { "=<value>" };
848                    error.help(::alloc::__export::must_use({
        ::alloc::fmt::format(format_args!("you might have meant to use `-{0} {1}{2}`",
                prefix, name, value))
    })format!("you might have meant to use `-{prefix} {name}{value}`"));
849                }
850                error.emit()
851            }
852        }
853    }
854    op
855}
856
857#[allow(non_upper_case_globals)]
858mod desc {
859    pub(crate) const parse_ignore: &str = "<ignored>"; // should not be user-visible
860    pub(crate) const parse_no_value: &str = "no value";
861    pub(crate) const parse_bool: &str =
862        "one of: `y`, `yes`, `on`, `true`, `n`, `no`, `off` or `false`";
863    pub(crate) const parse_opt_bool: &str = parse_bool;
864    pub(crate) const parse_string: &str = "a string";
865    pub(crate) const parse_opt_string: &str = parse_string;
866    pub(crate) const parse_string_push: &str = parse_string;
867    pub(crate) const parse_opt_pathbuf: &str = "a path";
868    pub(crate) const parse_list: &str = "a space-separated list of strings";
869    pub(crate) const parse_list_with_polarity: &str =
870        "a comma-separated list of strings, with elements beginning with + or -";
871    pub(crate) const parse_pointer_authentication_list_with_polarity: &str = "a comma-separated list of options, each of the form `+<name>` or `-<name>`, where `<name>` is one of: `aarch64-jump-table-hardening`, `auth-traps`, `calls`, `elf-got`, `function-pointer-type-discrimination`, `indirect-gotos`, `init-fini`, `init-fini-address-discrimination`, `intrinsics`, `return-addresses`, `typeinfo-vt-ptr-discrimination`, `vt-ptr-addr-discrimination` or `vt-ptr-type-discrimination`";
872    pub(crate) const parse_autodiff: &str = "a comma separated list of settings: `Enable`, `PrintSteps`, `PrintTA`, `PrintTAFn`, `PrintAA`, `PrintPerf`, `PrintModBefore`, `PrintModAfter`, `PrintModFinal`, `PrintPasses`, `NoPostopt`, `LooseTypes`, `Inline`, `NoTT`";
873    pub(crate) const parse_offload: &str = "a comma separated list of settings: `Host=<Absolute-Path>`, `HostMetadata=<Absolute-Path>`, `Device` (empty manifest) or `Device=<Absolute-Path>`, `Test`";
874    pub(crate) const parse_comma_list: &str = "a comma-separated list of strings";
875    pub(crate) const parse_opt_comma_list: &str = parse_comma_list;
876    pub(crate) const parse_number: &str = "a number";
877    pub(crate) const parse_opt_number: &str = parse_number;
878    pub(crate) const parse_frame_pointer: &str = "one of `true`/`yes`/`on`, `false`/`no`/`off`, or (with -Zunstable-options) `non-leaf` or `always`";
879    pub(crate) const parse_time_passes_format: &str = "`text` (default) or `json`";
880    pub(crate) const parse_passes: &str = "a space-separated list of passes, or `all`";
881    pub(crate) const parse_panic_strategy: &str = "either `unwind`, `abort`, or `immediate-abort`";
882    pub(crate) const parse_on_broken_pipe: &str = "either `kill`, `error`, or `inherit`";
883    pub(crate) const parse_patchable_function_entry: &str = "a comma separated list of (prefix_nops,total_nops,section_name), (prefix_nops,total_nops), or (total_nops). Where prefix_nops <= total_nops where 0 < total_nops <= 255 and prefix_nops <= total_nops";
884    pub(crate) const parse_opt_panic_strategy: &str = parse_panic_strategy;
885    pub(crate) const parse_relro_level: &str = "one of: `full`, `partial`, or `off`";
886    pub(crate) const parse_sanitizers: &str = "comma separated list of sanitizers: `address`, `cfi`, `dataflow`, `hwaddress`, `kcfi`, `kernel-address`, `kernel-hwaddress`, `leak`, `memory`, `memtag`, `safestack`, `shadow-call-stack`, `thread`, or 'realtime'";
887    pub(crate) const parse_sanitizer_memory_track_origins: &str = "0, 1, or 2";
888    pub(crate) const parse_cfguard: &str =
889        "either a boolean (`yes`, `no`, `on`, `off`, etc), `checks`, or `nochecks`";
890    pub(crate) const parse_cfprotection: &str = "`none`|`no`|`n` (default), `branch`, `return`, or `full`|`yes`|`y` (equivalent to `branch` and `return`)";
891    pub(crate) const parse_debuginfo: &str = "either an integer (0, 1, 2), `none`, `line-directives-only`, `line-tables-only`, `limited`, or `full`";
892    pub(crate) const parse_debuginfo_compression: &str = "one of `none`, `zlib`, or `zstd`";
893    pub(crate) const parse_mir_strip_debuginfo: &str =
894        "one of `none`, `locals-in-tiny-functions`, or `all-locals`";
895    pub(crate) const parse_collapse_macro_debuginfo: &str = "one of `no`, `external`, or `yes`";
896    pub(crate) const parse_strip: &str = "either `none`, `debuginfo`, or `symbols`";
897    pub(crate) const parse_linker_flavor: &str = ::rustc_target::spec::LinkerFlavorCli::one_of();
898    pub(crate) const parse_dump_mono_stats: &str = "`markdown` (default) or `json`";
899    pub(crate) const parse_instrument_coverage: &str = parse_bool;
900    pub(crate) const parse_coverage_options: &str = "`block` | `branch` | `condition`";
901    pub(crate) const parse_codegen_retag_options: &str =
902        "either no value or a comma-separated list of settings: `no-precise-im`, `no-precise-pin`";
903    pub(crate) const parse_instrument_mcount: &str = "either a boolean (`yes`, `no`, `on`, `off`, etc), or `fentry`, `fentry-record`, `fentry-nop-record` on supported targets";
904    pub(crate) const parse_instrument_xray: &str = "either a boolean (`yes`, `no`, `on`, `off`, etc), or a comma separated list of settings: `always` or `never` (mutually exclusive), `ignore-loops`, `instruction-threshold=N`, `skip-entry`, `skip-exit`";
905    pub(crate) const parse_unpretty: &str = "`string` or `string=string`";
906    pub(crate) const parse_treat_err_as_bug: &str = "either no value or a non-negative number";
907    pub(crate) const parse_next_solver_config: &str =
908        "either `globally` (when used without an argument), or `coherence` (default)";
909    pub(crate) const parse_lto: &str =
910        "either a boolean (`yes`, `no`, `on`, `off`, etc), `thin`, `fat`, or omitted";
911    pub(crate) const parse_linker_plugin_lto: &str =
912        "either a boolean (`yes`, `no`, `on`, `off`, etc), or the path to the linker plugin";
913    pub(crate) const parse_location_detail: &str = "either `none`, or a comma separated list of location details to track: `file`, `line`, or `column`";
914    pub(crate) const parse_fmt_debug: &str = "either `full`, `shallow`, or `none`";
915    pub(crate) const parse_switch_with_opt_path: &str =
916        "an optional path to the profiling data output directory";
917    pub(crate) const parse_merge_functions: &str =
918        "one of: `disabled`, `trampolines`, or `aliases`";
919    pub(crate) const parse_symbol_mangling_version: &str =
920        "one of: `legacy`, `v0` (RFC 2603), or `hashed`";
921    pub(crate) const parse_opt_symbol_visibility: &str =
922        "one of: `hidden`, `protected`, or `interposable`";
923    pub(crate) const parse_cargo_src_file_hash: &str =
924        "one of `blake3`, `md5`, `sha1`, or `sha256`";
925    pub(crate) const parse_src_file_hash: &str = "one of `md5`, `sha1`, or `sha256`";
926    pub(crate) const parse_relocation_model: &str =
927        "one of supported relocation models (`rustc --print relocation-models`)";
928    pub(crate) const parse_code_model: &str =
929        "one of supported code models (`rustc --print code-models`)";
930    pub(crate) const parse_tls_model: &str =
931        "one of supported TLS models (`rustc --print tls-models`)";
932    pub(crate) const parse_target_feature: &str = parse_string;
933    pub(crate) const parse_terminal_url: &str =
934        "either a boolean (`yes`, `no`, `on`, `off`, etc), or `auto`";
935    pub(crate) const parse_wasi_exec_model: &str = "either `command` or `reactor`";
936    pub(crate) const parse_split_debuginfo: &str =
937        "one of supported split-debuginfo modes (`off`, `packed`, or `unpacked`)";
938    pub(crate) const parse_split_dwarf_kind: &str =
939        "one of supported split dwarf modes (`split` or `single`)";
940    pub(crate) const parse_link_self_contained: &str = "one of: `y`, `yes`, `on`, `n`, `no`, `off`, or a list of enabled (`+` prefix) and disabled (`-` prefix) \
941        components: `crto`, `libc`, `unwind`, `linker`, `sanitizers`, `mingw`";
942    pub(crate) const parse_linker_features: &str =
943        "a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld`";
944    pub(crate) const parse_polonius: &str =
945        "either no value or one of `legacy` (the default), `off`, or `next`";
946    pub(crate) const parse_annotate_moves: &str =
947        "either a boolean (`yes`, `no`, `on`, `off`, etc.), or a size limit in bytes";
948    pub(crate) const parse_stack_protector: &str =
949        "one of (`none` (default), `basic`, `strong`, or `all`)";
950    pub(crate) const parse_branch_protection: &str = "a `,` separated combination of `bti`, `gcs`, `pac-ret`, (optionally with `pc`, `b-key`, `leaf` if `pac-ret` is set)";
951    pub(crate) const parse_proc_macro_execution_strategy: &str =
952        "one of supported execution strategies (`same-thread`, or `cross-thread`)";
953    pub(crate) const parse_inlining_threshold: &str =
954        "either a boolean (`yes`, `no`, `on`, `off`, etc), or a non-negative number";
955    pub(crate) const parse_llvm_module_flag: &str = "<key>:<type>:<value>:<behavior>. Type must currently be `u32`. Behavior should be one of (`error`, `warning`, `require`, `override`, `append`, `appendunique`, `max`, `min`)";
956    pub(crate) const parse_function_return: &str = "`keep` or `thunk-extern`";
957    pub(crate) const parse_wasm_c_abi: &str = "`spec`";
958    pub(crate) const parse_mir_include_spans: &str =
959        "either a boolean (`yes`, `no`, `on`, `off`, etc), or `nll` (default: `nll`)";
960    pub(crate) const parse_align: &str = "a number that is a power of 2 between 1 and 2^29";
961    pub(crate) const parse_assert_incr_state: &str = "one of: `loaded`, `not-loaded`";
962    pub(crate) const parse_allow_partial_mitigations: &str =
963        super::mitigation_coverage::DeniedPartialMitigationKind::KINDS;
964    pub(crate) const parse_deny_partial_mitigations: &str =
965        super::mitigation_coverage::DeniedPartialMitigationKind::KINDS;
966    pub(crate) const parse_rust_version: &str = "a rust version (`xx.yy.zz`)";
967}
968
969pub mod parse {
970    use std::str::FromStr;
971
972    pub(crate) use super::*;
973
974    /// Ignore the value. Used for removed options where we don't actually want to store
975    /// anything in the session.
976    pub(crate) fn parse_ignore(_slot: &mut (), _v: Option<&str>) -> bool {
977        true
978    }
979
980    /// This is for boolean options that don't take a value, and are true simply
981    /// by existing on the command-line.
982    ///
983    /// This style of option is deprecated, and is mainly used by old options
984    /// beginning with `no-`.
985    pub(crate) fn parse_no_value(slot: &mut bool, v: Option<&str>) -> bool {
986        match v {
987            None => {
988                *slot = true;
989                true
990            }
991            // Trying to specify a value is always forbidden.
992            Some(_) => false,
993        }
994    }
995
996    /// Use this for any boolean option that has a static default.
997    pub(crate) fn parse_bool(slot: &mut bool, v: Option<&str>) -> bool {
998        match v {
999            Some("y") | Some("yes") | Some("on") | Some("true") | None => {
1000                *slot = true;
1001                true
1002            }
1003            Some("n") | Some("no") | Some("off") | Some("false") => {
1004                *slot = false;
1005                true
1006            }
1007            _ => false,
1008        }
1009    }
1010
1011    /// Use this for any boolean option that lacks a static default. (The
1012    /// actions taken when such an option is not specified will depend on
1013    /// other factors, such as other options, or target options.)
1014    pub(crate) fn parse_opt_bool(slot: &mut Option<bool>, v: Option<&str>) -> bool {
1015        match v {
1016            Some("y") | Some("yes") | Some("on") | Some("true") | None => {
1017                *slot = Some(true);
1018                true
1019            }
1020            Some("n") | Some("no") | Some("off") | Some("false") => {
1021                *slot = Some(false);
1022                true
1023            }
1024            _ => false,
1025        }
1026    }
1027
1028    /// Parses whether polonius is enabled, and if so, which version.
1029    pub(crate) fn parse_polonius(slot: &mut Polonius, v: Option<&str>) -> bool {
1030        match v {
1031            Some("legacy") | None => {
1032                *slot = Polonius::Legacy;
1033                true
1034            }
1035            Some("next") => {
1036                *slot = Polonius::Next;
1037                true
1038            }
1039            Some("off") | Some("no") => {
1040                *slot = Polonius::Off;
1041                true
1042            }
1043            _ => false,
1044        }
1045    }
1046
1047    pub(crate) fn parse_annotate_moves(slot: &mut AnnotateMoves, v: Option<&str>) -> bool {
1048        let mut bslot = false;
1049        let mut nslot = 0u64;
1050
1051        *slot = match v {
1052            // No value provided: -Z annotate-moves (enable with default limit)
1053            None => AnnotateMoves::Enabled(None),
1054            // Explicit boolean value provided: -Z annotate-moves=yes/no
1055            s @ Some(_) if parse_bool(&mut bslot, s) => {
1056                if bslot {
1057                    AnnotateMoves::Enabled(None)
1058                } else {
1059                    AnnotateMoves::Disabled
1060                }
1061            }
1062            // With numeric limit provided: -Z annotate-moves=1234
1063            s @ Some(_) if parse_number(&mut nslot, s) => AnnotateMoves::Enabled(Some(nslot)),
1064            _ => return false,
1065        };
1066
1067        true
1068    }
1069
1070    /// Use this for any string option that has a static default.
1071    pub(crate) fn parse_string(slot: &mut String, v: Option<&str>) -> bool {
1072        match v {
1073            Some(s) => {
1074                *slot = s.to_string();
1075                true
1076            }
1077            None => false,
1078        }
1079    }
1080
1081    /// Use this for any string option that lacks a static default.
1082    pub(crate) fn parse_opt_string(slot: &mut Option<String>, v: Option<&str>) -> bool {
1083        match v {
1084            Some(s) => {
1085                *slot = Some(s.to_string());
1086                true
1087            }
1088            None => false,
1089        }
1090    }
1091
1092    pub(crate) fn parse_opt_pathbuf(slot: &mut Option<PathBuf>, v: Option<&str>) -> bool {
1093        match v {
1094            Some(s) => {
1095                *slot = Some(PathBuf::from(s));
1096                true
1097            }
1098            None => false,
1099        }
1100    }
1101
1102    pub(crate) fn parse_string_push(slot: &mut Vec<String>, v: Option<&str>) -> bool {
1103        match v {
1104            Some(s) => {
1105                slot.push(s.to_string());
1106                true
1107            }
1108            None => false,
1109        }
1110    }
1111
1112    pub(crate) fn parse_list(slot: &mut Vec<String>, v: Option<&str>) -> bool {
1113        match v {
1114            Some(s) => {
1115                slot.extend(s.split_whitespace().map(|s| s.to_string()));
1116                true
1117            }
1118            None => false,
1119        }
1120    }
1121
1122    pub(crate) fn parse_list_with_polarity(
1123        slot: &mut Vec<(String, bool)>,
1124        v: Option<&str>,
1125    ) -> bool {
1126        match v {
1127            Some(s) => {
1128                for s in s.split(',') {
1129                    let Some(pass_name) = s.strip_prefix(&['+', '-'][..]) else { return false };
1130                    slot.push((pass_name.to_string(), &s[..1] == "+"));
1131                }
1132                true
1133            }
1134            None => false,
1135        }
1136    }
1137
1138    pub(crate) fn parse_pointer_authentication_list_with_polarity(
1139        slot: &mut Vec<(PointerAuthOption, bool)>,
1140        v: Option<&str>,
1141    ) -> bool {
1142        let Some(s) = v else {
1143            return false;
1144        };
1145
1146        let mut map = BTreeMap::<PointerAuthOption, bool>::new();
1147
1148        for item in s.split(',') {
1149            let Some(name) = item.strip_prefix(&['+', '-'][..]) else {
1150                return false;
1151            };
1152
1153            let Some(opt) = PointerAuthOption::parse(name) else {
1154                return false;
1155            };
1156
1157            let enabled = item.starts_with('+');
1158
1159            // Last occurrence wins.
1160            map.insert(opt, enabled);
1161        }
1162
1163        slot.clear();
1164        slot.extend(map);
1165
1166        true
1167    }
1168
1169    pub(crate) fn parse_fmt_debug(opt: &mut FmtDebug, v: Option<&str>) -> bool {
1170        *opt = match v {
1171            Some("full") => FmtDebug::Full,
1172            Some("shallow") => FmtDebug::Shallow,
1173            Some("none") => FmtDebug::None,
1174            _ => return false,
1175        };
1176        true
1177    }
1178
1179    pub(crate) fn parse_location_detail(ld: &mut LocationDetail, v: Option<&str>) -> bool {
1180        if let Some(v) = v {
1181            ld.line = false;
1182            ld.file = false;
1183            ld.column = false;
1184            if v == "none" {
1185                return true;
1186            }
1187            for s in v.split(',') {
1188                match s {
1189                    "file" => ld.file = true,
1190                    "line" => ld.line = true,
1191                    "column" => ld.column = true,
1192                    _ => return false,
1193                }
1194            }
1195            true
1196        } else {
1197            false
1198        }
1199    }
1200
1201    pub(crate) fn parse_comma_list(slot: &mut Vec<String>, v: Option<&str>) -> bool {
1202        match v {
1203            Some(s) => {
1204                let mut v: Vec<_> = s.split(',').map(|s| s.to_string()).collect();
1205                v.sort_unstable();
1206                *slot = v;
1207                true
1208            }
1209            None => false,
1210        }
1211    }
1212
1213    pub(crate) fn parse_opt_comma_list(slot: &mut Option<Vec<String>>, v: Option<&str>) -> bool {
1214        match v {
1215            Some(s) => {
1216                let mut v: Vec<_> = s.split(',').map(|s| s.to_string()).collect();
1217                v.sort_unstable();
1218                *slot = Some(v);
1219                true
1220            }
1221            None => false,
1222        }
1223    }
1224
1225    /// Use this for any numeric option that has a static default.
1226    pub(crate) fn parse_number<T: Copy + FromStr>(slot: &mut T, v: Option<&str>) -> bool {
1227        match v.and_then(|s| s.parse().ok()) {
1228            Some(i) => {
1229                *slot = i;
1230                true
1231            }
1232            None => false,
1233        }
1234    }
1235
1236    /// Use this for any numeric option that lacks a static default.
1237    pub(crate) fn parse_opt_number<T: Copy + FromStr>(
1238        slot: &mut Option<T>,
1239        v: Option<&str>,
1240    ) -> bool {
1241        match v {
1242            Some(s) => {
1243                *slot = s.parse().ok();
1244                slot.is_some()
1245            }
1246            None => false,
1247        }
1248    }
1249
1250    pub(crate) fn parse_frame_pointer(slot: &mut FramePointer, v: Option<&str>) -> bool {
1251        let mut yes = false;
1252        match v {
1253            _ if parse_bool(&mut yes, v) && yes => slot.ratchet(FramePointer::Always),
1254            _ if parse_bool(&mut yes, v) => slot.ratchet(FramePointer::MayOmit),
1255            Some("always") => slot.ratchet(FramePointer::Always),
1256            Some("non-leaf") => slot.ratchet(FramePointer::NonLeaf),
1257            _ => return false,
1258        };
1259        true
1260    }
1261
1262    pub(crate) fn parse_passes(slot: &mut Passes, v: Option<&str>) -> bool {
1263        match v {
1264            Some("all") => {
1265                *slot = Passes::All;
1266                true
1267            }
1268            v => {
1269                let mut passes = ::alloc::vec::Vec::new()vec![];
1270                if parse_list(&mut passes, v) {
1271                    slot.extend(passes);
1272                    true
1273                } else {
1274                    false
1275                }
1276            }
1277        }
1278    }
1279
1280    pub(crate) fn parse_opt_panic_strategy(
1281        slot: &mut Option<PanicStrategy>,
1282        v: Option<&str>,
1283    ) -> bool {
1284        match v {
1285            Some("unwind") => *slot = Some(PanicStrategy::Unwind),
1286            Some("abort") => *slot = Some(PanicStrategy::Abort),
1287            Some("immediate-abort") => *slot = Some(PanicStrategy::ImmediateAbort),
1288            _ => return false,
1289        }
1290        true
1291    }
1292
1293    pub(crate) fn parse_panic_strategy(slot: &mut PanicStrategy, v: Option<&str>) -> bool {
1294        match v {
1295            Some("unwind") => *slot = PanicStrategy::Unwind,
1296            Some("abort") => *slot = PanicStrategy::Abort,
1297            Some("immediate-abort") => *slot = PanicStrategy::ImmediateAbort,
1298            _ => return false,
1299        }
1300        true
1301    }
1302
1303    pub(crate) fn parse_on_broken_pipe(slot: &mut OnBrokenPipe, v: Option<&str>) -> bool {
1304        match v {
1305            // OnBrokenPipe::Default can't be explicitly specified
1306            Some("kill") => *slot = OnBrokenPipe::Kill,
1307            Some("error") => *slot = OnBrokenPipe::Error,
1308            Some("inherit") => *slot = OnBrokenPipe::Inherit,
1309            _ => return false,
1310        }
1311        true
1312    }
1313
1314    pub(crate) fn parse_patchable_function_entry(
1315        slot: &mut PatchableFunctionEntry,
1316        v: Option<&str>,
1317    ) -> bool {
1318        let mut total_nops = 0;
1319        let mut prefix_nops = 0;
1320        let mut section = None;
1321
1322        if !parse_number(&mut total_nops, v) {
1323            let parts: Vec<_> = v.unwrap_or("").split(',').collect();
1324            if parts.len() < 2 || parts.len() > 3 {
1325                return false;
1326            }
1327
1328            if !parse_number(&mut total_nops, Some(parts[0])) {
1329                return false;
1330            }
1331            if !parse_number(&mut prefix_nops, Some(parts[1])) {
1332                return false;
1333            }
1334            section = parts.get(2).map(|x| x.to_string());
1335        }
1336
1337        if let Some(pfe) = PatchableFunctionEntry::from_parts(total_nops, prefix_nops, section) {
1338            *slot = pfe;
1339            return true;
1340        }
1341        false
1342    }
1343
1344    pub(crate) fn parse_relro_level(slot: &mut Option<RelroLevel>, v: Option<&str>) -> bool {
1345        match v {
1346            Some(s) => match s.parse::<RelroLevel>() {
1347                Ok(level) => *slot = Some(level),
1348                _ => return false,
1349            },
1350            _ => return false,
1351        }
1352        true
1353    }
1354
1355    pub(crate) fn parse_sanitizers(slot: &mut SanitizerSet, v: Option<&str>) -> bool {
1356        if let Some(v) = v {
1357            for s in v.split(',') {
1358                *slot |= match s {
1359                    "address" => SanitizerSet::ADDRESS,
1360                    "cfi" => SanitizerSet::CFI,
1361                    "dataflow" => SanitizerSet::DATAFLOW,
1362                    "kcfi" => SanitizerSet::KCFI,
1363                    "kernel-address" => SanitizerSet::KERNELADDRESS,
1364                    "kernel-hwaddress" => SanitizerSet::KERNELHWADDRESS,
1365                    "leak" => SanitizerSet::LEAK,
1366                    "memory" => SanitizerSet::MEMORY,
1367                    "memtag" => SanitizerSet::MEMTAG,
1368                    "shadow-call-stack" => SanitizerSet::SHADOWCALLSTACK,
1369                    "thread" => SanitizerSet::THREAD,
1370                    "hwaddress" => SanitizerSet::HWADDRESS,
1371                    "safestack" => SanitizerSet::SAFESTACK,
1372                    "realtime" => SanitizerSet::REALTIME,
1373                    _ => return false,
1374                }
1375            }
1376            true
1377        } else {
1378            false
1379        }
1380    }
1381
1382    pub(crate) fn parse_sanitizer_memory_track_origins(slot: &mut usize, v: Option<&str>) -> bool {
1383        match v {
1384            Some("2") | None => {
1385                *slot = 2;
1386                true
1387            }
1388            Some("1") => {
1389                *slot = 1;
1390                true
1391            }
1392            Some("0") => {
1393                *slot = 0;
1394                true
1395            }
1396            Some(_) => false,
1397        }
1398    }
1399
1400    pub(crate) fn parse_strip(slot: &mut Strip, v: Option<&str>) -> bool {
1401        match v {
1402            Some("none") => *slot = Strip::None,
1403            Some("debuginfo") => *slot = Strip::Debuginfo,
1404            Some("symbols") => *slot = Strip::Symbols,
1405            _ => return false,
1406        }
1407        true
1408    }
1409
1410    pub(crate) fn parse_cfguard(slot: &mut CFGuard, v: Option<&str>) -> bool {
1411        if v.is_some() {
1412            let mut bool_arg = None;
1413            if parse_opt_bool(&mut bool_arg, v) {
1414                *slot = if bool_arg.unwrap() { CFGuard::Checks } else { CFGuard::Disabled };
1415                return true;
1416            }
1417        }
1418
1419        *slot = match v {
1420            None => CFGuard::Checks,
1421            Some("checks") => CFGuard::Checks,
1422            Some("nochecks") => CFGuard::NoChecks,
1423            Some(_) => return false,
1424        };
1425        true
1426    }
1427
1428    pub(crate) fn parse_cfprotection(slot: &mut CFProtection, v: Option<&str>) -> bool {
1429        if v.is_some() {
1430            let mut bool_arg = None;
1431            if parse_opt_bool(&mut bool_arg, v) {
1432                *slot = if bool_arg.unwrap() { CFProtection::Full } else { CFProtection::None };
1433                return true;
1434            }
1435        }
1436
1437        *slot = match v {
1438            None | Some("none") => CFProtection::None,
1439            Some("branch") => CFProtection::Branch,
1440            Some("return") => CFProtection::Return,
1441            Some("full") => CFProtection::Full,
1442            Some(_) => return false,
1443        };
1444        true
1445    }
1446
1447    pub(crate) fn parse_debuginfo(slot: &mut DebugInfo, v: Option<&str>) -> bool {
1448        match v {
1449            Some("0") | Some("none") => *slot = DebugInfo::None,
1450            Some("line-directives-only") => *slot = DebugInfo::LineDirectivesOnly,
1451            Some("line-tables-only") => *slot = DebugInfo::LineTablesOnly,
1452            Some("1") | Some("limited") => *slot = DebugInfo::Limited,
1453            Some("2") | Some("full") => *slot = DebugInfo::Full,
1454            _ => return false,
1455        }
1456        true
1457    }
1458
1459    pub(crate) fn parse_debuginfo_compression(
1460        slot: &mut DebugInfoCompression,
1461        v: Option<&str>,
1462    ) -> bool {
1463        match v {
1464            Some("none") => *slot = DebugInfoCompression::None,
1465            Some("zlib") => *slot = DebugInfoCompression::Zlib,
1466            Some("zstd") => *slot = DebugInfoCompression::Zstd,
1467            _ => return false,
1468        };
1469        true
1470    }
1471
1472    pub(crate) fn parse_mir_strip_debuginfo(slot: &mut MirStripDebugInfo, v: Option<&str>) -> bool {
1473        match v {
1474            Some("none") => *slot = MirStripDebugInfo::None,
1475            Some("locals-in-tiny-functions") => *slot = MirStripDebugInfo::LocalsInTinyFunctions,
1476            Some("all-locals") => *slot = MirStripDebugInfo::AllLocals,
1477            _ => return false,
1478        };
1479        true
1480    }
1481
1482    pub(crate) fn parse_linker_flavor(slot: &mut Option<LinkerFlavorCli>, v: Option<&str>) -> bool {
1483        match v.and_then(|v| LinkerFlavorCli::from_str(v).ok()) {
1484            Some(lf) => *slot = Some(lf),
1485            _ => return false,
1486        }
1487        true
1488    }
1489
1490    pub(crate) fn parse_opt_symbol_visibility(
1491        slot: &mut Option<SymbolVisibility>,
1492        v: Option<&str>,
1493    ) -> bool {
1494        if let Some(v) = v {
1495            if let Ok(vis) = SymbolVisibility::from_str(v) {
1496                *slot = Some(vis);
1497            } else {
1498                return false;
1499            }
1500        }
1501        true
1502    }
1503
1504    pub(crate) fn parse_unpretty(slot: &mut Option<String>, v: Option<&str>) -> bool {
1505        match v {
1506            None => false,
1507            Some(s) if s.split('=').count() <= 2 => {
1508                *slot = Some(s.to_string());
1509                true
1510            }
1511            _ => false,
1512        }
1513    }
1514
1515    pub(crate) fn parse_time_passes_format(slot: &mut TimePassesFormat, v: Option<&str>) -> bool {
1516        match v {
1517            None => true,
1518            Some("json") => {
1519                *slot = TimePassesFormat::Json;
1520                true
1521            }
1522            Some("text") => {
1523                *slot = TimePassesFormat::Text;
1524                true
1525            }
1526            Some(_) => false,
1527        }
1528    }
1529
1530    pub(crate) fn parse_dump_mono_stats(slot: &mut DumpMonoStatsFormat, v: Option<&str>) -> bool {
1531        match v {
1532            None => true,
1533            Some("json") => {
1534                *slot = DumpMonoStatsFormat::Json;
1535                true
1536            }
1537            Some("markdown") => {
1538                *slot = DumpMonoStatsFormat::Markdown;
1539                true
1540            }
1541            Some(_) => false,
1542        }
1543    }
1544
1545    pub(crate) fn parse_offload(slot: &mut Vec<Offload>, v: Option<&str>) -> bool {
1546        let Some(v) = v else {
1547            *slot = ::alloc::vec::Vec::new()vec![];
1548            return true;
1549        };
1550        let mut v: Vec<&str> = v.split(",").collect();
1551        v.sort_unstable();
1552        for &val in v.iter() {
1553            // Split each entry on '=' if it has an argument
1554            let (key, arg) = match val.split_once('=') {
1555                Some((k, a)) => (k, Some(a)),
1556                None => (val, None),
1557            };
1558
1559            let variant = match key {
1560                "Host" => {
1561                    if let Some(p) = arg {
1562                        Offload::Host(p.to_string())
1563                    } else {
1564                        return false;
1565                    }
1566                }
1567                "HostMetadata" => {
1568                    if let Some(p) = arg {
1569                        Offload::HostMetadata(p.to_string())
1570                    } else {
1571                        return false;
1572                    }
1573                }
1574                "Device" => {
1575                    // Without an argument, `Device` uses an empty manifest and all kernel
1576                    // instantiations are discovered via monomorphization.
1577                    Offload::Device(arg.unwrap_or_default().to_string())
1578                }
1579                "Test" => {
1580                    if let Some(_) = arg {
1581                        // Test does not accept a value
1582                        return false;
1583                    }
1584                    Offload::Test
1585                }
1586                _ => {
1587                    // FIXME(ZuseZ4): print an error saying which value is not recognized
1588                    return false;
1589                }
1590            };
1591            slot.push(variant);
1592        }
1593
1594        true
1595    }
1596
1597    pub(crate) fn parse_autodiff(slot: &mut Vec<AutoDiff>, v: Option<&str>) -> bool {
1598        let Some(v) = v else {
1599            *slot = ::alloc::vec::Vec::new()vec![];
1600            return true;
1601        };
1602        let mut v: Vec<&str> = v.split(",").collect();
1603        v.sort_unstable();
1604        for &val in v.iter() {
1605            // Split each entry on '=' if it has an argument
1606            let (key, arg) = match val.split_once('=') {
1607                Some((k, a)) => (k, Some(a)),
1608                None => (val, None),
1609            };
1610
1611            let variant = match key {
1612                "Enable" => AutoDiff::Enable,
1613                "PrintTA" => AutoDiff::PrintTA,
1614                "PrintTAFn" => {
1615                    if let Some(fun) = arg {
1616                        AutoDiff::PrintTAFn(fun.to_string())
1617                    } else {
1618                        return false;
1619                    }
1620                }
1621                "PrintAA" => AutoDiff::PrintAA,
1622                "PrintPerf" => AutoDiff::PrintPerf,
1623                "PrintSteps" => AutoDiff::PrintSteps,
1624                "PrintModBefore" => AutoDiff::PrintModBefore,
1625                "PrintModAfter" => AutoDiff::PrintModAfter,
1626                "PrintModFinal" => AutoDiff::PrintModFinal,
1627                "NoPostopt" => AutoDiff::NoPostopt,
1628                "PrintPasses" => AutoDiff::PrintPasses,
1629                "LooseTypes" => AutoDiff::LooseTypes,
1630                "Inline" => AutoDiff::Inline,
1631                "NoTT" => AutoDiff::NoTT,
1632                _ => {
1633                    // FIXME(ZuseZ4): print an error saying which value is not recognized
1634                    return false;
1635                }
1636            };
1637            slot.push(variant);
1638        }
1639
1640        true
1641    }
1642
1643    pub(crate) fn parse_instrument_coverage(
1644        slot: &mut InstrumentCoverage,
1645        v: Option<&str>,
1646    ) -> bool {
1647        if v.is_some() {
1648            let mut bool_arg = false;
1649            if parse_bool(&mut bool_arg, v) {
1650                *slot = if bool_arg { InstrumentCoverage::Yes } else { InstrumentCoverage::No };
1651                return true;
1652            }
1653        }
1654
1655        let Some(v) = v else {
1656            *slot = InstrumentCoverage::Yes;
1657            return true;
1658        };
1659
1660        // Parse values that have historically been accepted by stable compilers,
1661        // even though they're currently just aliases for boolean values.
1662        *slot = match v {
1663            "all" => InstrumentCoverage::Yes,
1664            "0" => InstrumentCoverage::No,
1665            _ => return false,
1666        };
1667        true
1668    }
1669
1670    pub(crate) fn parse_codegen_retag_options(
1671        slot: &mut Option<CodegenRetagOptions>,
1672        v: Option<&str>,
1673    ) -> bool {
1674        let mut no_precise_im = false;
1675        let mut no_precise_pin = false;
1676        if let Some(opt_list) = v.map(|s| s.split(',')) {
1677            for opt in opt_list {
1678                match opt {
1679                    "no-precise-im" => {
1680                        no_precise_im = true;
1681                    }
1682                    "no-precise-pin" => {
1683                        no_precise_pin = true;
1684                    }
1685                    _ => return false,
1686                }
1687            }
1688        }
1689        *slot = Some(CodegenRetagOptions { no_precise_im, no_precise_pin });
1690        true
1691    }
1692
1693    pub(crate) fn parse_coverage_options(slot: &mut CoverageOptions, v: Option<&str>) -> bool {
1694        let Some(v) = v else { return true };
1695
1696        for option in v.split(',') {
1697            match option {
1698                "block" => slot.level = CoverageLevel::Block,
1699                "branch" => slot.level = CoverageLevel::Branch,
1700                "condition" => slot.level = CoverageLevel::Condition,
1701                "discard-all-spans-in-codegen" => slot.discard_all_spans_in_codegen = true,
1702                _ => return false,
1703            }
1704        }
1705        true
1706    }
1707
1708    pub(crate) fn parse_instrument_mcount(slot: &mut InstrumentMcount, v: Option<&str>) -> bool {
1709        let mut use_mcount = false;
1710        let mut opts = InstrumentMcountOpts::default();
1711        if parse_bool(&mut use_mcount, v) {
1712            *slot = if use_mcount {
1713                InstrumentMcount::Mcount(opts)
1714            } else {
1715                InstrumentMcount::Disabled
1716            };
1717            return true;
1718        }
1719        match v {
1720            Some("fentry") => {
1721                *slot = InstrumentMcount::Fentry(opts);
1722            }
1723            Some("fentry-record") => {
1724                opts.record = true;
1725                *slot = InstrumentMcount::Fentry(opts);
1726            }
1727            Some("fentry-nop-record") => {
1728                opts.record = true;
1729                opts.no_call = true;
1730                *slot = InstrumentMcount::Fentry(opts);
1731            }
1732            _ => {
1733                return false;
1734            }
1735        }
1736        true
1737    }
1738
1739    pub(crate) fn parse_instrument_xray(
1740        slot: &mut Option<InstrumentXRay>,
1741        v: Option<&str>,
1742    ) -> bool {
1743        if v.is_some() {
1744            let mut bool_arg = None;
1745            if parse_opt_bool(&mut bool_arg, v) {
1746                *slot = if bool_arg.unwrap() { Some(InstrumentXRay::default()) } else { None };
1747                return true;
1748            }
1749        }
1750
1751        let options = slot.get_or_insert_default();
1752        let mut seen_always = false;
1753        let mut seen_never = false;
1754        let mut seen_ignore_loops = false;
1755        let mut seen_instruction_threshold = false;
1756        let mut seen_skip_entry = false;
1757        let mut seen_skip_exit = false;
1758        for option in v.map(|v| v.split(',')).into_flat_iter() {
1759            match option {
1760                "always" if !seen_always && !seen_never => {
1761                    options.always = true;
1762                    options.never = false;
1763                    seen_always = true;
1764                }
1765                "never" if !seen_never && !seen_always => {
1766                    options.never = true;
1767                    options.always = false;
1768                    seen_never = true;
1769                }
1770                "ignore-loops" if !seen_ignore_loops => {
1771                    options.ignore_loops = true;
1772                    seen_ignore_loops = true;
1773                }
1774                option
1775                    if option.starts_with("instruction-threshold")
1776                        && !seen_instruction_threshold =>
1777                {
1778                    let Some(("instruction-threshold", n)) = option.split_once('=') else {
1779                        return false;
1780                    };
1781                    match n.parse() {
1782                        Ok(n) => options.instruction_threshold = Some(n),
1783                        Err(_) => return false,
1784                    }
1785                    seen_instruction_threshold = true;
1786                }
1787                "skip-entry" if !seen_skip_entry => {
1788                    options.skip_entry = true;
1789                    seen_skip_entry = true;
1790                }
1791                "skip-exit" if !seen_skip_exit => {
1792                    options.skip_exit = true;
1793                    seen_skip_exit = true;
1794                }
1795                _ => return false,
1796            }
1797        }
1798        true
1799    }
1800
1801    pub(crate) fn parse_treat_err_as_bug(
1802        slot: &mut Option<NonZero<usize>>,
1803        v: Option<&str>,
1804    ) -> bool {
1805        match v {
1806            Some(s) => match s.parse() {
1807                Ok(val) => {
1808                    *slot = Some(val);
1809                    true
1810                }
1811                Err(e) => {
1812                    *slot = None;
1813                    e.kind() == &IntErrorKind::Zero
1814                }
1815            },
1816            None => {
1817                *slot = NonZero::new(1);
1818                true
1819            }
1820        }
1821    }
1822
1823    pub(crate) fn parse_next_solver_config(slot: &mut NextSolverConfig, v: Option<&str>) -> bool {
1824        if let Some(config) = v {
1825            *slot = match config {
1826                "no" | "coherence" => NextSolverConfig::Coherence,
1827                "globally" => NextSolverConfig::Globally,
1828                _ => return false,
1829            };
1830        } else {
1831            *slot = NextSolverConfig::Globally;
1832        }
1833
1834        true
1835    }
1836
1837    pub(crate) fn parse_lto(slot: &mut LtoCli, v: Option<&str>) -> bool {
1838        if v.is_some() {
1839            let mut bool_arg = None;
1840            if parse_opt_bool(&mut bool_arg, v) {
1841                *slot = if bool_arg.unwrap() { LtoCli::Yes } else { LtoCli::No };
1842                return true;
1843            }
1844        }
1845
1846        *slot = match v {
1847            None => LtoCli::NoParam,
1848            Some("thin") => LtoCli::Thin,
1849            Some("fat") => LtoCli::Fat,
1850            Some(_) => return false,
1851        };
1852        true
1853    }
1854
1855    pub(crate) fn parse_linker_plugin_lto(slot: &mut LinkerPluginLto, v: Option<&str>) -> bool {
1856        if v.is_some() {
1857            let mut bool_arg = None;
1858            if parse_opt_bool(&mut bool_arg, v) {
1859                *slot = if bool_arg.unwrap() {
1860                    LinkerPluginLto::LinkerPluginAuto
1861                } else {
1862                    LinkerPluginLto::Disabled
1863                };
1864                return true;
1865            }
1866        }
1867
1868        *slot = match v {
1869            None => LinkerPluginLto::LinkerPluginAuto,
1870            Some(path) => LinkerPluginLto::LinkerPlugin(PathBuf::from(path)),
1871        };
1872        true
1873    }
1874
1875    pub(crate) fn parse_switch_with_opt_path(
1876        slot: &mut SwitchWithOptPath,
1877        v: Option<&str>,
1878    ) -> bool {
1879        *slot = match v {
1880            None => SwitchWithOptPath::Enabled(None),
1881            Some(path) => SwitchWithOptPath::Enabled(Some(PathBuf::from(path))),
1882        };
1883        true
1884    }
1885
1886    pub(crate) fn parse_merge_functions(
1887        slot: &mut Option<MergeFunctions>,
1888        v: Option<&str>,
1889    ) -> bool {
1890        match v.and_then(|s| MergeFunctions::from_str(s).ok()) {
1891            Some(mergefunc) => *slot = Some(mergefunc),
1892            _ => return false,
1893        }
1894        true
1895    }
1896
1897    pub(crate) fn parse_relocation_model(slot: &mut Option<RelocModel>, v: Option<&str>) -> bool {
1898        match v.and_then(|s| RelocModel::from_str(s).ok()) {
1899            Some(relocation_model) => *slot = Some(relocation_model),
1900            None if v == Some("default") => *slot = None,
1901            _ => return false,
1902        }
1903        true
1904    }
1905
1906    pub(crate) fn parse_code_model(slot: &mut Option<CodeModel>, v: Option<&str>) -> bool {
1907        match v.and_then(|s| CodeModel::from_str(s).ok()) {
1908            Some(code_model) => *slot = Some(code_model),
1909            _ => return false,
1910        }
1911        true
1912    }
1913
1914    pub(crate) fn parse_tls_model(slot: &mut Option<TlsModel>, v: Option<&str>) -> bool {
1915        match v.and_then(|s| TlsModel::from_str(s).ok()) {
1916            Some(tls_model) => *slot = Some(tls_model),
1917            _ => return false,
1918        }
1919        true
1920    }
1921
1922    pub(crate) fn parse_terminal_url(slot: &mut TerminalUrl, v: Option<&str>) -> bool {
1923        *slot = match v {
1924            Some("on" | "" | "yes" | "y") | None => TerminalUrl::Yes,
1925            Some("off" | "no" | "n") => TerminalUrl::No,
1926            Some("auto") => TerminalUrl::Auto,
1927            _ => return false,
1928        };
1929        true
1930    }
1931
1932    pub(crate) fn parse_symbol_mangling_version(
1933        slot: &mut Option<SymbolManglingVersion>,
1934        v: Option<&str>,
1935    ) -> bool {
1936        *slot = match v {
1937            Some("legacy") => Some(SymbolManglingVersion::Legacy),
1938            Some("v0") => Some(SymbolManglingVersion::V0),
1939            Some("hashed") => Some(SymbolManglingVersion::Hashed),
1940            _ => return false,
1941        };
1942        true
1943    }
1944
1945    pub(crate) fn parse_src_file_hash(
1946        slot: &mut Option<SourceFileHashAlgorithm>,
1947        v: Option<&str>,
1948    ) -> bool {
1949        match v.and_then(|s| SourceFileHashAlgorithm::from_str(s).ok()) {
1950            Some(hash_kind) => *slot = Some(hash_kind),
1951            _ => return false,
1952        }
1953        true
1954    }
1955
1956    pub(crate) fn parse_cargo_src_file_hash(
1957        slot: &mut Option<SourceFileHashAlgorithm>,
1958        v: Option<&str>,
1959    ) -> bool {
1960        match v.and_then(|s| SourceFileHashAlgorithm::from_str(s).ok()) {
1961            Some(hash_kind) => {
1962                *slot = Some(hash_kind);
1963            }
1964            _ => return false,
1965        }
1966        true
1967    }
1968
1969    pub(crate) fn parse_target_feature(slot: &mut String, v: Option<&str>) -> bool {
1970        match v {
1971            Some(s) => {
1972                if !slot.is_empty() {
1973                    slot.push(',');
1974                }
1975                slot.push_str(s);
1976                true
1977            }
1978            None => false,
1979        }
1980    }
1981
1982    pub(crate) fn parse_link_self_contained(slot: &mut LinkSelfContained, v: Option<&str>) -> bool {
1983        // Whenever `-C link-self-contained` is passed without a value, it's an opt-in
1984        // just like `parse_opt_bool`, the historical value of this flag.
1985        //
1986        // 1. Parse historical single bool values
1987        let s = v.unwrap_or("y");
1988        match s {
1989            "y" | "yes" | "on" => {
1990                slot.set_all_explicitly(true);
1991                return true;
1992            }
1993            "n" | "no" | "off" => {
1994                slot.set_all_explicitly(false);
1995                return true;
1996            }
1997            _ => {}
1998        }
1999
2000        // 2. Parse a list of enabled and disabled components.
2001        for comp in s.split(',') {
2002            if slot.handle_cli_component(comp).is_none() {
2003                return false;
2004            }
2005        }
2006
2007        true
2008    }
2009
2010    /// Parse a comma-separated list of enabled and disabled linker features.
2011    pub(crate) fn parse_linker_features(slot: &mut LinkerFeaturesCli, v: Option<&str>) -> bool {
2012        match v {
2013            Some(s) => {
2014                for feature in s.split(',') {
2015                    if slot.handle_cli_feature(feature).is_none() {
2016                        return false;
2017                    }
2018                }
2019
2020                true
2021            }
2022            None => false,
2023        }
2024    }
2025
2026    pub(crate) fn parse_wasi_exec_model(slot: &mut Option<WasiExecModel>, v: Option<&str>) -> bool {
2027        match v {
2028            Some("command") => *slot = Some(WasiExecModel::Command),
2029            Some("reactor") => *slot = Some(WasiExecModel::Reactor),
2030            _ => return false,
2031        }
2032        true
2033    }
2034
2035    pub(crate) fn parse_split_debuginfo(
2036        slot: &mut Option<SplitDebuginfo>,
2037        v: Option<&str>,
2038    ) -> bool {
2039        match v.and_then(|s| SplitDebuginfo::from_str(s).ok()) {
2040            Some(e) => *slot = Some(e),
2041            _ => return false,
2042        }
2043        true
2044    }
2045
2046    pub(crate) fn parse_split_dwarf_kind(slot: &mut SplitDwarfKind, v: Option<&str>) -> bool {
2047        match v.and_then(|s| SplitDwarfKind::from_str(s).ok()) {
2048            Some(e) => *slot = e,
2049            _ => return false,
2050        }
2051        true
2052    }
2053
2054    pub(crate) fn parse_stack_protector(slot: &mut StackProtector, v: Option<&str>) -> bool {
2055        match v.and_then(|s| StackProtector::from_str(s).ok()) {
2056            Some(ssp) => *slot = ssp,
2057            _ => return false,
2058        }
2059        true
2060    }
2061
2062    pub(crate) fn parse_branch_protection(
2063        slot: &mut Option<BranchProtection>,
2064        v: Option<&str>,
2065    ) -> bool {
2066        match v {
2067            Some(s) => {
2068                let slot = slot.get_or_insert_default();
2069                for opt in s.split(',') {
2070                    match opt {
2071                        "bti" => slot.bti = true,
2072                        "pac-ret" if slot.pac_ret.is_none() => {
2073                            // Note: some targets only support certain keys (Windows on Arm only
2074                            // supports Key B) and this possible discrepancy is handled by the
2075                            // session's `branch_protection` accessor, when we have both the target
2076                            // tuple and branch protection information available.
2077                            slot.pac_ret = Some(PacRet { leaf: false, pc: false, key: PAuthKey::A })
2078                        }
2079                        "leaf" => match slot.pac_ret.as_mut() {
2080                            Some(pac) => pac.leaf = true,
2081                            _ => return false,
2082                        },
2083                        "b-key" => match slot.pac_ret.as_mut() {
2084                            Some(pac) => pac.key = PAuthKey::B,
2085                            _ => return false,
2086                        },
2087                        "pc" => match slot.pac_ret.as_mut() {
2088                            Some(pac) => pac.pc = true,
2089                            _ => return false,
2090                        },
2091                        "gcs" => slot.gcs = true,
2092                        _ => return false,
2093                    };
2094                }
2095            }
2096            _ => return false,
2097        }
2098        true
2099    }
2100
2101    pub(crate) fn parse_collapse_macro_debuginfo(
2102        slot: &mut CollapseMacroDebuginfo,
2103        v: Option<&str>,
2104    ) -> bool {
2105        if v.is_some() {
2106            let mut bool_arg = None;
2107            if parse_opt_bool(&mut bool_arg, v) {
2108                *slot = if bool_arg.unwrap() {
2109                    CollapseMacroDebuginfo::Yes
2110                } else {
2111                    CollapseMacroDebuginfo::No
2112                };
2113                return true;
2114            }
2115        }
2116
2117        *slot = match v {
2118            Some("external") => CollapseMacroDebuginfo::External,
2119            _ => return false,
2120        };
2121        true
2122    }
2123
2124    pub(crate) fn parse_proc_macro_execution_strategy(
2125        slot: &mut ProcMacroExecutionStrategy,
2126        v: Option<&str>,
2127    ) -> bool {
2128        *slot = match v {
2129            Some("same-thread") => ProcMacroExecutionStrategy::SameThread,
2130            Some("cross-thread") => ProcMacroExecutionStrategy::CrossThread,
2131            _ => return false,
2132        };
2133        true
2134    }
2135
2136    pub(crate) fn parse_inlining_threshold(slot: &mut InliningThreshold, v: Option<&str>) -> bool {
2137        match v {
2138            Some("always" | "yes") => {
2139                *slot = InliningThreshold::Always;
2140            }
2141            Some("never") => {
2142                *slot = InliningThreshold::Never;
2143            }
2144            Some(v) => {
2145                if let Ok(threshold) = v.parse() {
2146                    *slot = InliningThreshold::Sometimes(threshold);
2147                } else {
2148                    return false;
2149                }
2150            }
2151            None => return false,
2152        }
2153        true
2154    }
2155
2156    pub(crate) fn parse_llvm_module_flag(
2157        slot: &mut Vec<(String, u32, String)>,
2158        v: Option<&str>,
2159    ) -> bool {
2160        let elements = v.unwrap_or_default().split(':').collect::<Vec<_>>();
2161        let [key, md_type, value, behavior] = elements.as_slice() else {
2162            return false;
2163        };
2164        if *md_type != "u32" {
2165            // Currently we only support u32 metadata flags, but require the
2166            // type for forward-compatibility.
2167            return false;
2168        }
2169        let Ok(value) = value.parse::<u32>() else {
2170            return false;
2171        };
2172        let behavior = behavior.to_lowercase();
2173        let all_behaviors =
2174            ["error", "warning", "require", "override", "append", "appendunique", "max", "min"];
2175        if !all_behaviors.contains(&behavior.as_str()) {
2176            return false;
2177        }
2178
2179        slot.push((key.to_string(), value, behavior));
2180        true
2181    }
2182
2183    pub(crate) fn parse_function_return(slot: &mut FunctionReturn, v: Option<&str>) -> bool {
2184        match v {
2185            Some("keep") => *slot = FunctionReturn::Keep,
2186            Some("thunk-extern") => *slot = FunctionReturn::ThunkExtern,
2187            _ => return false,
2188        }
2189        true
2190    }
2191
2192    pub(crate) fn parse_wasm_c_abi(_slot: &mut (), v: Option<&str>) -> bool {
2193        v == Some("spec")
2194    }
2195
2196    pub(crate) fn parse_mir_include_spans(slot: &mut MirIncludeSpans, v: Option<&str>) -> bool {
2197        *slot = match v {
2198            Some("on" | "yes" | "y" | "true") | None => MirIncludeSpans::On,
2199            Some("off" | "no" | "n" | "false") => MirIncludeSpans::Off,
2200            Some("nll") => MirIncludeSpans::Nll,
2201            _ => return false,
2202        };
2203
2204        true
2205    }
2206
2207    pub(crate) fn parse_align(slot: &mut Option<Align>, v: Option<&str>) -> bool {
2208        let mut bytes = 0u64;
2209        if !parse_number(&mut bytes, v) {
2210            return false;
2211        }
2212
2213        let Ok(align) = Align::from_bytes(bytes) else {
2214            return false;
2215        };
2216
2217        *slot = Some(align);
2218
2219        true
2220    }
2221
2222    pub(crate) fn parse_assert_incr_state(
2223        slot: &mut Option<IncrementalStateAssertion>,
2224        v: Option<&str>,
2225    ) -> bool {
2226        *slot = match v {
2227            Some("loaded") => Some(IncrementalStateAssertion::Loaded),
2228            Some("not-loaded") => Some(IncrementalStateAssertion::NotLoaded),
2229            _ => return false,
2230        };
2231        true
2232    }
2233
2234    pub(crate) fn parse_rust_version(slot: &mut Option<RustcVersion>, v: Option<&str>) -> bool {
2235        let Some(v) = v else {
2236            return false;
2237        };
2238        if let Some(version) = RustcVersion::parse_str_strict(v) {
2239            *slot = Some(version);
2240            true
2241        } else {
2242            false
2243        }
2244    }
2245}
2246
2247#[rustc_lint_opt_ty]
pub struct CodegenOptions {
    pub ar: (),
    #[rustc_lint_opt_deny_field_access("use `Session::code_model` instead of this field")]
    pub code_model: Option<CodeModel>,
    pub codegen_units: Option<usize>,
    pub collapse_macro_debuginfo: CollapseMacroDebuginfo,
    pub control_flow_guard: CFGuard,
    pub debug_assertions: Option<bool>,
    pub debuginfo: DebugInfo,
    pub default_linker_libraries: bool,
    pub dlltool: Option<PathBuf>,
    #[rustc_lint_opt_deny_field_access("use `Session::dwarf_version` instead of this field")]
    pub dwarf_version: Option<u32>,
    pub embed_bitcode: bool,
    pub embed_metadata: Option<bool>,
    pub extra_filename: String,
    pub force_frame_pointers: FramePointer,
    #[rustc_lint_opt_deny_field_access("use `Session::must_emit_unwind_tables` instead of this field")]
    pub force_unwind_tables: Option<bool>,
    pub help: bool,
    pub incremental: Option<String>,
    pub inline_threshold: (),
    #[rustc_lint_opt_deny_field_access("use `Session::instrument_coverage` instead of this field")]
    pub instrument_coverage: InstrumentCoverage,
    pub jump_tables: bool,
    pub link_arg: (),
    pub link_args: Vec<String>,
    #[rustc_lint_opt_deny_field_access("use `Session::link_dead_code` instead of this field")]
    pub link_dead_code: Option<bool>,
    pub link_self_contained: LinkSelfContained,
    pub linker: Option<PathBuf>,
    pub linker_features: LinkerFeaturesCli,
    pub linker_flavor: Option<LinkerFlavorCli>,
    pub linker_plugin_lto: LinkerPluginLto,
    pub llvm_args: Vec<String>,
    #[rustc_lint_opt_deny_field_access("use `Session::lto` instead of this field")]
    pub lto: LtoCli,
    pub metadata: Vec<String>,
    pub no_prepopulate_passes: bool,
    pub no_redzone: Option<bool>,
    pub no_stack_check: (),
    pub no_vectorize_loops: bool,
    pub no_vectorize_slp: bool,
    pub opt_level: String,
    #[rustc_lint_opt_deny_field_access("use `Session::overflow_checks` instead of this field")]
    pub overflow_checks: Option<bool>,
    #[rustc_lint_opt_deny_field_access("use `Session::panic_strategy` instead of this field")]
    pub panic: Option<PanicStrategy>,
    pub passes: Vec<String>,
    pub prefer_dynamic: bool,
    pub profile_generate: SwitchWithOptPath,
    pub profile_sample_use: Option<PathBuf>,
    pub profile_use: Option<PathBuf>,
    #[rustc_lint_opt_deny_field_access("use `Session::relocation_model` instead of this field")]
    pub relocation_model: Option<RelocModel>,
    pub relro_level: Option<RelroLevel>,
    pub remark: Passes,
    pub rpath: bool,
    pub save_temps: bool,
    pub soft_float: (),
    #[rustc_lint_opt_deny_field_access("use `Session::split_debuginfo` instead of this field")]
    pub split_debuginfo: Option<SplitDebuginfo>,
    pub strip: Strip,
    pub symbol_mangling_version: Option<SymbolManglingVersion>,
    pub target_cpu: Option<String>,
    pub target_feature: String,
    pub unsafe_allow_abi_mismatch: Vec<String>,
}
#[automatically_derived]impl ::core::clone::Clone for CodegenOptions {
    #[inline]
    fn clone(&self) -> Self {
        CodegenOptions {
            ar: ::core::clone::Clone::clone(&self.ar),
            code_model: ::core::clone::Clone::clone(&self.code_model),
            codegen_units: ::core::clone::Clone::clone(&self.codegen_units),
            collapse_macro_debuginfo: ::core::clone::Clone::clone(&self.collapse_macro_debuginfo),
            control_flow_guard: ::core::clone::Clone::clone(&self.control_flow_guard),
            debug_assertions: ::core::clone::Clone::clone(&self.debug_assertions),
            debuginfo: ::core::clone::Clone::clone(&self.debuginfo),
            default_linker_libraries: ::core::clone::Clone::clone(&self.default_linker_libraries),
            dlltool: ::core::clone::Clone::clone(&self.dlltool),
            dwarf_version: ::core::clone::Clone::clone(&self.dwarf_version),
            embed_bitcode: ::core::clone::Clone::clone(&self.embed_bitcode),
            embed_metadata: ::core::clone::Clone::clone(&self.embed_metadata),
            extra_filename: ::core::clone::Clone::clone(&self.extra_filename),
            force_frame_pointers: ::core::clone::Clone::clone(&self.force_frame_pointers),
            force_unwind_tables: ::core::clone::Clone::clone(&self.force_unwind_tables),
            help: ::core::clone::Clone::clone(&self.help),
            incremental: ::core::clone::Clone::clone(&self.incremental),
            inline_threshold: ::core::clone::Clone::clone(&self.inline_threshold),
            instrument_coverage: ::core::clone::Clone::clone(&self.instrument_coverage),
            jump_tables: ::core::clone::Clone::clone(&self.jump_tables),
            link_arg: ::core::clone::Clone::clone(&self.link_arg),
            link_args: ::core::clone::Clone::clone(&self.link_args),
            link_dead_code: ::core::clone::Clone::clone(&self.link_dead_code),
            link_self_contained: ::core::clone::Clone::clone(&self.link_self_contained),
            linker: ::core::clone::Clone::clone(&self.linker),
            linker_features: ::core::clone::Clone::clone(&self.linker_features),
            linker_flavor: ::core::clone::Clone::clone(&self.linker_flavor),
            linker_plugin_lto: ::core::clone::Clone::clone(&self.linker_plugin_lto),
            llvm_args: ::core::clone::Clone::clone(&self.llvm_args),
            lto: ::core::clone::Clone::clone(&self.lto),
            metadata: ::core::clone::Clone::clone(&self.metadata),
            no_prepopulate_passes: ::core::clone::Clone::clone(&self.no_prepopulate_passes),
            no_redzone: ::core::clone::Clone::clone(&self.no_redzone),
            no_stack_check: ::core::clone::Clone::clone(&self.no_stack_check),
            no_vectorize_loops: ::core::clone::Clone::clone(&self.no_vectorize_loops),
            no_vectorize_slp: ::core::clone::Clone::clone(&self.no_vectorize_slp),
            opt_level: ::core::clone::Clone::clone(&self.opt_level),
            overflow_checks: ::core::clone::Clone::clone(&self.overflow_checks),
            panic: ::core::clone::Clone::clone(&self.panic),
            passes: ::core::clone::Clone::clone(&self.passes),
            prefer_dynamic: ::core::clone::Clone::clone(&self.prefer_dynamic),
            profile_generate: ::core::clone::Clone::clone(&self.profile_generate),
            profile_sample_use: ::core::clone::Clone::clone(&self.profile_sample_use),
            profile_use: ::core::clone::Clone::clone(&self.profile_use),
            relocation_model: ::core::clone::Clone::clone(&self.relocation_model),
            relro_level: ::core::clone::Clone::clone(&self.relro_level),
            remark: ::core::clone::Clone::clone(&self.remark),
            rpath: ::core::clone::Clone::clone(&self.rpath),
            save_temps: ::core::clone::Clone::clone(&self.save_temps),
            soft_float: ::core::clone::Clone::clone(&self.soft_float),
            split_debuginfo: ::core::clone::Clone::clone(&self.split_debuginfo),
            strip: ::core::clone::Clone::clone(&self.strip),
            symbol_mangling_version: ::core::clone::Clone::clone(&self.symbol_mangling_version),
            target_cpu: ::core::clone::Clone::clone(&self.target_cpu),
            target_feature: ::core::clone::Clone::clone(&self.target_feature),
            unsafe_allow_abi_mismatch: ::core::clone::Clone::clone(&self.unsafe_allow_abi_mismatch),
        }
    }
}
pub enum CodegenOptionsTargetModifiers { TargetCpu, }
#[automatically_derived]impl ::core::marker::StructuralPartialEq for
    CodegenOptionsTargetModifiers {
}
#[automatically_derived]impl ::core::cmp::PartialEq for
    CodegenOptionsTargetModifiers {
    #[inline]
    fn eq(&self, other: &Self) -> bool { true }
}
#[automatically_derived]impl ::core::cmp::Eq for CodegenOptionsTargetModifiers
    {
}
#[automatically_derived]impl ::core::cmp::PartialOrd for
    CodegenOptionsTargetModifiers {
    #[inline]
    fn partial_cmp(&self, other: &Self)
        -> ::core::option::Option<::core::cmp::Ordering> {
        ::core::option::Option::Some(::core::cmp::Ordering::Equal)
    }
}
#[automatically_derived]impl ::core::cmp::Ord for
    CodegenOptionsTargetModifiers {
    #[inline]
    fn cmp(&self, other: &Self) -> ::core::cmp::Ordering {
        ::core::cmp::Ordering::Equal
    }
}
#[automatically_derived]impl ::core::fmt::Debug for
    CodegenOptionsTargetModifiers {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f, "TargetCpu")
    }
}
#[automatically_derived]impl ::core::marker::Copy for
    CodegenOptionsTargetModifiers {
}
#[automatically_derived]#[doc(hidden)]unsafe impl ::core::clone::TrivialClone
    for CodegenOptionsTargetModifiers {
}
#[automatically_derived]impl ::core::clone::Clone for
    CodegenOptionsTargetModifiers {
    #[inline]
    fn clone(&self) -> Self { *self }
}
const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for CodegenOptionsTargetModifiers {
            fn encode(&self, __encoder: &mut __E) {}
        }
    };
const _: () =
    {
        impl<__D: ::rustc_span::BlobDecoder> ::rustc_serialize::Decodable<__D>
            for CodegenOptionsTargetModifiers {
            fn decode(__decoder: &mut __D) -> Self {
                CodegenOptionsTargetModifiers::TargetCpu
            }
        }
    };
impl CodegenOptionsTargetModifiers {
    pub fn reparse(&self, _user_value: &str) -> ExtendedTargetModifierInfo {
        match self {
            Self::TargetCpu => {
                let mut parsed: Option<String> = Default::default();
                let val =
                    if _user_value.is_empty() {
                        None
                    } else { Some(_user_value) };
                parse::parse_opt_string(&mut parsed, val);
                ExtendedTargetModifierInfo {
                    prefix: "C".to_string(),
                    name: "target_cpu".to_string().replace('_', "-"),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", parsed))
                        }),
                }
            }
                #[allow(unreachable_patterns)]
                _ => {
                ::core::panicking::panic_fmt(format_args!("unknown target modifier option: {0:?}",
                        *self));
            }
        }
    }
    pub fn is_target_modifier(flag_name: &str) -> bool {
        match flag_name.replace('-', "_").as_str() {
            "target_cpu" => true,
            _ => false,
        }
    }
}
impl Default for CodegenOptions {
    fn default() -> CodegenOptions {
        CodegenOptions {
            ar: (),
            code_model: None,
            codegen_units: None,
            collapse_macro_debuginfo: CollapseMacroDebuginfo::Unspecified,
            control_flow_guard: CFGuard::Disabled,
            debug_assertions: None,
            debuginfo: DebugInfo::None,
            default_linker_libraries: false,
            dlltool: None,
            dwarf_version: None,
            embed_bitcode: true,
            embed_metadata: None,
            extra_filename: String::new(),
            force_frame_pointers: FramePointer::MayOmit,
            force_unwind_tables: None,
            help: false,
            incremental: None,
            inline_threshold: (),
            instrument_coverage: InstrumentCoverage::No,
            jump_tables: true,
            link_arg: (),
            link_args: Vec::new(),
            link_dead_code: None,
            link_self_contained: LinkSelfContained::default(),
            linker: None,
            linker_features: LinkerFeaturesCli::default(),
            linker_flavor: None,
            linker_plugin_lto: LinkerPluginLto::Disabled,
            llvm_args: Vec::new(),
            lto: LtoCli::Unspecified,
            metadata: Vec::new(),
            no_prepopulate_passes: false,
            no_redzone: None,
            no_stack_check: (),
            no_vectorize_loops: false,
            no_vectorize_slp: false,
            opt_level: "0".to_string(),
            overflow_checks: None,
            panic: None,
            passes: Vec::new(),
            prefer_dynamic: false,
            profile_generate: SwitchWithOptPath::Disabled,
            profile_sample_use: None,
            profile_use: None,
            relocation_model: None,
            relro_level: None,
            remark: Passes::Some(Vec::new()),
            rpath: false,
            save_temps: false,
            soft_float: (),
            split_debuginfo: None,
            strip: Strip::None,
            symbol_mangling_version: None,
            target_cpu: None,
            target_feature: String::new(),
            unsafe_allow_abi_mismatch: Vec::new(),
        }
    }
}
impl CodegenOptions {
    pub fn build(early_dcx: &EarlyDiagCtxt, matches: &getopts::Matches,
        target_modifiers: &mut CollectedOptions) -> CodegenOptions {
        build_options(early_dcx, matches, target_modifiers, CG_OPTIONS, "C",
            "codegen")
    }
    fn dep_tracking_hash(&self, for_crate_hash: bool,
        error_format: ErrorOutputType) -> Hash64 {
        let mut sub_hashes = BTreeMap::new();
        {};
        {
            if (&mut sub_hashes).insert("code_model",
                        &self.code_model as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "code_model"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("collapse_macro_debuginfo",
                        &self.collapse_macro_debuginfo as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "collapse_macro_debuginfo"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("control_flow_guard",
                        &self.control_flow_guard as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "control_flow_guard"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("debug_assertions",
                        &self.debug_assertions as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "debug_assertions"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("debuginfo",
                        &self.debuginfo as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "debuginfo"));
                }
            }
        };
        {};
        {};
        {
            if (&mut sub_hashes).insert("dwarf_version",
                        &self.dwarf_version as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "dwarf_version"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("embed_bitcode",
                        &self.embed_bitcode as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "embed_bitcode"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("embed_metadata",
                        &self.embed_metadata as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "embed_metadata"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("force_frame_pointers",
                        &self.force_frame_pointers as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "force_frame_pointers"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("force_unwind_tables",
                        &self.force_unwind_tables as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "force_unwind_tables"));
                }
            }
        };
        {};
        {};
        {};
        {
            if (&mut sub_hashes).insert("instrument_coverage",
                        &self.instrument_coverage as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "instrument_coverage"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("jump_tables",
                        &self.jump_tables as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "jump_tables"));
                }
            }
        };
        {};
        {};
        {
            if (&mut sub_hashes).insert("link_dead_code",
                        &self.link_dead_code as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "link_dead_code"));
                }
            }
        };
        {};
        {};
        {};
        {};
        {
            if (&mut sub_hashes).insert("linker_plugin_lto",
                        &self.linker_plugin_lto as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "linker_plugin_lto"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("llvm_args",
                        &self.llvm_args as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "llvm_args"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("lto",
                        &self.lto as &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "lto"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("metadata",
                        &self.metadata as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "metadata"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("no_prepopulate_passes",
                        &self.no_prepopulate_passes as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "no_prepopulate_passes"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("no_redzone",
                        &self.no_redzone as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "no_redzone"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("no_vectorize_loops",
                        &self.no_vectorize_loops as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "no_vectorize_loops"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("no_vectorize_slp",
                        &self.no_vectorize_slp as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "no_vectorize_slp"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("opt_level",
                        &self.opt_level as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "opt_level"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("overflow_checks",
                        &self.overflow_checks as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "overflow_checks"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("panic",
                        &self.panic as &dyn dep_tracking::DepTrackingHash).is_some()
                {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "panic"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("passes",
                        &self.passes as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "passes"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("prefer_dynamic",
                        &self.prefer_dynamic as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "prefer_dynamic"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("profile_generate",
                        &self.profile_generate as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "profile_generate"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("profile_sample_use",
                        &self.profile_sample_use as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "profile_sample_use"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("profile_use",
                        &self.profile_use as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "profile_use"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("relocation_model",
                        &self.relocation_model as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "relocation_model"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("relro_level",
                        &self.relro_level as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "relro_level"));
                }
            }
        };
        {};
        {};
        {};
        {};
        {
            if (&mut sub_hashes).insert("split_debuginfo",
                        &self.split_debuginfo as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "split_debuginfo"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("symbol_mangling_version",
                        &self.symbol_mangling_version as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "symbol_mangling_version"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("target_cpu",
                        &self.target_cpu as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "target_cpu"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("target_feature",
                        &self.target_feature as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "target_feature"));
                }
            }
        };
        {};
        let mut hasher = StableHasher::new();
        dep_tracking::stable_hash(sub_hashes, &mut hasher, error_format,
            for_crate_hash);
        hasher.finish()
    }
    pub fn gather_target_modifiers(&self, _mods: &mut Vec<TargetModifier>,
        _tmod_vals: &BTreeMap<OptionsTargetModifiers, String>) {
        if self.target_cpu != None {
            tmod_push_impl(OptionsTargetModifiers::CodegenOptions(CodegenOptionsTargetModifiers::TargetCpu),
                _tmod_vals, _mods);
        }
    }
}
pub const CG_OPTIONS: OptionDescrs<CodegenOptions> =
    &[OptionDesc {
                    name: "ar",
                    setter: cgopts::ar,
                    type_desc: desc::parse_ignore,
                    desc: "this option has been removed",
                    removed: None.or(Some(RemovedOption::Err)),
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "code_model",
                    setter: cgopts::code_model,
                    type_desc: desc::parse_code_model,
                    desc: "choose the code model to use (`rustc --print code-models` for details)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "codegen_units",
                    setter: cgopts::codegen_units,
                    type_desc: desc::parse_opt_number,
                    desc: "divide crate into N units to optimize in parallel",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "collapse_macro_debuginfo",
                    setter: cgopts::collapse_macro_debuginfo,
                    type_desc: desc::parse_collapse_macro_debuginfo,
                    desc: "set option to collapse debuginfo for macros",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "control_flow_guard",
                    setter: cgopts::control_flow_guard,
                    type_desc: desc::parse_cfguard,
                    desc: "use Windows Control Flow Guard (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None.or(Some(mitigation_coverage::DeniedPartialMitigationKind::ControlFlowGuard)),
                },
                OptionDesc {
                    name: "debug_assertions",
                    setter: cgopts::debug_assertions,
                    type_desc: desc::parse_opt_bool,
                    desc: "explicitly enable the `cfg(debug_assertions)` directive",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "debuginfo",
                    setter: cgopts::debuginfo,
                    type_desc: desc::parse_debuginfo,
                    desc: "debug info emission level (0-2, none, line-directives-only, \
        line-tables-only, limited, or full; default: 0)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "default_linker_libraries",
                    setter: cgopts::default_linker_libraries,
                    type_desc: desc::parse_bool,
                    desc: "allow the linker to link its default libraries (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dlltool",
                    setter: cgopts::dlltool,
                    type_desc: desc::parse_opt_pathbuf,
                    desc: "import library generation tool (ignored except when targeting windows-gnu)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dwarf_version",
                    setter: cgopts::dwarf_version,
                    type_desc: desc::parse_opt_number,
                    desc: "version of DWARF debug information to emit (default: 2 or 4, depending on platform)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "embed_bitcode",
                    setter: cgopts::embed_bitcode,
                    type_desc: desc::parse_bool,
                    desc: "emit bitcode in rlibs (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "embed_metadata",
                    setter: cgopts::embed_metadata,
                    type_desc: desc::parse_opt_bool,
                    desc: "embed metadata in rlibs and dylibs (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "extra_filename",
                    setter: cgopts::extra_filename,
                    type_desc: desc::parse_string,
                    desc: "extra data to put in each output filename",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "force_frame_pointers",
                    setter: cgopts::force_frame_pointers,
                    type_desc: desc::parse_frame_pointer,
                    desc: "force use of the frame pointers",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "force_unwind_tables",
                    setter: cgopts::force_unwind_tables,
                    type_desc: desc::parse_opt_bool,
                    desc: "force use of unwind tables",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "help",
                    setter: cgopts::help,
                    type_desc: desc::parse_no_value,
                    desc: "Print codegen options",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "incremental",
                    setter: cgopts::incremental,
                    type_desc: desc::parse_opt_string,
                    desc: "enable incremental compilation",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "inline_threshold",
                    setter: cgopts::inline_threshold,
                    type_desc: desc::parse_ignore,
                    desc: "this option has been removed \
        (consider using `-Cllvm-args=--inline-threshold=...`)",
                    removed: None.or(Some(RemovedOption::Err)),
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "instrument_coverage",
                    setter: cgopts::instrument_coverage,
                    type_desc: desc::parse_instrument_coverage,
                    desc: "instrument the generated code to support LLVM source-based code coverage reports \
        (note, the compiler build config must include `profiler = true`); \
        implies `-C symbol-mangling-version=v0`",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "jump_tables",
                    setter: cgopts::jump_tables,
                    type_desc: desc::parse_bool,
                    desc: "allow jump table and lookup table generation from switch case lowering (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "link_arg",
                    setter: cgopts::link_arg,
                    type_desc: desc::parse_string_push,
                    desc: "a single extra argument to append to the linker invocation (can be used several times)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "link_args",
                    setter: cgopts::link_args,
                    type_desc: desc::parse_list,
                    desc: "extra arguments to append to the linker invocation (space separated)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "link_dead_code",
                    setter: cgopts::link_dead_code,
                    type_desc: desc::parse_opt_bool,
                    desc: "try to generate and link dead code (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "link_self_contained",
                    setter: cgopts::link_self_contained,
                    type_desc: desc::parse_link_self_contained,
                    desc: "control whether to link Rust provided C objects/libraries or rely \
        on a C toolchain or linker installed in the system",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "linker",
                    setter: cgopts::linker,
                    type_desc: desc::parse_opt_pathbuf,
                    desc: "system linker to link outputs with",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "linker_features",
                    setter: cgopts::linker_features,
                    type_desc: desc::parse_linker_features,
                    desc: "a comma-separated list of linker features to enable (+) or disable (-): `lld`",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "linker_flavor",
                    setter: cgopts::linker_flavor,
                    type_desc: desc::parse_linker_flavor,
                    desc: "linker flavor",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "linker_plugin_lto",
                    setter: cgopts::linker_plugin_lto,
                    type_desc: desc::parse_linker_plugin_lto,
                    desc: "generate build artifacts that are compatible with linker-based LTO",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "llvm_args",
                    setter: cgopts::llvm_args,
                    type_desc: desc::parse_list,
                    desc: "a list of arguments to pass to LLVM (space separated)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "lto",
                    setter: cgopts::lto,
                    type_desc: desc::parse_lto,
                    desc: "perform LLVM link-time optimizations",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "metadata",
                    setter: cgopts::metadata,
                    type_desc: desc::parse_list,
                    desc: "metadata to mangle symbol names with",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_prepopulate_passes",
                    setter: cgopts::no_prepopulate_passes,
                    type_desc: desc::parse_no_value,
                    desc: "give an empty list of passes to the pass manager",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_redzone",
                    setter: cgopts::no_redzone,
                    type_desc: desc::parse_opt_bool,
                    desc: "disable the use of the redzone",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_stack_check",
                    setter: cgopts::no_stack_check,
                    type_desc: desc::parse_ignore,
                    desc: "this option has been removed",
                    removed: None.or(Some(RemovedOption::Err)),
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_vectorize_loops",
                    setter: cgopts::no_vectorize_loops,
                    type_desc: desc::parse_no_value,
                    desc: "disable loop vectorization optimization passes",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_vectorize_slp",
                    setter: cgopts::no_vectorize_slp,
                    type_desc: desc::parse_no_value,
                    desc: "disable LLVM's SLP vectorization pass",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "opt_level",
                    setter: cgopts::opt_level,
                    type_desc: desc::parse_string,
                    desc: "optimization level (0-3, s, or z; default: 0)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "overflow_checks",
                    setter: cgopts::overflow_checks,
                    type_desc: desc::parse_opt_bool,
                    desc: "use overflow checks for integer arithmetic",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "panic",
                    setter: cgopts::panic,
                    type_desc: desc::parse_opt_panic_strategy,
                    desc: "panic strategy to compile crate with",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "passes",
                    setter: cgopts::passes,
                    type_desc: desc::parse_list,
                    desc: "a list of extra LLVM passes to run (space separated)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "prefer_dynamic",
                    setter: cgopts::prefer_dynamic,
                    type_desc: desc::parse_bool,
                    desc: "prefer dynamic linking to static linking (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "profile_generate",
                    setter: cgopts::profile_generate,
                    type_desc: desc::parse_switch_with_opt_path,
                    desc: "compile the program with profiling instrumentation",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "profile_sample_use",
                    setter: cgopts::profile_sample_use,
                    type_desc: desc::parse_opt_pathbuf,
                    desc: "use the given `.prof` file for sample-based profile-guided optimization",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "profile_use",
                    setter: cgopts::profile_use,
                    type_desc: desc::parse_opt_pathbuf,
                    desc: "use the given `.profdata` file for profile-guided optimization",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "relocation_model",
                    setter: cgopts::relocation_model,
                    type_desc: desc::parse_relocation_model,
                    desc: "control generation of position-independent code (PIC) \
        (`rustc --print relocation-models` for details)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "relro_level",
                    setter: cgopts::relro_level,
                    type_desc: desc::parse_relro_level,
                    desc: "choose which RELRO level to use",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "remark",
                    setter: cgopts::remark,
                    type_desc: desc::parse_passes,
                    desc: "output remarks for these optimization passes (space separated, or \"all\")",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "rpath",
                    setter: cgopts::rpath,
                    type_desc: desc::parse_bool,
                    desc: "set rpath values in libs/exes (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "save_temps",
                    setter: cgopts::save_temps,
                    type_desc: desc::parse_bool,
                    desc: "save all temporary output files during compilation (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "soft_float",
                    setter: cgopts::soft_float,
                    type_desc: desc::parse_ignore,
                    desc: "this option has been removed \
        (use a corresponding *eabi target instead)",
                    removed: None.or(Some(RemovedOption::Err)),
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "split_debuginfo",
                    setter: cgopts::split_debuginfo,
                    type_desc: desc::parse_split_debuginfo,
                    desc: "how to handle split-debuginfo, a platform-specific option",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "strip",
                    setter: cgopts::strip,
                    type_desc: desc::parse_strip,
                    desc: "tell the linker which information to strip (`none` (default), `debuginfo` or `symbols`)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "symbol_mangling_version",
                    setter: cgopts::symbol_mangling_version,
                    type_desc: desc::parse_symbol_mangling_version,
                    desc: "which mangling version to use for symbol names ('legacy', 'v0' (default), or 'hashed')",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "target_cpu",
                    setter: cgopts::target_cpu,
                    type_desc: desc::parse_opt_string,
                    desc: "select target processor (`rustc --print target-cpus` for details) \
        The resulting binary must only be executed on CPUs that have all the features \
        of the given CPU.",
                    removed: None,
                    tmod: None.or(Some(OptionsTargetModifiers::CodegenOptions(CodegenOptionsTargetModifiers::TargetCpu))),
                    mitigation: None,
                },
                OptionDesc {
                    name: "target_feature",
                    setter: cgopts::target_feature,
                    type_desc: desc::parse_target_feature,
                    desc: "target-specific attributes (`rustc --print target-features` for details). \
        The resulting binary must only be executed on CPUs that have all the given features.",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "unsafe_allow_abi_mismatch",
                    setter: cgopts::unsafe_allow_abi_mismatch,
                    type_desc: desc::parse_comma_list,
                    desc: "Allow incompatible target modifiers in dependency crates (comma separated list)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                }];
mod cgopts {
    pub(super) fn ar(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_ignore(&mut cg.ar, v)
    }
    pub(super) fn code_model(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_code_model(&mut cg.code_model, v)
    }
    pub(super) fn codegen_units(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.codegen_units, v)
    }
    pub(super) fn collapse_macro_debuginfo(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_collapse_macro_debuginfo(&mut cg.collapse_macro_debuginfo,
            v)
    }
    pub(super) fn control_flow_guard(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_cfguard(&mut cg.control_flow_guard, v)
    }
    pub(super) fn debug_assertions(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.debug_assertions, v)
    }
    pub(super) fn debuginfo(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_debuginfo(&mut cg.debuginfo, v)
    }
    pub(super) fn default_linker_libraries(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.default_linker_libraries, v)
    }
    pub(super) fn dlltool(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_pathbuf(&mut cg.dlltool, v)
    }
    pub(super) fn dwarf_version(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.dwarf_version, v)
    }
    pub(super) fn embed_bitcode(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.embed_bitcode, v)
    }
    pub(super) fn embed_metadata(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.embed_metadata, v)
    }
    pub(super) fn extra_filename(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_string(&mut cg.extra_filename, v)
    }
    pub(super) fn force_frame_pointers(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_frame_pointer(&mut cg.force_frame_pointers, v)
    }
    pub(super) fn force_unwind_tables(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.force_unwind_tables, v)
    }
    pub(super) fn help(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.help, v)
    }
    pub(super) fn incremental(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_string(&mut cg.incremental, v)
    }
    pub(super) fn inline_threshold(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_ignore(&mut cg.inline_threshold, v)
    }
    pub(super) fn instrument_coverage(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_instrument_coverage(&mut cg.instrument_coverage,
            v)
    }
    pub(super) fn jump_tables(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.jump_tables, v)
    }
    pub(super) fn link_arg(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_string_push(&mut cg.link_args, v)
    }
    pub(super) fn link_args(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_list(&mut cg.link_args, v)
    }
    pub(super) fn link_dead_code(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.link_dead_code, v)
    }
    pub(super) fn link_self_contained(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_link_self_contained(&mut cg.link_self_contained,
            v)
    }
    pub(super) fn linker(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_pathbuf(&mut cg.linker, v)
    }
    pub(super) fn linker_features(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_linker_features(&mut cg.linker_features, v)
    }
    pub(super) fn linker_flavor(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_linker_flavor(&mut cg.linker_flavor, v)
    }
    pub(super) fn linker_plugin_lto(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_linker_plugin_lto(&mut cg.linker_plugin_lto, v)
    }
    pub(super) fn llvm_args(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_list(&mut cg.llvm_args, v)
    }
    pub(super) fn lto(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_lto(&mut cg.lto, v)
    }
    pub(super) fn metadata(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_list(&mut cg.metadata, v)
    }
    pub(super) fn no_prepopulate_passes(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.no_prepopulate_passes, v)
    }
    pub(super) fn no_redzone(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.no_redzone, v)
    }
    pub(super) fn no_stack_check(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_ignore(&mut cg.no_stack_check, v)
    }
    pub(super) fn no_vectorize_loops(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.no_vectorize_loops, v)
    }
    pub(super) fn no_vectorize_slp(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.no_vectorize_slp, v)
    }
    pub(super) fn opt_level(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_string(&mut cg.opt_level, v)
    }
    pub(super) fn overflow_checks(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.overflow_checks, v)
    }
    pub(super) fn panic(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_panic_strategy(&mut cg.panic, v)
    }
    pub(super) fn passes(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_list(&mut cg.passes, v)
    }
    pub(super) fn prefer_dynamic(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.prefer_dynamic, v)
    }
    pub(super) fn profile_generate(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_switch_with_opt_path(&mut cg.profile_generate, v)
    }
    pub(super) fn profile_sample_use(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_pathbuf(&mut cg.profile_sample_use, v)
    }
    pub(super) fn profile_use(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_pathbuf(&mut cg.profile_use, v)
    }
    pub(super) fn relocation_model(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_relocation_model(&mut cg.relocation_model, v)
    }
    pub(super) fn relro_level(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_relro_level(&mut cg.relro_level, v)
    }
    pub(super) fn remark(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_passes(&mut cg.remark, v)
    }
    pub(super) fn rpath(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.rpath, v)
    }
    pub(super) fn save_temps(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.save_temps, v)
    }
    pub(super) fn soft_float(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_ignore(&mut cg.soft_float, v)
    }
    pub(super) fn split_debuginfo(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_split_debuginfo(&mut cg.split_debuginfo, v)
    }
    pub(super) fn strip(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_strip(&mut cg.strip, v)
    }
    pub(super) fn symbol_mangling_version(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_symbol_mangling_version(&mut cg.symbol_mangling_version,
            v)
    }
    pub(super) fn target_cpu(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_string(&mut cg.target_cpu, v)
    }
    pub(super) fn target_feature(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_target_feature(&mut cg.target_feature, v)
    }
    pub(super) fn unsafe_allow_abi_mismatch(cg: &mut super::CodegenOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_comma_list(&mut cg.unsafe_allow_abi_mismatch, v)
    }
}options! {
2248    CodegenOptions, CodegenOptionsTargetModifiers, CG_OPTIONS, cgopts, "C", "codegen",
2249
2250    // If you add a new option, please update:
2251    // - compiler/rustc_interface/src/tests.rs
2252    // - src/doc/rustc/src/codegen-options/index.md
2253
2254    // tidy-alphabetical-start
2255    ar: () = ((), parse_ignore, [UNTRACKED],
2256        "this option has been removed",
2257        removed: Err),
2258    #[rustc_lint_opt_deny_field_access("use `Session::code_model` instead of this field")]
2259    code_model: Option<CodeModel> = (None, parse_code_model, [TRACKED],
2260        "choose the code model to use (`rustc --print code-models` for details)"),
2261    codegen_units: Option<usize> = (None, parse_opt_number, [UNTRACKED],
2262        "divide crate into N units to optimize in parallel"),
2263    collapse_macro_debuginfo: CollapseMacroDebuginfo = (CollapseMacroDebuginfo::Unspecified,
2264        parse_collapse_macro_debuginfo, [TRACKED],
2265        "set option to collapse debuginfo for macros"),
2266    control_flow_guard: CFGuard = (CFGuard::Disabled, parse_cfguard, [TRACKED] { MITIGATION: ControlFlowGuard },
2267        "use Windows Control Flow Guard (default: no)"),
2268    debug_assertions: Option<bool> = (None, parse_opt_bool, [TRACKED],
2269        "explicitly enable the `cfg(debug_assertions)` directive"),
2270    debuginfo: DebugInfo = (DebugInfo::None, parse_debuginfo, [TRACKED],
2271        "debug info emission level (0-2, none, line-directives-only, \
2272        line-tables-only, limited, or full; default: 0)"),
2273    default_linker_libraries: bool = (false, parse_bool, [UNTRACKED],
2274        "allow the linker to link its default libraries (default: no)"),
2275    dlltool: Option<PathBuf> = (None, parse_opt_pathbuf, [UNTRACKED],
2276        "import library generation tool (ignored except when targeting windows-gnu)"),
2277    #[rustc_lint_opt_deny_field_access("use `Session::dwarf_version` instead of this field")]
2278    dwarf_version: Option<u32> = (None, parse_opt_number, [TRACKED],
2279        "version of DWARF debug information to emit (default: 2 or 4, depending on platform)"),
2280    embed_bitcode: bool = (true, parse_bool, [TRACKED],
2281        "emit bitcode in rlibs (default: yes)"),
2282    embed_metadata: Option<bool> = (None, parse_opt_bool, [TRACKED],
2283        "embed metadata in rlibs and dylibs (default: yes)"),
2284    extra_filename: String = (String::new(), parse_string, [UNTRACKED],
2285        "extra data to put in each output filename"),
2286    force_frame_pointers: FramePointer = (FramePointer::MayOmit, parse_frame_pointer, [TRACKED],
2287        "force use of the frame pointers"),
2288    #[rustc_lint_opt_deny_field_access("use `Session::must_emit_unwind_tables` instead of this field")]
2289    force_unwind_tables: Option<bool> = (None, parse_opt_bool, [TRACKED],
2290        "force use of unwind tables"),
2291    help: bool = (false, parse_no_value, [UNTRACKED], "Print codegen options"),
2292    incremental: Option<String> = (None, parse_opt_string, [UNTRACKED],
2293        "enable incremental compilation"),
2294    inline_threshold: () = ((), parse_ignore, [UNTRACKED],
2295        "this option has been removed \
2296        (consider using `-Cllvm-args=--inline-threshold=...`)",
2297        removed: Err),
2298    #[rustc_lint_opt_deny_field_access("use `Session::instrument_coverage` instead of this field")]
2299    instrument_coverage: InstrumentCoverage = (InstrumentCoverage::No, parse_instrument_coverage, [TRACKED],
2300        "instrument the generated code to support LLVM source-based code coverage reports \
2301        (note, the compiler build config must include `profiler = true`); \
2302        implies `-C symbol-mangling-version=v0`"),
2303    jump_tables: bool = (true, parse_bool, [TRACKED],
2304        "allow jump table and lookup table generation from switch case lowering (default: yes)"),
2305    link_arg: (/* redirected to link_args */) = ((), parse_string_push, [UNTRACKED],
2306        "a single extra argument to append to the linker invocation (can be used several times)"),
2307    link_args: Vec<String> = (Vec::new(), parse_list, [UNTRACKED],
2308        "extra arguments to append to the linker invocation (space separated)"),
2309    #[rustc_lint_opt_deny_field_access("use `Session::link_dead_code` instead of this field")]
2310    link_dead_code: Option<bool> = (None, parse_opt_bool, [TRACKED],
2311        "try to generate and link dead code (default: no)"),
2312    link_self_contained: LinkSelfContained = (LinkSelfContained::default(), parse_link_self_contained, [UNTRACKED],
2313        "control whether to link Rust provided C objects/libraries or rely \
2314        on a C toolchain or linker installed in the system"),
2315    linker: Option<PathBuf> = (None, parse_opt_pathbuf, [UNTRACKED],
2316        "system linker to link outputs with"),
2317    linker_features: LinkerFeaturesCli = (LinkerFeaturesCli::default(), parse_linker_features, [UNTRACKED],
2318        "a comma-separated list of linker features to enable (+) or disable (-): `lld`"),
2319    linker_flavor: Option<LinkerFlavorCli> = (None, parse_linker_flavor, [UNTRACKED],
2320        "linker flavor"),
2321    linker_plugin_lto: LinkerPluginLto = (LinkerPluginLto::Disabled,
2322        parse_linker_plugin_lto, [TRACKED],
2323        "generate build artifacts that are compatible with linker-based LTO"),
2324    llvm_args: Vec<String> = (Vec::new(), parse_list, [TRACKED],
2325        "a list of arguments to pass to LLVM (space separated)"),
2326    #[rustc_lint_opt_deny_field_access("use `Session::lto` instead of this field")]
2327    lto: LtoCli = (LtoCli::Unspecified, parse_lto, [TRACKED],
2328        "perform LLVM link-time optimizations"),
2329    metadata: Vec<String> = (Vec::new(), parse_list, [TRACKED],
2330        "metadata to mangle symbol names with"),
2331    no_prepopulate_passes: bool = (false, parse_no_value, [TRACKED],
2332        "give an empty list of passes to the pass manager"),
2333    no_redzone: Option<bool> = (None, parse_opt_bool, [TRACKED],
2334        "disable the use of the redzone"),
2335    no_stack_check: () = ((), parse_ignore, [UNTRACKED],
2336        "this option has been removed",
2337        removed: Err),
2338    no_vectorize_loops: bool = (false, parse_no_value, [TRACKED],
2339        "disable loop vectorization optimization passes"),
2340    no_vectorize_slp: bool = (false, parse_no_value, [TRACKED],
2341        "disable LLVM's SLP vectorization pass"),
2342    opt_level: String = ("0".to_string(), parse_string, [TRACKED],
2343        "optimization level (0-3, s, or z; default: 0)"),
2344    #[rustc_lint_opt_deny_field_access("use `Session::overflow_checks` instead of this field")]
2345    overflow_checks: Option<bool> = (None, parse_opt_bool, [TRACKED],
2346        "use overflow checks for integer arithmetic"),
2347    #[rustc_lint_opt_deny_field_access("use `Session::panic_strategy` instead of this field")]
2348    panic: Option<PanicStrategy> = (None, parse_opt_panic_strategy, [TRACKED],
2349        "panic strategy to compile crate with"),
2350    passes: Vec<String> = (Vec::new(), parse_list, [TRACKED],
2351        "a list of extra LLVM passes to run (space separated)"),
2352    prefer_dynamic: bool = (false, parse_bool, [TRACKED],
2353        "prefer dynamic linking to static linking (default: no)"),
2354    profile_generate: SwitchWithOptPath = (SwitchWithOptPath::Disabled,
2355        parse_switch_with_opt_path, [TRACKED],
2356        "compile the program with profiling instrumentation"),
2357    profile_sample_use: Option<PathBuf> = (None, parse_opt_pathbuf, [TRACKED],
2358        "use the given `.prof` file for sample-based profile-guided optimization"),
2359    profile_use: Option<PathBuf> = (None, parse_opt_pathbuf, [TRACKED],
2360        "use the given `.profdata` file for profile-guided optimization"),
2361    #[rustc_lint_opt_deny_field_access("use `Session::relocation_model` instead of this field")]
2362    relocation_model: Option<RelocModel> = (None, parse_relocation_model, [TRACKED],
2363        "control generation of position-independent code (PIC) \
2364        (`rustc --print relocation-models` for details)"),
2365    relro_level: Option<RelroLevel> = (None, parse_relro_level, [TRACKED],
2366        "choose which RELRO level to use"),
2367    remark: Passes = (Passes::Some(Vec::new()), parse_passes, [UNTRACKED],
2368        "output remarks for these optimization passes (space separated, or \"all\")"),
2369    rpath: bool = (false, parse_bool, [UNTRACKED],
2370        "set rpath values in libs/exes (default: no)"),
2371    save_temps: bool = (false, parse_bool, [UNTRACKED],
2372        "save all temporary output files during compilation (default: no)"),
2373    soft_float: () = ((), parse_ignore, [UNTRACKED],
2374        "this option has been removed \
2375        (use a corresponding *eabi target instead)",
2376        removed: Err),
2377    #[rustc_lint_opt_deny_field_access("use `Session::split_debuginfo` instead of this field")]
2378    split_debuginfo: Option<SplitDebuginfo> = (None, parse_split_debuginfo, [TRACKED],
2379        "how to handle split-debuginfo, a platform-specific option"),
2380    strip: Strip = (Strip::None, parse_strip, [UNTRACKED],
2381        "tell the linker which information to strip (`none` (default), `debuginfo` or `symbols`)"),
2382    symbol_mangling_version: Option<SymbolManglingVersion> = (None,
2383        parse_symbol_mangling_version, [TRACKED],
2384        "which mangling version to use for symbol names ('legacy', 'v0' (default), or 'hashed')"),
2385    target_cpu: Option<String> = (None, parse_opt_string, [TRACKED] { TARGET_MODIFIER: TargetCpu },
2386        "select target processor (`rustc --print target-cpus` for details) \
2387        The resulting binary must only be executed on CPUs that have all the features \
2388        of the given CPU."),
2389    target_feature: String = (String::new(), parse_target_feature, [TRACKED],
2390        "target-specific attributes (`rustc --print target-features` for details). \
2391        The resulting binary must only be executed on CPUs that have all the given features."),
2392    unsafe_allow_abi_mismatch: Vec<String> = (Vec::new(), parse_comma_list, [UNTRACKED],
2393        "Allow incompatible target modifiers in dependency crates (comma separated list)"),
2394    // tidy-alphabetical-end
2395
2396    // If you add a new option, please update:
2397    // - compiler/rustc_interface/src/tests.rs
2398    // - src/doc/rustc/src/codegen-options/index.md
2399}
2400
2401const POLONIUS_HELP: &str = match Polonius::DEFAULT {
2402    Polonius::Off => "enable polonius-based borrow-checker (default: no)",
2403    Polonius::Next => "enable polonius-based borrow-checker (default: next)",
2404    Polonius::Legacy => {
    ::core::panicking::panic_fmt(format_args!("Polonius::Legacy is not a valid default value"));
}panic!("Polonius::Legacy is not a valid default value"),
2405};
2406
2407#[rustc_lint_opt_ty]
pub struct UnstableOptions {
    pub allow_features: Option<Vec<String>>,
    pub allow_partial_mitigations: (),
    pub always_encode_mir: bool,
    pub annotate_moves: AnnotateMoves,
    pub assert_incr_state: Option<IncrementalStateAssertion>,
    pub assume_incomplete_release: bool,
    pub assumptions_on_binders: bool,
    pub async_panic: bool,
    pub autodiff: Vec<crate::config::AutoDiff>,
    pub autodiff_post_passes: Option<String>,
    #[rustc_lint_opt_deny_field_access("use `Session::binary_dep_depinfo` instead of this field")]
    pub binary_dep_depinfo: bool,
    pub box_noalias: bool,
    #[rustc_lint_opt_deny_field_access("use `Session::branch_protection` instead of this field")]
    pub branch_protection: Option<BranchProtection>,
    pub build_sdylib_interface: bool,
    pub cache_proc_macros: bool,
    pub cf_protection: CFProtection,
    pub check_cfg_all_expected: bool,
    pub checksum_hash_algorithm: Option<SourceFileHashAlgorithm>,
    pub codegen_backend: Option<String>,
    pub codegen_emit_retag: Option<CodegenRetagOptions>,
    pub codegen_source_order: bool,
    pub contract_checks: Option<bool>,
    pub coverage_options: CoverageOptions,
    pub crate_attr: Vec<String>,
    pub cross_crate_inline_threshold: InliningThreshold,
    pub debug_info_type_line_numbers: bool,
    pub debuginfo_compression: DebugInfoCompression,
    pub debuginfo_for_profiling: bool,
    pub deduplicate_diagnostics: bool,
    pub default_visibility: Option<SymbolVisibility>,
    pub deny_partial_mitigations: (),
    pub dep_info_omit_d_target: bool,
    pub direct_access_external_data: Option<bool>,
    pub disable_fast_paths: bool,
    pub disable_incr_comp_backend_caching: bool,
    pub disable_param_env_normalization_hack: bool,
    pub dual_proc_macros: bool,
    pub dump_dep_graph: bool,
    pub dump_mir: Option<String>,
    pub dump_mir_dataflow: bool,
    pub dump_mir_dir: String,
    pub dump_mir_exclude_alloc_bytes: bool,
    pub dump_mir_exclude_pass_number: bool,
    pub dump_mir_graphviz: bool,
    pub dump_mono_stats: SwitchWithOptPath,
    pub dump_mono_stats_format: DumpMonoStatsFormat,
    #[rustc_lint_opt_deny_field_access("use `Session::dwarf_version` instead of this field")]
    pub dwarf_version: Option<u32>,
    pub dylib_lto: bool,
    pub eagerly_emit_delayed_bugs: bool,
    pub ehcont_guard: bool,
    pub embed_metadata: Option<bool>,
    pub embed_source: bool,
    pub emit_stack_sizes: bool,
    pub enforce_type_length_limit: bool,
    pub experimental_default_bounds: bool,
    pub export_executable_symbols: bool,
    pub external_clangrt: bool,
    pub extra_const_ub_checks: bool,
    #[rustc_lint_opt_deny_field_access("use `Session::fewer_names` instead of this field")]
    pub fewer_names: Option<bool>,
    pub fixed_x18: bool,
    pub flatten_format_args: bool,
    pub fmt_debug: FmtDebug,
    pub force_intrinsic_fallback: bool,
    pub force_unstable_if_unmarked: bool,
    pub function_return: FunctionReturn,
    pub function_sections: Option<bool>,
    pub future_incompat_test: bool,
    pub graphviz_dark_mode: bool,
    pub graphviz_font: String,
    pub has_thread_local: Option<bool>,
    pub help: bool,
    pub higher_ranked_assumptions: bool,
    pub hint_mostly_unused: bool,
    pub hint_msrv: Option<RustcVersion>,
    pub human_readable_cgu_names: bool,
    pub identify_regions: bool,
    pub ignore_directory_in_diagnostics_source_blocks: Vec<String>,
    pub implicit_sysroot_deps: bool,
    pub incremental_ignore_spans: bool,
    pub incremental_info: bool,
    pub incremental_verify_ich: bool,
    pub indirect_branch_cs_prefix: bool,
    pub inline_llvm: bool,
    pub inline_mir: Option<bool>,
    pub inline_mir_forwarder_threshold: Option<usize>,
    pub inline_mir_hint_threshold: Option<usize>,
    pub inline_mir_preserve_debug: Option<bool>,
    pub inline_mir_threshold: Option<usize>,
    pub input_stats: bool,
    pub instrument_mcount: InstrumentMcount,
    pub instrument_xray: Option<InstrumentXRay>,
    pub internal_testing_features: bool,
    pub large_data_threshold: Option<u64>,
    pub layout_seed: Option<u64>,
    pub link_directives: bool,
    pub link_native_libraries: bool,
    pub link_only: bool,
    pub lint_llvm_ir: bool,
    pub lint_mir: bool,
    pub llvm_module_flag: Vec<(String, u32, String)>,
    pub llvm_plugins: Vec<String>,
    pub llvm_target_feature: String,
    pub llvm_time_trace: bool,
    pub llvm_writable: bool,
    pub location_detail: LocationDetail,
    pub ls: Vec<String>,
    pub macro_backtrace: bool,
    pub macro_stats: bool,
    pub maximal_hir_to_mir_coverage: bool,
    #[rustc_lint_opt_deny_field_access("use `Session::merge_functions` instead of this field")]
    pub merge_functions: Option<MergeFunctions>,
    pub meta_stats: bool,
    pub metadata_crate_hash: bool,
    pub metrics_dir: Option<PathBuf>,
    pub min_function_alignment: Option<Align>,
    pub min_recursion_limit: Option<usize>,
    pub mir_enable_passes: Vec<(String, bool)>,
    pub mir_include_spans: MirIncludeSpans,
    pub mir_move_elimination: bool,
    pub mir_opt_bisect_limit: Option<usize>,
    #[rustc_lint_opt_deny_field_access("use `Session::mir_opt_level` instead of this field")]
    pub mir_opt_level: Option<usize>,
    pub mir_preserve_ub: bool,
    pub mir_strip_debuginfo: MirStripDebugInfo,
    pub move_size_limit: Option<usize>,
    pub namespaced_crates: bool,
    pub next_solver: NextSolverConfig,
    pub next_solver_overflow_fcw_limit: Option<usize>,
    pub nll_facts: bool,
    pub nll_facts_dir: String,
    pub no_analysis: bool,
    pub no_codegen: bool,
    pub no_generate_arange_section: bool,
    pub no_implied_bounds_compat: bool,
    pub no_leak_check: bool,
    pub no_link: bool,
    pub no_parallel_backend: bool,
    pub no_profiler_runtime: bool,
    pub no_steal_thir: bool,
    pub no_trait_vptr: bool,
    pub no_unique_section_names: bool,
    pub normalize_docs: bool,
    pub offload: Vec<crate::config::Offload>,
    pub on_broken_pipe: OnBrokenPipe,
    pub osx_rpath_install_name: bool,
    pub packed_bundled_libs: bool,
    pub packed_stack: bool,
    pub panic_abort_tests: bool,
    pub panic_in_drop: PanicStrategy,
    pub parse_crate_root_only: bool,
    pub patchable_function_entry: PatchableFunctionEntry,
    pub plt: Option<bool>,
    pub pointer_authentication: Vec<(PointerAuthOption, bool)>,
    pub polonius: Polonius,
    pub pre_link_arg: (),
    pub pre_link_args: Vec<String>,
    pub precise_enum_drop_elaboration: bool,
    #[rustc_lint_opt_deny_field_access("use `Session::print_codegen_stats` instead of this field")]
    pub print_codegen_stats: bool,
    #[rustc_lint_opt_deny_field_access("use `Session::print_llvm_stats_json` instead of this field")]
    pub print_codegen_stats_json: Option<String>,
    pub print_llvm_passes: bool,
    pub print_mono_items: bool,
    pub print_type_sizes: bool,
    pub proc_macro_backtrace: bool,
    pub proc_macro_execution_strategy: ProcMacroExecutionStrategy,
    pub profile_closures: bool,
    pub profiler_runtime: String,
    pub query_dep_graph: bool,
    pub randomize_layout: bool,
    pub reg_struct_return: bool,
    pub regparm: Option<u32>,
    pub relax_elf_relocations: Option<bool>,
    pub remap_cwd_prefix: Option<PathBuf>,
    pub remark_dir: Option<PathBuf>,
    pub renormalize_rigid_aliases: bool,
    pub retpoline: bool,
    pub retpoline_external_thunk: bool,
    #[rustc_lint_opt_deny_field_access("use `Session::sanitizers()` instead of this field")]
    pub sanitizer: SanitizerSet,
    pub sanitizer_ignorelist: Vec<String>,
    pub sanitizer_cfi_canonical_jump_tables: Option<bool>,
    pub sanitizer_cfi_generalize_pointers: Option<bool>,
    pub sanitizer_cfi_normalize_integers: Option<bool>,
    pub sanitizer_cfi_diag: Option<bool>,
    pub sanitizer_cfi_recover: Option<bool>,
    pub sanitizer_cfi_minimal_runtime: Option<bool>,
    pub sanitizer_dataflow_abilist: Vec<String>,
    pub sanitizer_kcfi_arity: Option<bool>,
    pub sanitizer_memory_track_origins: usize,
    pub sanitizer_recover: SanitizerSet,
    pub self_profile: SwitchWithOptPath,
    pub self_profile_counter: String,
    #[doc =
    r" keep this in sync with the event filter names and defaults in rustc_data_structures/src/profiling.rs"]
    pub self_profile_events: Option<Vec<String>>,
    pub share_generics: Option<bool>,
    pub shell_argfiles: bool,
    pub simulate_remapped_rust_src_base: Option<PathBuf>,
    pub small_data_threshold: Option<usize>,
    pub span_debug: bool,
    #[doc = r" o/w tests have closure@path"]
    pub span_free_formats: bool,
    pub split_dwarf_inlining: bool,
    pub split_dwarf_kind: SplitDwarfKind,
    pub split_dwarf_out_dir: Option<PathBuf>,
    pub split_lto_unit: Option<bool>,
    pub src_hash_algorithm: Option<SourceFileHashAlgorithm>,
    #[rustc_lint_opt_deny_field_access("use `Session::stack_protector` instead of this field")]
    pub stack_protector: StackProtector,
    pub staticlib_allow_rdylib_deps: bool,
    pub staticlib_hide_internal_symbols: bool,
    pub staticlib_rename_internal_symbols: bool,
    pub staticlib_prefer_dynamic: bool,
    pub strict_init_checks: bool,
    #[rustc_lint_opt_deny_field_access("use `Session::teach` instead of this field")]
    pub teach: bool,
    pub temps_dir: Option<String>,
    pub terminal_urls: TerminalUrl,
    #[rustc_lint_opt_deny_field_access("use `Session::lto` instead of this field")]
    pub thinlto: Option<bool>,
    pub threads: Option<String>,
    pub time_llvm_passes: bool,
    pub time_passes: bool,
    pub time_passes_format: TimePassesFormat,
    pub tiny_const_eval_limit: bool,
    #[rustc_lint_opt_deny_field_access("use `Session::tls_model` instead of this field")]
    pub tls_model: Option<TlsModel>,
    pub trace_macros: bool,
    pub track_diagnostics: bool,
    pub translate_remapped_path_to_local_path: bool,
    pub trap_unreachable: Option<bool>,
    pub treat_err_as_bug: Option<NonZero<usize>>,
    pub trim_diagnostic_paths: bool,
    pub tune_cpu: Option<String>,
    #[rustc_lint_opt_deny_field_access("use `Session::ub_checks` instead of this field")]
    pub ub_checks: Option<bool>,
    pub ui_testing: bool,
    pub uninit_const_chunk_threshold: usize,
    pub unleash_the_miri_inside_of_you: bool,
    pub unpretty: Option<String>,
    pub unsound_mir_opts: bool,
    #[doc =
    r" This name is kind of confusing: Most unstable options enable something themselves, while"]
    #[doc = r#" this just allows "normal" options to be feature-gated."#]
    #[doc = r""]
    #[doc =
    r" The main check for `-Zunstable-options` takes place separately from the"]
    #[doc =
    r" usual parsing of `-Z` options (see [`crate::config::nightly_options`]),"]
    #[doc =
    r" so this boolean value is mostly used for enabling unstable _values_ of"]
    #[doc =
    r" stable options. That separate check doesn't handle boolean values, so"]
    #[doc = r" to avoid an inconsistent state we also forbid them here."]
    #[rustc_lint_opt_deny_field_access("use `Session::unstable_options` instead of this field")]
    pub unstable_options: bool,
    pub use_ctors_section: Option<bool>,
    pub use_sync_unwind: Option<bool>,
    pub validate_mir: bool,
    pub verbose_asm: bool,
    #[rustc_lint_opt_deny_field_access("use `Session::verbose_internals` instead of this field")]
    pub verbose_internals: bool,
    #[rustc_lint_opt_deny_field_access("use `Session::verify_llvm_ir` instead of this field")]
    pub verify_llvm_ir: bool,
    pub virtual_function_elimination: bool,
    pub wasi_exec_model: Option<WasiExecModel>,
    pub wasm_c_abi: (),
    pub wasm_proc_macros: bool,
    pub write_long_types_to_disk: bool,
}
#[automatically_derived]impl ::core::clone::Clone for UnstableOptions {
    #[inline]
    fn clone(&self) -> Self {
        UnstableOptions {
            allow_features: ::core::clone::Clone::clone(&self.allow_features),
            allow_partial_mitigations: ::core::clone::Clone::clone(&self.allow_partial_mitigations),
            always_encode_mir: ::core::clone::Clone::clone(&self.always_encode_mir),
            annotate_moves: ::core::clone::Clone::clone(&self.annotate_moves),
            assert_incr_state: ::core::clone::Clone::clone(&self.assert_incr_state),
            assume_incomplete_release: ::core::clone::Clone::clone(&self.assume_incomplete_release),
            assumptions_on_binders: ::core::clone::Clone::clone(&self.assumptions_on_binders),
            async_panic: ::core::clone::Clone::clone(&self.async_panic),
            autodiff: ::core::clone::Clone::clone(&self.autodiff),
            autodiff_post_passes: ::core::clone::Clone::clone(&self.autodiff_post_passes),
            binary_dep_depinfo: ::core::clone::Clone::clone(&self.binary_dep_depinfo),
            box_noalias: ::core::clone::Clone::clone(&self.box_noalias),
            branch_protection: ::core::clone::Clone::clone(&self.branch_protection),
            build_sdylib_interface: ::core::clone::Clone::clone(&self.build_sdylib_interface),
            cache_proc_macros: ::core::clone::Clone::clone(&self.cache_proc_macros),
            cf_protection: ::core::clone::Clone::clone(&self.cf_protection),
            check_cfg_all_expected: ::core::clone::Clone::clone(&self.check_cfg_all_expected),
            checksum_hash_algorithm: ::core::clone::Clone::clone(&self.checksum_hash_algorithm),
            codegen_backend: ::core::clone::Clone::clone(&self.codegen_backend),
            codegen_emit_retag: ::core::clone::Clone::clone(&self.codegen_emit_retag),
            codegen_source_order: ::core::clone::Clone::clone(&self.codegen_source_order),
            contract_checks: ::core::clone::Clone::clone(&self.contract_checks),
            coverage_options: ::core::clone::Clone::clone(&self.coverage_options),
            crate_attr: ::core::clone::Clone::clone(&self.crate_attr),
            cross_crate_inline_threshold: ::core::clone::Clone::clone(&self.cross_crate_inline_threshold),
            debug_info_type_line_numbers: ::core::clone::Clone::clone(&self.debug_info_type_line_numbers),
            debuginfo_compression: ::core::clone::Clone::clone(&self.debuginfo_compression),
            debuginfo_for_profiling: ::core::clone::Clone::clone(&self.debuginfo_for_profiling),
            deduplicate_diagnostics: ::core::clone::Clone::clone(&self.deduplicate_diagnostics),
            default_visibility: ::core::clone::Clone::clone(&self.default_visibility),
            deny_partial_mitigations: ::core::clone::Clone::clone(&self.deny_partial_mitigations),
            dep_info_omit_d_target: ::core::clone::Clone::clone(&self.dep_info_omit_d_target),
            direct_access_external_data: ::core::clone::Clone::clone(&self.direct_access_external_data),
            disable_fast_paths: ::core::clone::Clone::clone(&self.disable_fast_paths),
            disable_incr_comp_backend_caching: ::core::clone::Clone::clone(&self.disable_incr_comp_backend_caching),
            disable_param_env_normalization_hack: ::core::clone::Clone::clone(&self.disable_param_env_normalization_hack),
            dual_proc_macros: ::core::clone::Clone::clone(&self.dual_proc_macros),
            dump_dep_graph: ::core::clone::Clone::clone(&self.dump_dep_graph),
            dump_mir: ::core::clone::Clone::clone(&self.dump_mir),
            dump_mir_dataflow: ::core::clone::Clone::clone(&self.dump_mir_dataflow),
            dump_mir_dir: ::core::clone::Clone::clone(&self.dump_mir_dir),
            dump_mir_exclude_alloc_bytes: ::core::clone::Clone::clone(&self.dump_mir_exclude_alloc_bytes),
            dump_mir_exclude_pass_number: ::core::clone::Clone::clone(&self.dump_mir_exclude_pass_number),
            dump_mir_graphviz: ::core::clone::Clone::clone(&self.dump_mir_graphviz),
            dump_mono_stats: ::core::clone::Clone::clone(&self.dump_mono_stats),
            dump_mono_stats_format: ::core::clone::Clone::clone(&self.dump_mono_stats_format),
            dwarf_version: ::core::clone::Clone::clone(&self.dwarf_version),
            dylib_lto: ::core::clone::Clone::clone(&self.dylib_lto),
            eagerly_emit_delayed_bugs: ::core::clone::Clone::clone(&self.eagerly_emit_delayed_bugs),
            ehcont_guard: ::core::clone::Clone::clone(&self.ehcont_guard),
            embed_metadata: ::core::clone::Clone::clone(&self.embed_metadata),
            embed_source: ::core::clone::Clone::clone(&self.embed_source),
            emit_stack_sizes: ::core::clone::Clone::clone(&self.emit_stack_sizes),
            enforce_type_length_limit: ::core::clone::Clone::clone(&self.enforce_type_length_limit),
            experimental_default_bounds: ::core::clone::Clone::clone(&self.experimental_default_bounds),
            export_executable_symbols: ::core::clone::Clone::clone(&self.export_executable_symbols),
            external_clangrt: ::core::clone::Clone::clone(&self.external_clangrt),
            extra_const_ub_checks: ::core::clone::Clone::clone(&self.extra_const_ub_checks),
            fewer_names: ::core::clone::Clone::clone(&self.fewer_names),
            fixed_x18: ::core::clone::Clone::clone(&self.fixed_x18),
            flatten_format_args: ::core::clone::Clone::clone(&self.flatten_format_args),
            fmt_debug: ::core::clone::Clone::clone(&self.fmt_debug),
            force_intrinsic_fallback: ::core::clone::Clone::clone(&self.force_intrinsic_fallback),
            force_unstable_if_unmarked: ::core::clone::Clone::clone(&self.force_unstable_if_unmarked),
            function_return: ::core::clone::Clone::clone(&self.function_return),
            function_sections: ::core::clone::Clone::clone(&self.function_sections),
            future_incompat_test: ::core::clone::Clone::clone(&self.future_incompat_test),
            graphviz_dark_mode: ::core::clone::Clone::clone(&self.graphviz_dark_mode),
            graphviz_font: ::core::clone::Clone::clone(&self.graphviz_font),
            has_thread_local: ::core::clone::Clone::clone(&self.has_thread_local),
            help: ::core::clone::Clone::clone(&self.help),
            higher_ranked_assumptions: ::core::clone::Clone::clone(&self.higher_ranked_assumptions),
            hint_mostly_unused: ::core::clone::Clone::clone(&self.hint_mostly_unused),
            hint_msrv: ::core::clone::Clone::clone(&self.hint_msrv),
            human_readable_cgu_names: ::core::clone::Clone::clone(&self.human_readable_cgu_names),
            identify_regions: ::core::clone::Clone::clone(&self.identify_regions),
            ignore_directory_in_diagnostics_source_blocks: ::core::clone::Clone::clone(&self.ignore_directory_in_diagnostics_source_blocks),
            implicit_sysroot_deps: ::core::clone::Clone::clone(&self.implicit_sysroot_deps),
            incremental_ignore_spans: ::core::clone::Clone::clone(&self.incremental_ignore_spans),
            incremental_info: ::core::clone::Clone::clone(&self.incremental_info),
            incremental_verify_ich: ::core::clone::Clone::clone(&self.incremental_verify_ich),
            indirect_branch_cs_prefix: ::core::clone::Clone::clone(&self.indirect_branch_cs_prefix),
            inline_llvm: ::core::clone::Clone::clone(&self.inline_llvm),
            inline_mir: ::core::clone::Clone::clone(&self.inline_mir),
            inline_mir_forwarder_threshold: ::core::clone::Clone::clone(&self.inline_mir_forwarder_threshold),
            inline_mir_hint_threshold: ::core::clone::Clone::clone(&self.inline_mir_hint_threshold),
            inline_mir_preserve_debug: ::core::clone::Clone::clone(&self.inline_mir_preserve_debug),
            inline_mir_threshold: ::core::clone::Clone::clone(&self.inline_mir_threshold),
            input_stats: ::core::clone::Clone::clone(&self.input_stats),
            instrument_mcount: ::core::clone::Clone::clone(&self.instrument_mcount),
            instrument_xray: ::core::clone::Clone::clone(&self.instrument_xray),
            internal_testing_features: ::core::clone::Clone::clone(&self.internal_testing_features),
            large_data_threshold: ::core::clone::Clone::clone(&self.large_data_threshold),
            layout_seed: ::core::clone::Clone::clone(&self.layout_seed),
            link_directives: ::core::clone::Clone::clone(&self.link_directives),
            link_native_libraries: ::core::clone::Clone::clone(&self.link_native_libraries),
            link_only: ::core::clone::Clone::clone(&self.link_only),
            lint_llvm_ir: ::core::clone::Clone::clone(&self.lint_llvm_ir),
            lint_mir: ::core::clone::Clone::clone(&self.lint_mir),
            llvm_module_flag: ::core::clone::Clone::clone(&self.llvm_module_flag),
            llvm_plugins: ::core::clone::Clone::clone(&self.llvm_plugins),
            llvm_target_feature: ::core::clone::Clone::clone(&self.llvm_target_feature),
            llvm_time_trace: ::core::clone::Clone::clone(&self.llvm_time_trace),
            llvm_writable: ::core::clone::Clone::clone(&self.llvm_writable),
            location_detail: ::core::clone::Clone::clone(&self.location_detail),
            ls: ::core::clone::Clone::clone(&self.ls),
            macro_backtrace: ::core::clone::Clone::clone(&self.macro_backtrace),
            macro_stats: ::core::clone::Clone::clone(&self.macro_stats),
            maximal_hir_to_mir_coverage: ::core::clone::Clone::clone(&self.maximal_hir_to_mir_coverage),
            merge_functions: ::core::clone::Clone::clone(&self.merge_functions),
            meta_stats: ::core::clone::Clone::clone(&self.meta_stats),
            metadata_crate_hash: ::core::clone::Clone::clone(&self.metadata_crate_hash),
            metrics_dir: ::core::clone::Clone::clone(&self.metrics_dir),
            min_function_alignment: ::core::clone::Clone::clone(&self.min_function_alignment),
            min_recursion_limit: ::core::clone::Clone::clone(&self.min_recursion_limit),
            mir_enable_passes: ::core::clone::Clone::clone(&self.mir_enable_passes),
            mir_include_spans: ::core::clone::Clone::clone(&self.mir_include_spans),
            mir_move_elimination: ::core::clone::Clone::clone(&self.mir_move_elimination),
            mir_opt_bisect_limit: ::core::clone::Clone::clone(&self.mir_opt_bisect_limit),
            mir_opt_level: ::core::clone::Clone::clone(&self.mir_opt_level),
            mir_preserve_ub: ::core::clone::Clone::clone(&self.mir_preserve_ub),
            mir_strip_debuginfo: ::core::clone::Clone::clone(&self.mir_strip_debuginfo),
            move_size_limit: ::core::clone::Clone::clone(&self.move_size_limit),
            namespaced_crates: ::core::clone::Clone::clone(&self.namespaced_crates),
            next_solver: ::core::clone::Clone::clone(&self.next_solver),
            next_solver_overflow_fcw_limit: ::core::clone::Clone::clone(&self.next_solver_overflow_fcw_limit),
            nll_facts: ::core::clone::Clone::clone(&self.nll_facts),
            nll_facts_dir: ::core::clone::Clone::clone(&self.nll_facts_dir),
            no_analysis: ::core::clone::Clone::clone(&self.no_analysis),
            no_codegen: ::core::clone::Clone::clone(&self.no_codegen),
            no_generate_arange_section: ::core::clone::Clone::clone(&self.no_generate_arange_section),
            no_implied_bounds_compat: ::core::clone::Clone::clone(&self.no_implied_bounds_compat),
            no_leak_check: ::core::clone::Clone::clone(&self.no_leak_check),
            no_link: ::core::clone::Clone::clone(&self.no_link),
            no_parallel_backend: ::core::clone::Clone::clone(&self.no_parallel_backend),
            no_profiler_runtime: ::core::clone::Clone::clone(&self.no_profiler_runtime),
            no_steal_thir: ::core::clone::Clone::clone(&self.no_steal_thir),
            no_trait_vptr: ::core::clone::Clone::clone(&self.no_trait_vptr),
            no_unique_section_names: ::core::clone::Clone::clone(&self.no_unique_section_names),
            normalize_docs: ::core::clone::Clone::clone(&self.normalize_docs),
            offload: ::core::clone::Clone::clone(&self.offload),
            on_broken_pipe: ::core::clone::Clone::clone(&self.on_broken_pipe),
            osx_rpath_install_name: ::core::clone::Clone::clone(&self.osx_rpath_install_name),
            packed_bundled_libs: ::core::clone::Clone::clone(&self.packed_bundled_libs),
            packed_stack: ::core::clone::Clone::clone(&self.packed_stack),
            panic_abort_tests: ::core::clone::Clone::clone(&self.panic_abort_tests),
            panic_in_drop: ::core::clone::Clone::clone(&self.panic_in_drop),
            parse_crate_root_only: ::core::clone::Clone::clone(&self.parse_crate_root_only),
            patchable_function_entry: ::core::clone::Clone::clone(&self.patchable_function_entry),
            plt: ::core::clone::Clone::clone(&self.plt),
            pointer_authentication: ::core::clone::Clone::clone(&self.pointer_authentication),
            polonius: ::core::clone::Clone::clone(&self.polonius),
            pre_link_arg: ::core::clone::Clone::clone(&self.pre_link_arg),
            pre_link_args: ::core::clone::Clone::clone(&self.pre_link_args),
            precise_enum_drop_elaboration: ::core::clone::Clone::clone(&self.precise_enum_drop_elaboration),
            print_codegen_stats: ::core::clone::Clone::clone(&self.print_codegen_stats),
            print_codegen_stats_json: ::core::clone::Clone::clone(&self.print_codegen_stats_json),
            print_llvm_passes: ::core::clone::Clone::clone(&self.print_llvm_passes),
            print_mono_items: ::core::clone::Clone::clone(&self.print_mono_items),
            print_type_sizes: ::core::clone::Clone::clone(&self.print_type_sizes),
            proc_macro_backtrace: ::core::clone::Clone::clone(&self.proc_macro_backtrace),
            proc_macro_execution_strategy: ::core::clone::Clone::clone(&self.proc_macro_execution_strategy),
            profile_closures: ::core::clone::Clone::clone(&self.profile_closures),
            profiler_runtime: ::core::clone::Clone::clone(&self.profiler_runtime),
            query_dep_graph: ::core::clone::Clone::clone(&self.query_dep_graph),
            randomize_layout: ::core::clone::Clone::clone(&self.randomize_layout),
            reg_struct_return: ::core::clone::Clone::clone(&self.reg_struct_return),
            regparm: ::core::clone::Clone::clone(&self.regparm),
            relax_elf_relocations: ::core::clone::Clone::clone(&self.relax_elf_relocations),
            remap_cwd_prefix: ::core::clone::Clone::clone(&self.remap_cwd_prefix),
            remark_dir: ::core::clone::Clone::clone(&self.remark_dir),
            renormalize_rigid_aliases: ::core::clone::Clone::clone(&self.renormalize_rigid_aliases),
            retpoline: ::core::clone::Clone::clone(&self.retpoline),
            retpoline_external_thunk: ::core::clone::Clone::clone(&self.retpoline_external_thunk),
            sanitizer: ::core::clone::Clone::clone(&self.sanitizer),
            sanitizer_ignorelist: ::core::clone::Clone::clone(&self.sanitizer_ignorelist),
            sanitizer_cfi_canonical_jump_tables: ::core::clone::Clone::clone(&self.sanitizer_cfi_canonical_jump_tables),
            sanitizer_cfi_generalize_pointers: ::core::clone::Clone::clone(&self.sanitizer_cfi_generalize_pointers),
            sanitizer_cfi_normalize_integers: ::core::clone::Clone::clone(&self.sanitizer_cfi_normalize_integers),
            sanitizer_cfi_diag: ::core::clone::Clone::clone(&self.sanitizer_cfi_diag),
            sanitizer_cfi_recover: ::core::clone::Clone::clone(&self.sanitizer_cfi_recover),
            sanitizer_cfi_minimal_runtime: ::core::clone::Clone::clone(&self.sanitizer_cfi_minimal_runtime),
            sanitizer_dataflow_abilist: ::core::clone::Clone::clone(&self.sanitizer_dataflow_abilist),
            sanitizer_kcfi_arity: ::core::clone::Clone::clone(&self.sanitizer_kcfi_arity),
            sanitizer_memory_track_origins: ::core::clone::Clone::clone(&self.sanitizer_memory_track_origins),
            sanitizer_recover: ::core::clone::Clone::clone(&self.sanitizer_recover),
            self_profile: ::core::clone::Clone::clone(&self.self_profile),
            self_profile_counter: ::core::clone::Clone::clone(&self.self_profile_counter),
            self_profile_events: ::core::clone::Clone::clone(&self.self_profile_events),
            share_generics: ::core::clone::Clone::clone(&self.share_generics),
            shell_argfiles: ::core::clone::Clone::clone(&self.shell_argfiles),
            simulate_remapped_rust_src_base: ::core::clone::Clone::clone(&self.simulate_remapped_rust_src_base),
            small_data_threshold: ::core::clone::Clone::clone(&self.small_data_threshold),
            span_debug: ::core::clone::Clone::clone(&self.span_debug),
            span_free_formats: ::core::clone::Clone::clone(&self.span_free_formats),
            split_dwarf_inlining: ::core::clone::Clone::clone(&self.split_dwarf_inlining),
            split_dwarf_kind: ::core::clone::Clone::clone(&self.split_dwarf_kind),
            split_dwarf_out_dir: ::core::clone::Clone::clone(&self.split_dwarf_out_dir),
            split_lto_unit: ::core::clone::Clone::clone(&self.split_lto_unit),
            src_hash_algorithm: ::core::clone::Clone::clone(&self.src_hash_algorithm),
            stack_protector: ::core::clone::Clone::clone(&self.stack_protector),
            staticlib_allow_rdylib_deps: ::core::clone::Clone::clone(&self.staticlib_allow_rdylib_deps),
            staticlib_hide_internal_symbols: ::core::clone::Clone::clone(&self.staticlib_hide_internal_symbols),
            staticlib_rename_internal_symbols: ::core::clone::Clone::clone(&self.staticlib_rename_internal_symbols),
            staticlib_prefer_dynamic: ::core::clone::Clone::clone(&self.staticlib_prefer_dynamic),
            strict_init_checks: ::core::clone::Clone::clone(&self.strict_init_checks),
            teach: ::core::clone::Clone::clone(&self.teach),
            temps_dir: ::core::clone::Clone::clone(&self.temps_dir),
            terminal_urls: ::core::clone::Clone::clone(&self.terminal_urls),
            thinlto: ::core::clone::Clone::clone(&self.thinlto),
            threads: ::core::clone::Clone::clone(&self.threads),
            time_llvm_passes: ::core::clone::Clone::clone(&self.time_llvm_passes),
            time_passes: ::core::clone::Clone::clone(&self.time_passes),
            time_passes_format: ::core::clone::Clone::clone(&self.time_passes_format),
            tiny_const_eval_limit: ::core::clone::Clone::clone(&self.tiny_const_eval_limit),
            tls_model: ::core::clone::Clone::clone(&self.tls_model),
            trace_macros: ::core::clone::Clone::clone(&self.trace_macros),
            track_diagnostics: ::core::clone::Clone::clone(&self.track_diagnostics),
            translate_remapped_path_to_local_path: ::core::clone::Clone::clone(&self.translate_remapped_path_to_local_path),
            trap_unreachable: ::core::clone::Clone::clone(&self.trap_unreachable),
            treat_err_as_bug: ::core::clone::Clone::clone(&self.treat_err_as_bug),
            trim_diagnostic_paths: ::core::clone::Clone::clone(&self.trim_diagnostic_paths),
            tune_cpu: ::core::clone::Clone::clone(&self.tune_cpu),
            ub_checks: ::core::clone::Clone::clone(&self.ub_checks),
            ui_testing: ::core::clone::Clone::clone(&self.ui_testing),
            uninit_const_chunk_threshold: ::core::clone::Clone::clone(&self.uninit_const_chunk_threshold),
            unleash_the_miri_inside_of_you: ::core::clone::Clone::clone(&self.unleash_the_miri_inside_of_you),
            unpretty: ::core::clone::Clone::clone(&self.unpretty),
            unsound_mir_opts: ::core::clone::Clone::clone(&self.unsound_mir_opts),
            unstable_options: ::core::clone::Clone::clone(&self.unstable_options),
            use_ctors_section: ::core::clone::Clone::clone(&self.use_ctors_section),
            use_sync_unwind: ::core::clone::Clone::clone(&self.use_sync_unwind),
            validate_mir: ::core::clone::Clone::clone(&self.validate_mir),
            verbose_asm: ::core::clone::Clone::clone(&self.verbose_asm),
            verbose_internals: ::core::clone::Clone::clone(&self.verbose_internals),
            verify_llvm_ir: ::core::clone::Clone::clone(&self.verify_llvm_ir),
            virtual_function_elimination: ::core::clone::Clone::clone(&self.virtual_function_elimination),
            wasi_exec_model: ::core::clone::Clone::clone(&self.wasi_exec_model),
            wasm_c_abi: ::core::clone::Clone::clone(&self.wasm_c_abi),
            wasm_proc_macros: ::core::clone::Clone::clone(&self.wasm_proc_macros),
            write_long_types_to_disk: ::core::clone::Clone::clone(&self.write_long_types_to_disk),
        }
    }
}
pub enum UnstableOptionsTargetModifiers {
    BranchProtection,
    FixedX18,
    IndirectBranchCsPrefix,
    LlvmTargetFeature,
    PointerAuthentication,
    RegStructReturn,
    Regparm,
    Retpoline,
    RetpolineExternalThunk,
    Sanitizer,
    SanitizerCfiNormalizeIntegers,
    SanitizerCfiMinimalRuntime,
}
#[automatically_derived]impl ::core::marker::StructuralPartialEq for
    UnstableOptionsTargetModifiers {
}
#[automatically_derived]impl ::core::cmp::PartialEq for
    UnstableOptionsTargetModifiers {
    #[inline]
    fn eq(&self, other: &Self) -> bool {
        ::core::intrinsics::discriminant_value(self) ==
            ::core::intrinsics::discriminant_value(other)
    }
}
#[automatically_derived]impl ::core::cmp::Eq for
    UnstableOptionsTargetModifiers {
}
#[automatically_derived]impl ::core::cmp::PartialOrd for
    UnstableOptionsTargetModifiers {
    #[inline]
    fn partial_cmp(&self, other: &Self)
        -> ::core::option::Option<::core::cmp::Ordering> {
        ::core::option::Option::Some(::core::cmp::Ord::cmp(self, other))
    }
}
#[automatically_derived]impl ::core::cmp::Ord for
    UnstableOptionsTargetModifiers {
    #[inline]
    fn cmp(&self, other: &Self) -> ::core::cmp::Ordering {
        ::core::cmp::Ord::cmp(&::core::intrinsics::discriminant_value(self),
            &::core::intrinsics::discriminant_value(other))
    }
}
#[automatically_derived]impl ::core::fmt::Debug for
    UnstableOptionsTargetModifiers {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::debug_c_like_enum_write_str(f,
            "BranchProtection FixedX18 IndirectBranchCsPrefix LlvmTargetFeature PointerAuthentication RegStructReturn Regparm Retpoline RetpolineExternalThunk Sanitizer SanitizerCfiNormalizeIntegers SanitizerCfiMinimalRuntime",
            match self {
                UnstableOptionsTargetModifiers::BranchProtection => 0usize,
                UnstableOptionsTargetModifiers::FixedX18 => 17usize,
                UnstableOptionsTargetModifiers::IndirectBranchCsPrefix =>
                    26usize,
                UnstableOptionsTargetModifiers::LlvmTargetFeature => 49usize,
                UnstableOptionsTargetModifiers::PointerAuthentication =>
                    67usize,
                UnstableOptionsTargetModifiers::RegStructReturn => 89usize,
                UnstableOptionsTargetModifiers::Regparm => 105usize,
                UnstableOptionsTargetModifiers::Retpoline => 113usize,
                UnstableOptionsTargetModifiers::RetpolineExternalThunk =>
                    123usize,
                UnstableOptionsTargetModifiers::Sanitizer => 146usize,
                UnstableOptionsTargetModifiers::SanitizerCfiNormalizeIntegers
                    => 156usize,
                UnstableOptionsTargetModifiers::SanitizerCfiMinimalRuntime =>
                    186usize,
            })
    }
}
#[automatically_derived]impl ::core::marker::Copy for
    UnstableOptionsTargetModifiers {
}
#[automatically_derived]#[doc(hidden)]unsafe impl ::core::clone::TrivialClone
    for UnstableOptionsTargetModifiers {
}
#[automatically_derived]impl ::core::clone::Clone for
    UnstableOptionsTargetModifiers {
    #[inline]
    fn clone(&self) -> Self { *self }
}
const _: () =
    {
        impl<__E: ::rustc_span::SpanEncoder> ::rustc_serialize::Encodable<__E>
            for UnstableOptionsTargetModifiers {
            fn encode(&self, __encoder: &mut __E) {
                let disc =
                    match *self {
                        UnstableOptionsTargetModifiers::BranchProtection => {
                            0usize
                        }
                        UnstableOptionsTargetModifiers::FixedX18 => { 1usize }
                        UnstableOptionsTargetModifiers::IndirectBranchCsPrefix => {
                            2usize
                        }
                        UnstableOptionsTargetModifiers::LlvmTargetFeature => {
                            3usize
                        }
                        UnstableOptionsTargetModifiers::PointerAuthentication => {
                            4usize
                        }
                        UnstableOptionsTargetModifiers::RegStructReturn => {
                            5usize
                        }
                        UnstableOptionsTargetModifiers::Regparm => { 6usize }
                        UnstableOptionsTargetModifiers::Retpoline => { 7usize }
                        UnstableOptionsTargetModifiers::RetpolineExternalThunk => {
                            8usize
                        }
                        UnstableOptionsTargetModifiers::Sanitizer => { 9usize }
                        UnstableOptionsTargetModifiers::SanitizerCfiNormalizeIntegers
                            => {
                            10usize
                        }
                        UnstableOptionsTargetModifiers::SanitizerCfiMinimalRuntime
                            => {
                            11usize
                        }
                    };
                ::rustc_serialize::Encoder::emit_u8(__encoder, disc as u8);
            }
        }
    };
const _: () =
    {
        impl<__D: ::rustc_span::BlobDecoder> ::rustc_serialize::Decodable<__D>
            for UnstableOptionsTargetModifiers {
            fn decode(__decoder: &mut __D) -> Self {
                match ::rustc_serialize::Decoder::read_u8(__decoder) as usize
                    {
                    0usize => {
                        UnstableOptionsTargetModifiers::BranchProtection
                    }
                    1usize => { UnstableOptionsTargetModifiers::FixedX18 }
                    2usize => {
                        UnstableOptionsTargetModifiers::IndirectBranchCsPrefix
                    }
                    3usize => {
                        UnstableOptionsTargetModifiers::LlvmTargetFeature
                    }
                    4usize => {
                        UnstableOptionsTargetModifiers::PointerAuthentication
                    }
                    5usize => {
                        UnstableOptionsTargetModifiers::RegStructReturn
                    }
                    6usize => { UnstableOptionsTargetModifiers::Regparm }
                    7usize => { UnstableOptionsTargetModifiers::Retpoline }
                    8usize => {
                        UnstableOptionsTargetModifiers::RetpolineExternalThunk
                    }
                    9usize => { UnstableOptionsTargetModifiers::Sanitizer }
                    10usize => {
                        UnstableOptionsTargetModifiers::SanitizerCfiNormalizeIntegers
                    }
                    11usize => {
                        UnstableOptionsTargetModifiers::SanitizerCfiMinimalRuntime
                    }
                    n => {
                        ::core::panicking::panic_fmt(format_args!("invalid enum variant tag while decoding `UnstableOptionsTargetModifiers`, expected 0..12, actual {0}",
                                n));
                    }
                }
            }
        }
    };
impl UnstableOptionsTargetModifiers {
    pub fn reparse(&self, _user_value: &str) -> ExtendedTargetModifierInfo {
        match self {
            Self::BranchProtection => {
                let mut parsed: Option<BranchProtection> = Default::default();
                let val =
                    if _user_value.is_empty() {
                        None
                    } else { Some(_user_value) };
                parse::parse_branch_protection(&mut parsed, val);
                ExtendedTargetModifierInfo {
                    prefix: "Z".to_string(),
                    name: "branch_protection".to_string().replace('_', "-"),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", parsed))
                        }),
                }
            }
            Self::FixedX18 => {
                let mut parsed: bool = Default::default();
                let val =
                    if _user_value.is_empty() {
                        None
                    } else { Some(_user_value) };
                parse::parse_bool(&mut parsed, val);
                ExtendedTargetModifierInfo {
                    prefix: "Z".to_string(),
                    name: "fixed_x18".to_string().replace('_', "-"),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", parsed))
                        }),
                }
            }
            Self::IndirectBranchCsPrefix => {
                let mut parsed: bool = Default::default();
                let val =
                    if _user_value.is_empty() {
                        None
                    } else { Some(_user_value) };
                parse::parse_bool(&mut parsed, val);
                ExtendedTargetModifierInfo {
                    prefix: "Z".to_string(),
                    name: "indirect_branch_cs_prefix".to_string().replace('_',
                        "-"),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", parsed))
                        }),
                }
            }
            Self::LlvmTargetFeature => {
                let mut parsed: String = Default::default();
                let val =
                    if _user_value.is_empty() {
                        None
                    } else { Some(_user_value) };
                parse::parse_target_feature(&mut parsed, val);
                ExtendedTargetModifierInfo {
                    prefix: "Z".to_string(),
                    name: "llvm_target_feature".to_string().replace('_', "-"),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", parsed))
                        }),
                }
            }
            Self::PointerAuthentication => {
                let mut parsed: Vec<(PointerAuthOption, bool)> =
                    Default::default();
                let val =
                    if _user_value.is_empty() {
                        None
                    } else { Some(_user_value) };
                parse::parse_pointer_authentication_list_with_polarity(&mut parsed,
                    val);
                ExtendedTargetModifierInfo {
                    prefix: "Z".to_string(),
                    name: "pointer_authentication".to_string().replace('_',
                        "-"),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", parsed))
                        }),
                }
            }
            Self::RegStructReturn => {
                let mut parsed: bool = Default::default();
                let val =
                    if _user_value.is_empty() {
                        None
                    } else { Some(_user_value) };
                parse::parse_bool(&mut parsed, val);
                ExtendedTargetModifierInfo {
                    prefix: "Z".to_string(),
                    name: "reg_struct_return".to_string().replace('_', "-"),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", parsed))
                        }),
                }
            }
            Self::Regparm => {
                let mut parsed: Option<u32> = Default::default();
                let val =
                    if _user_value.is_empty() {
                        None
                    } else { Some(_user_value) };
                parse::parse_opt_number(&mut parsed, val);
                ExtendedTargetModifierInfo {
                    prefix: "Z".to_string(),
                    name: "regparm".to_string().replace('_', "-"),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", parsed))
                        }),
                }
            }
            Self::Retpoline => {
                let mut parsed: bool = Default::default();
                let val =
                    if _user_value.is_empty() {
                        None
                    } else { Some(_user_value) };
                parse::parse_bool(&mut parsed, val);
                ExtendedTargetModifierInfo {
                    prefix: "Z".to_string(),
                    name: "retpoline".to_string().replace('_', "-"),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", parsed))
                        }),
                }
            }
            Self::RetpolineExternalThunk => {
                let mut parsed: bool = Default::default();
                let val =
                    if _user_value.is_empty() {
                        None
                    } else { Some(_user_value) };
                parse::parse_bool(&mut parsed, val);
                ExtendedTargetModifierInfo {
                    prefix: "Z".to_string(),
                    name: "retpoline_external_thunk".to_string().replace('_',
                        "-"),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", parsed))
                        }),
                }
            }
            Self::Sanitizer => {
                let mut parsed: SanitizerSet = Default::default();
                let val =
                    if _user_value.is_empty() {
                        None
                    } else { Some(_user_value) };
                parse::parse_sanitizers(&mut parsed, val);
                ExtendedTargetModifierInfo {
                    prefix: "Z".to_string(),
                    name: "sanitizer".to_string().replace('_', "-"),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", parsed))
                        }),
                }
            }
            Self::SanitizerCfiNormalizeIntegers => {
                let mut parsed: Option<bool> = Default::default();
                let val =
                    if _user_value.is_empty() {
                        None
                    } else { Some(_user_value) };
                parse::parse_opt_bool(&mut parsed, val);
                ExtendedTargetModifierInfo {
                    prefix: "Z".to_string(),
                    name: "sanitizer_cfi_normalize_integers".to_string().replace('_',
                        "-"),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", parsed))
                        }),
                }
            }
            Self::SanitizerCfiMinimalRuntime => {
                let mut parsed: Option<bool> = Default::default();
                let val =
                    if _user_value.is_empty() {
                        None
                    } else { Some(_user_value) };
                parse::parse_opt_bool(&mut parsed, val);
                ExtendedTargetModifierInfo {
                    prefix: "Z".to_string(),
                    name: "sanitizer_cfi_minimal_runtime".to_string().replace('_',
                        "-"),
                    tech_value: ::alloc::__export::must_use({
                            ::alloc::fmt::format(format_args!("{0:?}", parsed))
                        }),
                }
            }
                #[allow(unreachable_patterns)]
                _ => {
                ::core::panicking::panic_fmt(format_args!("unknown target modifier option: {0:?}",
                        *self));
            }
        }
    }
    pub fn is_target_modifier(flag_name: &str) -> bool {
        match flag_name.replace('-', "_").as_str() {
            "branch_protection" => true,
            "fixed_x18" => true,
            "indirect_branch_cs_prefix" => true,
            "llvm_target_feature" => true,
            "pointer_authentication" => true,
            "reg_struct_return" => true,
            "regparm" => true,
            "retpoline" => true,
            "retpoline_external_thunk" => true,
            "sanitizer" => true,
            "sanitizer_cfi_normalize_integers" => true,
            "sanitizer_cfi_minimal_runtime" => true,
            _ => false,
        }
    }
}
impl Default for UnstableOptions {
    fn default() -> UnstableOptions {
        UnstableOptions {
            allow_features: None,
            allow_partial_mitigations: (),
            always_encode_mir: false,
            annotate_moves: AnnotateMoves::Disabled,
            assert_incr_state: None,
            assume_incomplete_release: false,
            assumptions_on_binders: false,
            async_panic: true,
            autodiff: Vec::new(),
            autodiff_post_passes: None,
            binary_dep_depinfo: false,
            box_noalias: true,
            branch_protection: None,
            build_sdylib_interface: false,
            cache_proc_macros: false,
            cf_protection: CFProtection::None,
            check_cfg_all_expected: false,
            checksum_hash_algorithm: None,
            codegen_backend: None,
            codegen_emit_retag: None,
            codegen_source_order: false,
            contract_checks: None,
            coverage_options: CoverageOptions::default(),
            crate_attr: Vec::new(),
            cross_crate_inline_threshold: InliningThreshold::Sometimes(100),
            debug_info_type_line_numbers: false,
            debuginfo_compression: DebugInfoCompression::None,
            debuginfo_for_profiling: false,
            deduplicate_diagnostics: true,
            default_visibility: None,
            deny_partial_mitigations: (),
            dep_info_omit_d_target: false,
            direct_access_external_data: None,
            disable_fast_paths: false,
            disable_incr_comp_backend_caching: false,
            disable_param_env_normalization_hack: false,
            dual_proc_macros: false,
            dump_dep_graph: false,
            dump_mir: None,
            dump_mir_dataflow: false,
            dump_mir_dir: "mir_dump".to_string(),
            dump_mir_exclude_alloc_bytes: false,
            dump_mir_exclude_pass_number: false,
            dump_mir_graphviz: false,
            dump_mono_stats: SwitchWithOptPath::Disabled,
            dump_mono_stats_format: DumpMonoStatsFormat::Markdown,
            dwarf_version: None,
            dylib_lto: false,
            eagerly_emit_delayed_bugs: false,
            ehcont_guard: false,
            embed_metadata: None,
            embed_source: false,
            emit_stack_sizes: false,
            enforce_type_length_limit: false,
            experimental_default_bounds: false,
            export_executable_symbols: false,
            external_clangrt: false,
            extra_const_ub_checks: false,
            fewer_names: None,
            fixed_x18: false,
            flatten_format_args: true,
            fmt_debug: FmtDebug::Full,
            force_intrinsic_fallback: false,
            force_unstable_if_unmarked: false,
            function_return: FunctionReturn::default(),
            function_sections: None,
            future_incompat_test: false,
            graphviz_dark_mode: false,
            graphviz_font: "Courier, monospace".to_string(),
            has_thread_local: None,
            help: false,
            higher_ranked_assumptions: false,
            hint_mostly_unused: false,
            hint_msrv: None,
            human_readable_cgu_names: false,
            identify_regions: false,
            ignore_directory_in_diagnostics_source_blocks: Vec::new(),
            implicit_sysroot_deps: true,
            incremental_ignore_spans: false,
            incremental_info: false,
            incremental_verify_ich: false,
            indirect_branch_cs_prefix: false,
            inline_llvm: true,
            inline_mir: None,
            inline_mir_forwarder_threshold: None,
            inline_mir_hint_threshold: None,
            inline_mir_preserve_debug: None,
            inline_mir_threshold: None,
            input_stats: false,
            instrument_mcount: InstrumentMcount::Disabled,
            instrument_xray: None,
            internal_testing_features: false,
            large_data_threshold: None,
            layout_seed: None,
            link_directives: true,
            link_native_libraries: true,
            link_only: false,
            lint_llvm_ir: false,
            lint_mir: false,
            llvm_module_flag: Vec::new(),
            llvm_plugins: Vec::new(),
            llvm_target_feature: String::new(),
            llvm_time_trace: false,
            llvm_writable: false,
            location_detail: LocationDetail::all(),
            ls: Vec::new(),
            macro_backtrace: false,
            macro_stats: false,
            maximal_hir_to_mir_coverage: false,
            merge_functions: None,
            meta_stats: false,
            metadata_crate_hash: true,
            metrics_dir: None,
            min_function_alignment: None,
            min_recursion_limit: None,
            mir_enable_passes: Vec::new(),
            mir_include_spans: MirIncludeSpans::default(),
            mir_move_elimination: false,
            mir_opt_bisect_limit: None,
            mir_opt_level: None,
            mir_preserve_ub: false,
            mir_strip_debuginfo: MirStripDebugInfo::None,
            move_size_limit: None,
            namespaced_crates: false,
            next_solver: NextSolverConfig::default(),
            next_solver_overflow_fcw_limit: None,
            nll_facts: false,
            nll_facts_dir: "nll-facts".to_string(),
            no_analysis: false,
            no_codegen: false,
            no_generate_arange_section: false,
            no_implied_bounds_compat: false,
            no_leak_check: false,
            no_link: false,
            no_parallel_backend: false,
            no_profiler_runtime: false,
            no_steal_thir: false,
            no_trait_vptr: false,
            no_unique_section_names: false,
            normalize_docs: false,
            offload: Vec::new(),
            on_broken_pipe: OnBrokenPipe::Default,
            osx_rpath_install_name: false,
            packed_bundled_libs: false,
            packed_stack: false,
            panic_abort_tests: false,
            panic_in_drop: PanicStrategy::Unwind,
            parse_crate_root_only: false,
            patchable_function_entry: PatchableFunctionEntry::default(),
            plt: None,
            pointer_authentication: Vec::new(),
            polonius: Polonius::default(),
            pre_link_arg: (),
            pre_link_args: Vec::new(),
            precise_enum_drop_elaboration: true,
            print_codegen_stats: false,
            print_codegen_stats_json: None,
            print_llvm_passes: false,
            print_mono_items: false,
            print_type_sizes: false,
            proc_macro_backtrace: false,
            proc_macro_execution_strategy: ProcMacroExecutionStrategy::SameThread,
            profile_closures: false,
            profiler_runtime: String::from("profiler_builtins"),
            query_dep_graph: false,
            randomize_layout: false,
            reg_struct_return: false,
            regparm: None,
            relax_elf_relocations: None,
            remap_cwd_prefix: None,
            remark_dir: None,
            renormalize_rigid_aliases: false,
            retpoline: false,
            retpoline_external_thunk: false,
            sanitizer: SanitizerSet::empty(),
            sanitizer_ignorelist: ::alloc::vec::Vec::new(),
            sanitizer_cfi_canonical_jump_tables: Some(true),
            sanitizer_cfi_generalize_pointers: None,
            sanitizer_cfi_normalize_integers: None,
            sanitizer_cfi_diag: None,
            sanitizer_cfi_recover: None,
            sanitizer_cfi_minimal_runtime: None,
            sanitizer_dataflow_abilist: Vec::new(),
            sanitizer_kcfi_arity: None,
            sanitizer_memory_track_origins: 0,
            sanitizer_recover: SanitizerSet::empty(),
            self_profile: SwitchWithOptPath::Disabled,
            self_profile_counter: "wall-time".to_string(),
            self_profile_events: None,
            share_generics: None,
            shell_argfiles: false,
            simulate_remapped_rust_src_base: None,
            small_data_threshold: None,
            span_debug: false,
            span_free_formats: false,
            split_dwarf_inlining: false,
            split_dwarf_kind: SplitDwarfKind::Split,
            split_dwarf_out_dir: None,
            split_lto_unit: None,
            src_hash_algorithm: None,
            stack_protector: StackProtector::None,
            staticlib_allow_rdylib_deps: false,
            staticlib_hide_internal_symbols: false,
            staticlib_rename_internal_symbols: false,
            staticlib_prefer_dynamic: false,
            strict_init_checks: false,
            teach: false,
            temps_dir: None,
            terminal_urls: TerminalUrl::No,
            thinlto: None,
            threads: None,
            time_llvm_passes: false,
            time_passes: false,
            time_passes_format: TimePassesFormat::Text,
            tiny_const_eval_limit: false,
            tls_model: None,
            trace_macros: false,
            track_diagnostics: false,
            translate_remapped_path_to_local_path: true,
            trap_unreachable: None,
            treat_err_as_bug: None,
            trim_diagnostic_paths: true,
            tune_cpu: None,
            ub_checks: None,
            ui_testing: false,
            uninit_const_chunk_threshold: 16,
            unleash_the_miri_inside_of_you: false,
            unpretty: None,
            unsound_mir_opts: false,
            unstable_options: false,
            use_ctors_section: None,
            use_sync_unwind: None,
            validate_mir: false,
            verbose_asm: false,
            verbose_internals: false,
            verify_llvm_ir: false,
            virtual_function_elimination: false,
            wasi_exec_model: None,
            wasm_c_abi: (),
            wasm_proc_macros: false,
            write_long_types_to_disk: true,
        }
    }
}
impl UnstableOptions {
    pub fn build(early_dcx: &EarlyDiagCtxt, matches: &getopts::Matches,
        target_modifiers: &mut CollectedOptions) -> UnstableOptions {
        build_options(early_dcx, matches, target_modifiers, Z_OPTIONS, "Z",
            "unstable")
    }
    fn dep_tracking_hash(&self, for_crate_hash: bool,
        error_format: ErrorOutputType) -> Hash64 {
        let mut sub_hashes = BTreeMap::new();
        {
            if (&mut sub_hashes).insert("allow_features",
                        &self.allow_features as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "allow_features"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("always_encode_mir",
                        &self.always_encode_mir as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "always_encode_mir"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("annotate_moves",
                        &self.annotate_moves as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "annotate_moves"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("assume_incomplete_release",
                        &self.assume_incomplete_release as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "assume_incomplete_release"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("assumptions_on_binders",
                        &self.assumptions_on_binders as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "assumptions_on_binders"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("async_panic",
                        &self.async_panic as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "async_panic"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("autodiff",
                        &self.autodiff as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "autodiff"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("autodiff_post_passes",
                        &self.autodiff_post_passes as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "autodiff_post_passes"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("binary_dep_depinfo",
                        &self.binary_dep_depinfo as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "binary_dep_depinfo"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("box_noalias",
                        &self.box_noalias as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "box_noalias"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("branch_protection",
                        &self.branch_protection as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "branch_protection"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("cache_proc_macros",
                        &self.cache_proc_macros as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "cache_proc_macros"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("cf_protection",
                        &self.cf_protection as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "cf_protection"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("checksum_hash_algorithm",
                        &self.checksum_hash_algorithm as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "checksum_hash_algorithm"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("codegen_backend",
                        &self.codegen_backend as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "codegen_backend"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("codegen_emit_retag",
                        &self.codegen_emit_retag as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "codegen_emit_retag"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("contract_checks",
                        &self.contract_checks as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "contract_checks"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("coverage_options",
                        &self.coverage_options as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "coverage_options"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("crate_attr",
                        &self.crate_attr as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "crate_attr"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("cross_crate_inline_threshold",
                        &self.cross_crate_inline_threshold as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "cross_crate_inline_threshold"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("debug_info_type_line_numbers",
                        &self.debug_info_type_line_numbers as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "debug_info_type_line_numbers"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("debuginfo_compression",
                        &self.debuginfo_compression as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "debuginfo_compression"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("debuginfo_for_profiling",
                        &self.debuginfo_for_profiling as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "debuginfo_for_profiling"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("default_visibility",
                        &self.default_visibility as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "default_visibility"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("dep_info_omit_d_target",
                        &self.dep_info_omit_d_target as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "dep_info_omit_d_target"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("direct_access_external_data",
                        &self.direct_access_external_data as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "direct_access_external_data"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("disable_fast_paths",
                        &self.disable_fast_paths as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "disable_fast_paths"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("disable_incr_comp_backend_caching",
                        &self.disable_incr_comp_backend_caching as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "disable_incr_comp_backend_caching"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("disable_param_env_normalization_hack",
                        &self.disable_param_env_normalization_hack as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "disable_param_env_normalization_hack"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("dual_proc_macros",
                        &self.dual_proc_macros as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "dual_proc_macros"));
                }
            }
        };
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {
            if (&mut sub_hashes).insert("dwarf_version",
                        &self.dwarf_version as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "dwarf_version"));
                }
            }
        };
        {};
        {};
        {
            if (&mut sub_hashes).insert("ehcont_guard",
                        &self.ehcont_guard as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "ehcont_guard"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("embed_metadata",
                        &self.embed_metadata as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "embed_metadata"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("embed_source",
                        &self.embed_source as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "embed_source"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("enforce_type_length_limit",
                        &self.enforce_type_length_limit as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "enforce_type_length_limit"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("experimental_default_bounds",
                        &self.experimental_default_bounds as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "experimental_default_bounds"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("export_executable_symbols",
                        &self.export_executable_symbols as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "export_executable_symbols"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("extra_const_ub_checks",
                        &self.extra_const_ub_checks as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "extra_const_ub_checks"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("fewer_names",
                        &self.fewer_names as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "fewer_names"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("fixed_x18",
                        &self.fixed_x18 as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "fixed_x18"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("flatten_format_args",
                        &self.flatten_format_args as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "flatten_format_args"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("fmt_debug",
                        &self.fmt_debug as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "fmt_debug"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("force_intrinsic_fallback",
                        &self.force_intrinsic_fallback as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "force_intrinsic_fallback"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("force_unstable_if_unmarked",
                        &self.force_unstable_if_unmarked as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "force_unstable_if_unmarked"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("function_return",
                        &self.function_return as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "function_return"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("function_sections",
                        &self.function_sections as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "function_sections"));
                }
            }
        };
        {};
        {};
        {};
        {
            if (&mut sub_hashes).insert("has_thread_local",
                        &self.has_thread_local as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "has_thread_local"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("higher_ranked_assumptions",
                        &self.higher_ranked_assumptions as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "higher_ranked_assumptions"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("hint_mostly_unused",
                        &self.hint_mostly_unused as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "hint_mostly_unused"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("hint_msrv",
                        &self.hint_msrv as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "hint_msrv"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("human_readable_cgu_names",
                        &self.human_readable_cgu_names as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "human_readable_cgu_names"));
                }
            }
        };
        {};
        {};
        {
            if (&mut sub_hashes).insert("implicit_sysroot_deps",
                        &self.implicit_sysroot_deps as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "implicit_sysroot_deps"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("incremental_ignore_spans",
                        &self.incremental_ignore_spans as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "incremental_ignore_spans"));
                }
            }
        };
        {};
        {};
        {
            if (&mut sub_hashes).insert("indirect_branch_cs_prefix",
                        &self.indirect_branch_cs_prefix as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "indirect_branch_cs_prefix"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("inline_llvm",
                        &self.inline_llvm as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "inline_llvm"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("inline_mir",
                        &self.inline_mir as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "inline_mir"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("inline_mir_forwarder_threshold",
                        &self.inline_mir_forwarder_threshold as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "inline_mir_forwarder_threshold"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("inline_mir_hint_threshold",
                        &self.inline_mir_hint_threshold as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "inline_mir_hint_threshold"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("inline_mir_preserve_debug",
                        &self.inline_mir_preserve_debug as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "inline_mir_preserve_debug"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("inline_mir_threshold",
                        &self.inline_mir_threshold as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "inline_mir_threshold"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("instrument_mcount",
                        &self.instrument_mcount as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "instrument_mcount"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("instrument_xray",
                        &self.instrument_xray as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "instrument_xray"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("internal_testing_features",
                        &self.internal_testing_features as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "internal_testing_features"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("large_data_threshold",
                        &self.large_data_threshold as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "large_data_threshold"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("layout_seed",
                        &self.layout_seed as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "layout_seed"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("link_directives",
                        &self.link_directives as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "link_directives"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("link_only",
                        &self.link_only as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "link_only"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("lint_llvm_ir",
                        &self.lint_llvm_ir as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "lint_llvm_ir"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("llvm_module_flag",
                        &self.llvm_module_flag as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "llvm_module_flag"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("llvm_plugins",
                        &self.llvm_plugins as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "llvm_plugins"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("llvm_target_feature",
                        &self.llvm_target_feature as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "llvm_target_feature"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("llvm_writable",
                        &self.llvm_writable as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "llvm_writable"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("location_detail",
                        &self.location_detail as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "location_detail"));
                }
            }
        };
        {};
        {};
        {};
        {
            if (&mut sub_hashes).insert("maximal_hir_to_mir_coverage",
                        &self.maximal_hir_to_mir_coverage as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "maximal_hir_to_mir_coverage"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("merge_functions",
                        &self.merge_functions as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "merge_functions"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("metadata_crate_hash",
                        &self.metadata_crate_hash as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "metadata_crate_hash"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("min_function_alignment",
                        &self.min_function_alignment as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "min_function_alignment"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("min_recursion_limit",
                        &self.min_recursion_limit as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "min_recursion_limit"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("mir_enable_passes",
                        &self.mir_enable_passes as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "mir_enable_passes"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("mir_move_elimination",
                        &self.mir_move_elimination as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "mir_move_elimination"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("mir_opt_bisect_limit",
                        &self.mir_opt_bisect_limit as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "mir_opt_bisect_limit"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("mir_opt_level",
                        &self.mir_opt_level as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "mir_opt_level"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("mir_preserve_ub",
                        &self.mir_preserve_ub as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "mir_preserve_ub"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("mir_strip_debuginfo",
                        &self.mir_strip_debuginfo as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "mir_strip_debuginfo"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("move_size_limit",
                        &self.move_size_limit as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "move_size_limit"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("namespaced_crates",
                        &self.namespaced_crates as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "namespaced_crates"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("next_solver",
                        &self.next_solver as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "next_solver"));
                }
            }
        };
        {
            if !for_crate_hash {
                if (&mut sub_hashes).insert("next_solver_overflow_fcw_limit",
                            &self.next_solver_overflow_fcw_limit as
                                &dyn dep_tracking::DepTrackingHash).is_some() {
                    {
                        ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                                "next_solver_overflow_fcw_limit"));
                    }
                }
            }
        };
        {};
        {};
        {};
        {
            if !for_crate_hash {
                if (&mut sub_hashes).insert("no_codegen",
                            &self.no_codegen as
                                &dyn dep_tracking::DepTrackingHash).is_some() {
                    {
                        ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                                "no_codegen"));
                    }
                }
            }
        };
        {
            if (&mut sub_hashes).insert("no_generate_arange_section",
                        &self.no_generate_arange_section as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "no_generate_arange_section"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("no_implied_bounds_compat",
                        &self.no_implied_bounds_compat as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "no_implied_bounds_compat"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("no_link",
                        &self.no_link as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "no_link"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("no_profiler_runtime",
                        &self.no_profiler_runtime as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "no_profiler_runtime"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("no_trait_vptr",
                        &self.no_trait_vptr as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "no_trait_vptr"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("no_unique_section_names",
                        &self.no_unique_section_names as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "no_unique_section_names"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("normalize_docs",
                        &self.normalize_docs as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "normalize_docs"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("offload",
                        &self.offload as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "offload"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("on_broken_pipe",
                        &self.on_broken_pipe as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "on_broken_pipe"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("osx_rpath_install_name",
                        &self.osx_rpath_install_name as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "osx_rpath_install_name"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("packed_bundled_libs",
                        &self.packed_bundled_libs as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "packed_bundled_libs"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("packed_stack",
                        &self.packed_stack as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "packed_stack"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("panic_abort_tests",
                        &self.panic_abort_tests as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "panic_abort_tests"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("panic_in_drop",
                        &self.panic_in_drop as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "panic_in_drop"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("patchable_function_entry",
                        &self.patchable_function_entry as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "patchable_function_entry"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("plt",
                        &self.plt as &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "plt"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("pointer_authentication",
                        &self.pointer_authentication as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "pointer_authentication"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("polonius",
                        &self.polonius as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "polonius"));
                }
            }
        };
        {};
        {};
        {
            if (&mut sub_hashes).insert("precise_enum_drop_elaboration",
                        &self.precise_enum_drop_elaboration as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "precise_enum_drop_elaboration"));
                }
            }
        };
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {};
        {
            if (&mut sub_hashes).insert("profiler_runtime",
                        &self.profiler_runtime as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "profiler_runtime"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("randomize_layout",
                        &self.randomize_layout as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "randomize_layout"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("reg_struct_return",
                        &self.reg_struct_return as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "reg_struct_return"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("regparm",
                        &self.regparm as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "regparm"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("relax_elf_relocations",
                        &self.relax_elf_relocations as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "relax_elf_relocations"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("remap_cwd_prefix",
                        &self.remap_cwd_prefix as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "remap_cwd_prefix"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("renormalize_rigid_aliases",
                        &self.renormalize_rigid_aliases as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "renormalize_rigid_aliases"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("retpoline",
                        &self.retpoline as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "retpoline"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("retpoline_external_thunk",
                        &self.retpoline_external_thunk as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "retpoline_external_thunk"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("sanitizer",
                        &self.sanitizer as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "sanitizer"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("sanitizer_ignorelist",
                        &self.sanitizer_ignorelist as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "sanitizer_ignorelist"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("sanitizer_cfi_canonical_jump_tables",
                        &self.sanitizer_cfi_canonical_jump_tables as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "sanitizer_cfi_canonical_jump_tables"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("sanitizer_cfi_generalize_pointers",
                        &self.sanitizer_cfi_generalize_pointers as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "sanitizer_cfi_generalize_pointers"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("sanitizer_cfi_normalize_integers",
                        &self.sanitizer_cfi_normalize_integers as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "sanitizer_cfi_normalize_integers"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("sanitizer_cfi_diag",
                        &self.sanitizer_cfi_diag as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "sanitizer_cfi_diag"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("sanitizer_cfi_recover",
                        &self.sanitizer_cfi_recover as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "sanitizer_cfi_recover"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("sanitizer_cfi_minimal_runtime",
                        &self.sanitizer_cfi_minimal_runtime as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "sanitizer_cfi_minimal_runtime"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("sanitizer_dataflow_abilist",
                        &self.sanitizer_dataflow_abilist as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "sanitizer_dataflow_abilist"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("sanitizer_kcfi_arity",
                        &self.sanitizer_kcfi_arity as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "sanitizer_kcfi_arity"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("sanitizer_memory_track_origins",
                        &self.sanitizer_memory_track_origins as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "sanitizer_memory_track_origins"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("sanitizer_recover",
                        &self.sanitizer_recover as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "sanitizer_recover"));
                }
            }
        };
        {};
        {};
        {};
        {
            if (&mut sub_hashes).insert("share_generics",
                        &self.share_generics as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "share_generics"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("simulate_remapped_rust_src_base",
                        &self.simulate_remapped_rust_src_base as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "simulate_remapped_rust_src_base"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("small_data_threshold",
                        &self.small_data_threshold as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "small_data_threshold"));
                }
            }
        };
        {};
        {};
        {
            if (&mut sub_hashes).insert("split_dwarf_inlining",
                        &self.split_dwarf_inlining as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "split_dwarf_inlining"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("split_dwarf_kind",
                        &self.split_dwarf_kind as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "split_dwarf_kind"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("split_dwarf_out_dir",
                        &self.split_dwarf_out_dir as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "split_dwarf_out_dir"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("split_lto_unit",
                        &self.split_lto_unit as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "split_lto_unit"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("src_hash_algorithm",
                        &self.src_hash_algorithm as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "src_hash_algorithm"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("stack_protector",
                        &self.stack_protector as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "stack_protector"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("staticlib_allow_rdylib_deps",
                        &self.staticlib_allow_rdylib_deps as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "staticlib_allow_rdylib_deps"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("staticlib_hide_internal_symbols",
                        &self.staticlib_hide_internal_symbols as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "staticlib_hide_internal_symbols"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("staticlib_rename_internal_symbols",
                        &self.staticlib_rename_internal_symbols as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "staticlib_rename_internal_symbols"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("staticlib_prefer_dynamic",
                        &self.staticlib_prefer_dynamic as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "staticlib_prefer_dynamic"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("strict_init_checks",
                        &self.strict_init_checks as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "strict_init_checks"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("teach",
                        &self.teach as &dyn dep_tracking::DepTrackingHash).is_some()
                {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "teach"));
                }
            }
        };
        {};
        {};
        {
            if (&mut sub_hashes).insert("thinlto",
                        &self.thinlto as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "thinlto"));
                }
            }
        };
        {};
        {};
        {};
        {};
        {
            if (&mut sub_hashes).insert("tiny_const_eval_limit",
                        &self.tiny_const_eval_limit as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "tiny_const_eval_limit"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("tls_model",
                        &self.tls_model as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "tls_model"));
                }
            }
        };
        {};
        {};
        {
            if (&mut sub_hashes).insert("translate_remapped_path_to_local_path",
                        &self.translate_remapped_path_to_local_path as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "translate_remapped_path_to_local_path"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("trap_unreachable",
                        &self.trap_unreachable as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "trap_unreachable"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("treat_err_as_bug",
                        &self.treat_err_as_bug as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "treat_err_as_bug"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("tune_cpu",
                        &self.tune_cpu as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "tune_cpu"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("ub_checks",
                        &self.ub_checks as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "ub_checks"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("uninit_const_chunk_threshold",
                        &self.uninit_const_chunk_threshold as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "uninit_const_chunk_threshold"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("unleash_the_miri_inside_of_you",
                        &self.unleash_the_miri_inside_of_you as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "unleash_the_miri_inside_of_you"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("unsound_mir_opts",
                        &self.unsound_mir_opts as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "unsound_mir_opts"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("use_ctors_section",
                        &self.use_ctors_section as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "use_ctors_section"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("use_sync_unwind",
                        &self.use_sync_unwind as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "use_sync_unwind"));
                }
            }
        };
        {};
        {
            if (&mut sub_hashes).insert("verbose_asm",
                        &self.verbose_asm as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "verbose_asm"));
                }
            }
        };
        {
            if !for_crate_hash {
                if (&mut sub_hashes).insert("verbose_internals",
                            &self.verbose_internals as
                                &dyn dep_tracking::DepTrackingHash).is_some() {
                    {
                        ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                                "verbose_internals"));
                    }
                }
            }
        };
        {
            if (&mut sub_hashes).insert("verify_llvm_ir",
                        &self.verify_llvm_ir as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "verify_llvm_ir"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("virtual_function_elimination",
                        &self.virtual_function_elimination as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "virtual_function_elimination"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("wasi_exec_model",
                        &self.wasi_exec_model as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "wasi_exec_model"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("wasm_c_abi",
                        &self.wasm_c_abi as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "wasm_c_abi"));
                }
            }
        };
        {
            if (&mut sub_hashes).insert("wasm_proc_macros",
                        &self.wasm_proc_macros as
                            &dyn dep_tracking::DepTrackingHash).is_some() {
                {
                    ::core::panicking::panic_fmt(format_args!("duplicate key in CLI DepTrackingHash: {0}",
                            "wasm_proc_macros"));
                }
            }
        };
        {};
        let mut hasher = StableHasher::new();
        dep_tracking::stable_hash(sub_hashes, &mut hasher, error_format,
            for_crate_hash);
        hasher.finish()
    }
    pub fn gather_target_modifiers(&self, _mods: &mut Vec<TargetModifier>,
        _tmod_vals: &BTreeMap<OptionsTargetModifiers, String>) {
        if self.branch_protection != None {
            tmod_push_impl(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::BranchProtection),
                _tmod_vals, _mods);
        }
        if self.fixed_x18 != false {
            tmod_push_impl(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::FixedX18),
                _tmod_vals, _mods);
        }
        if self.indirect_branch_cs_prefix != false {
            tmod_push_impl(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::IndirectBranchCsPrefix),
                _tmod_vals, _mods);
        }
        if self.llvm_target_feature != String::new() {
            tmod_push_impl(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::LlvmTargetFeature),
                _tmod_vals, _mods);
        }
        if self.pointer_authentication != Vec::new() {
            tmod_push_impl(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::PointerAuthentication),
                _tmod_vals, _mods);
        }
        if self.reg_struct_return != false {
            tmod_push_impl(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::RegStructReturn),
                _tmod_vals, _mods);
        }
        if self.regparm != None {
            tmod_push_impl(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::Regparm),
                _tmod_vals, _mods);
        }
        if self.retpoline != false {
            tmod_push_impl(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::Retpoline),
                _tmod_vals, _mods);
        }
        if self.retpoline_external_thunk != false {
            tmod_push_impl(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::RetpolineExternalThunk),
                _tmod_vals, _mods);
        }
        if self.sanitizer != SanitizerSet::empty() {
            tmod_push_impl(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::Sanitizer),
                _tmod_vals, _mods);
        }
        if self.sanitizer_cfi_normalize_integers != None {
            tmod_push_impl(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::SanitizerCfiNormalizeIntegers),
                _tmod_vals, _mods);
        }
        if self.sanitizer_cfi_minimal_runtime != None {
            tmod_push_impl(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::SanitizerCfiMinimalRuntime),
                _tmod_vals, _mods);
        }
    }
}
pub const Z_OPTIONS: OptionDescrs<UnstableOptions> =
    &[OptionDesc {
                    name: "allow_features",
                    setter: dbopts::allow_features,
                    type_desc: desc::parse_opt_comma_list,
                    desc: "only allow the listed language features to be enabled in code (comma separated)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "allow_partial_mitigations",
                    setter: dbopts::allow_partial_mitigations,
                    type_desc: desc::parse_allow_partial_mitigations,
                    desc: "Allow mitigations not enabled for all dependency crates (comma separated list)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "always_encode_mir",
                    setter: dbopts::always_encode_mir,
                    type_desc: desc::parse_bool,
                    desc: "encode MIR of all functions into the crate metadata (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "annotate_moves",
                    setter: dbopts::annotate_moves,
                    type_desc: desc::parse_annotate_moves,
                    desc: "emit debug info for compiler-generated move and copy operations \
        to make them visible in profilers. Can be a boolean or a size limit in bytes (default: disabled)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "assert_incr_state",
                    setter: dbopts::assert_incr_state,
                    type_desc: desc::parse_assert_incr_state,
                    desc: "assert that the incremental cache is in given state: \
         either `loaded` or `not-loaded`.",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "assume_incomplete_release",
                    setter: dbopts::assume_incomplete_release,
                    type_desc: desc::parse_bool,
                    desc: "make cfg(version) treat the current version as incomplete (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "assumptions_on_binders",
                    setter: dbopts::assumptions_on_binders,
                    type_desc: desc::parse_bool,
                    desc: "allow deducing higher-ranked outlives assumptions from all binders (`for<'a>`); \
         implies `-Znext-solver=globally`",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "async_panic",
                    setter: dbopts::async_panic,
                    type_desc: desc::parse_bool,
                    desc: "let async blocks and functions panic when polled after completion",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "autodiff",
                    setter: dbopts::autodiff,
                    type_desc: desc::parse_autodiff,
                    desc: "a list of autodiff flags to enable
        Mandatory setting:
        `=Enable`
        Optional extra settings:
        `=PrintTA`
        `=PrintAA`
        `=PrintPerf`
        `=PrintSteps`
        `=PrintModBefore`
        `=PrintModAfter`
        `=PrintModFinal`
        `=PrintPasses`,
        `=NoPostopt`
        `=LooseTypes`
        `=Inline`
        Multiple options can be combined with commas.",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "autodiff_post_passes",
                    setter: dbopts::autodiff_post_passes,
                    type_desc: desc::parse_opt_string,
                    desc: "set llvm passes to run after enzyme (no passes run when it is empty)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "binary_dep_depinfo",
                    setter: dbopts::binary_dep_depinfo,
                    type_desc: desc::parse_bool,
                    desc: "include artifacts (sysroot, crate dependencies) used during compilation in dep-info \
        (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "box_noalias",
                    setter: dbopts::box_noalias,
                    type_desc: desc::parse_bool,
                    desc: "emit noalias metadata for box (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "branch_protection",
                    setter: dbopts::branch_protection,
                    type_desc: desc::parse_branch_protection,
                    desc: "set options for branch target identification and pointer authentication on AArch64",
                    removed: None,
                    tmod: None.or(Some(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::BranchProtection))),
                    mitigation: None,
                },
                OptionDesc {
                    name: "build_sdylib_interface",
                    setter: dbopts::build_sdylib_interface,
                    type_desc: desc::parse_bool,
                    desc: "whether the stable interface is being built",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "cache_proc_macros",
                    setter: dbopts::cache_proc_macros,
                    type_desc: desc::parse_bool,
                    desc: "cache the results of derive proc macro invocations (potentially unsound!) (default: no",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "cf_protection",
                    setter: dbopts::cf_protection,
                    type_desc: desc::parse_cfprotection,
                    desc: "instrument control-flow architecture protection",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "check_cfg_all_expected",
                    setter: dbopts::check_cfg_all_expected,
                    type_desc: desc::parse_bool,
                    desc: "show all expected values in check-cfg diagnostics (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "checksum_hash_algorithm",
                    setter: dbopts::checksum_hash_algorithm,
                    type_desc: desc::parse_cargo_src_file_hash,
                    desc: "hash algorithm of source files used to check freshness in cargo (`blake3` or `sha256`)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "codegen_backend",
                    setter: dbopts::codegen_backend,
                    type_desc: desc::parse_opt_string,
                    desc: "the backend to use",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "codegen_emit_retag",
                    setter: dbopts::codegen_emit_retag,
                    type_desc: desc::parse_codegen_retag_options,
                    desc: "emit retag function calls in generated code",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "codegen_source_order",
                    setter: dbopts::codegen_source_order,
                    type_desc: desc::parse_bool,
                    desc: "emit mono items in the order of spans in source files (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "contract_checks",
                    setter: dbopts::contract_checks,
                    type_desc: desc::parse_opt_bool,
                    desc: "emit runtime checks for contract pre- and post-conditions (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "coverage_options",
                    setter: dbopts::coverage_options,
                    type_desc: desc::parse_coverage_options,
                    desc: "control details of coverage instrumentation",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "crate_attr",
                    setter: dbopts::crate_attr,
                    type_desc: desc::parse_string_push,
                    desc: "inject the given attribute in the crate",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "cross_crate_inline_threshold",
                    setter: dbopts::cross_crate_inline_threshold,
                    type_desc: desc::parse_inlining_threshold,
                    desc: "threshold to allow cross crate inlining of functions",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "debug_info_type_line_numbers",
                    setter: dbopts::debug_info_type_line_numbers,
                    type_desc: desc::parse_bool,
                    desc: "emit type and line information for additional data types (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "debuginfo_compression",
                    setter: dbopts::debuginfo_compression,
                    type_desc: desc::parse_debuginfo_compression,
                    desc: "compress debug info sections (none, zlib, zstd, default: none)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "debuginfo_for_profiling",
                    setter: dbopts::debuginfo_for_profiling,
                    type_desc: desc::parse_bool,
                    desc: "emit extra debug info to make sample profile more accurate",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "deduplicate_diagnostics",
                    setter: dbopts::deduplicate_diagnostics,
                    type_desc: desc::parse_bool,
                    desc: "deduplicate identical diagnostics (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "default_visibility",
                    setter: dbopts::default_visibility,
                    type_desc: desc::parse_opt_symbol_visibility,
                    desc: "overrides the `default_visibility` setting of the target",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "deny_partial_mitigations",
                    setter: dbopts::deny_partial_mitigations,
                    type_desc: desc::parse_deny_partial_mitigations,
                    desc: "Deny mitigations not enabled for all dependency crates (comma separated list)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dep_info_omit_d_target",
                    setter: dbopts::dep_info_omit_d_target,
                    type_desc: desc::parse_bool,
                    desc: "in dep-info output, omit targets for tracking dependencies of the dep-info files \
        themselves (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "direct_access_external_data",
                    setter: dbopts::direct_access_external_data,
                    type_desc: desc::parse_opt_bool,
                    desc: "Direct or use GOT indirect to reference external data symbols",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "disable_fast_paths",
                    setter: dbopts::disable_fast_paths,
                    type_desc: desc::parse_bool,
                    desc: "disable various performance optimizations in trait solving",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "disable_incr_comp_backend_caching",
                    setter: dbopts::disable_incr_comp_backend_caching,
                    type_desc: desc::parse_bool,
                    desc: "disable caching of compiled objects by the codegen backend during incremental compilation",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "disable_param_env_normalization_hack",
                    setter: dbopts::disable_param_env_normalization_hack,
                    type_desc: desc::parse_bool,
                    desc: "do not treat all aliases in the environment as rigid with `-Znext-solver`",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dual_proc_macros",
                    setter: dbopts::dual_proc_macros,
                    type_desc: desc::parse_bool,
                    desc: "load proc macros for both target and host, but only link to the target (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dump_dep_graph",
                    setter: dbopts::dump_dep_graph,
                    type_desc: desc::parse_bool,
                    desc: "dump the dependency graph to `$RUST_DEP_GRAPH` as both a text file and a GraphViz dot file (default: ./dep_graph.{dot, txt}) \
        (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dump_mir",
                    setter: dbopts::dump_mir,
                    type_desc: desc::parse_opt_string,
                    desc: "dump MIR state to file.
        `val` is used to select which passes and functions to dump. For example:
        `all` matches all passes and functions,
        `foo` matches all passes for functions whose name contains 'foo',
        `foo & ConstProp` only the 'ConstProp' pass for function names containing 'foo',
        `foo | bar` all passes for function names containing 'foo' or 'bar'.",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dump_mir_dataflow",
                    setter: dbopts::dump_mir_dataflow,
                    type_desc: desc::parse_bool,
                    desc: "in addition to `.mir` files, create graphviz `.dot` files with dataflow results \
        (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dump_mir_dir",
                    setter: dbopts::dump_mir_dir,
                    type_desc: desc::parse_string,
                    desc: "the directory the MIR is dumped into (default: `mir_dump`)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dump_mir_exclude_alloc_bytes",
                    setter: dbopts::dump_mir_exclude_alloc_bytes,
                    type_desc: desc::parse_bool,
                    desc: "exclude the raw bytes of allocations when dumping MIR (used in tests) (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dump_mir_exclude_pass_number",
                    setter: dbopts::dump_mir_exclude_pass_number,
                    type_desc: desc::parse_bool,
                    desc: "exclude the pass number when dumping MIR (used in tests) (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dump_mir_graphviz",
                    setter: dbopts::dump_mir_graphviz,
                    type_desc: desc::parse_bool,
                    desc: "in addition to `.mir` files, create graphviz `.dot` files (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dump_mono_stats",
                    setter: dbopts::dump_mono_stats,
                    type_desc: desc::parse_switch_with_opt_path,
                    desc: "output statistics about monomorphization collection",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dump_mono_stats_format",
                    setter: dbopts::dump_mono_stats_format,
                    type_desc: desc::parse_dump_mono_stats,
                    desc: "the format to use for -Z dump-mono-stats (`markdown` (default) or `json`)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dwarf_version",
                    setter: dbopts::dwarf_version,
                    type_desc: desc::parse_opt_number,
                    desc: "version of DWARF debug information to emit (default: 2 or 4, depending on platform)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "dylib_lto",
                    setter: dbopts::dylib_lto,
                    type_desc: desc::parse_bool,
                    desc: "enables LTO for dylib crate type",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "eagerly_emit_delayed_bugs",
                    setter: dbopts::eagerly_emit_delayed_bugs,
                    type_desc: desc::parse_bool,
                    desc: "emit delayed bugs eagerly as errors instead of stashing them and emitting \
        them only if an error has not been emitted",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "ehcont_guard",
                    setter: dbopts::ehcont_guard,
                    type_desc: desc::parse_bool,
                    desc: "generate Windows EHCont Guard tables",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "embed_metadata",
                    setter: dbopts::embed_metadata,
                    type_desc: desc::parse_opt_bool,
                    desc: "embed metadata in rlibs and dylibs (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "embed_source",
                    setter: dbopts::embed_source,
                    type_desc: desc::parse_bool,
                    desc: "embed source text in DWARF debug sections (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "emit_stack_sizes",
                    setter: dbopts::emit_stack_sizes,
                    type_desc: desc::parse_bool,
                    desc: "emit a section containing stack size metadata (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "enforce_type_length_limit",
                    setter: dbopts::enforce_type_length_limit,
                    type_desc: desc::parse_bool,
                    desc: "enforce the type length limit when monomorphizing instances in codegen",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "experimental_default_bounds",
                    setter: dbopts::experimental_default_bounds,
                    type_desc: desc::parse_bool,
                    desc: "enable default bounds for experimental group of auto traits",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "export_executable_symbols",
                    setter: dbopts::export_executable_symbols,
                    type_desc: desc::parse_bool,
                    desc: "export symbols from executables, as if they were dynamic libraries",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "external_clangrt",
                    setter: dbopts::external_clangrt,
                    type_desc: desc::parse_bool,
                    desc: "rely on user specified linker commands to find clangrt",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "extra_const_ub_checks",
                    setter: dbopts::extra_const_ub_checks,
                    type_desc: desc::parse_bool,
                    desc: "turns on more checks to detect const UB, which can be slow (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "fewer_names",
                    setter: dbopts::fewer_names,
                    type_desc: desc::parse_opt_bool,
                    desc: "reduce memory use by retaining fewer names within compilation artifacts (LLVM-IR) \
        (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "fixed_x18",
                    setter: dbopts::fixed_x18,
                    type_desc: desc::parse_bool,
                    desc: "make the x18 register reserved on AArch64 (default: no)",
                    removed: None,
                    tmod: None.or(Some(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::FixedX18))),
                    mitigation: None,
                },
                OptionDesc {
                    name: "flatten_format_args",
                    setter: dbopts::flatten_format_args,
                    type_desc: desc::parse_bool,
                    desc: "flatten nested format_args!() and literals into a simplified format_args!() call \
        (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "fmt_debug",
                    setter: dbopts::fmt_debug,
                    type_desc: desc::parse_fmt_debug,
                    desc: "how detailed `#[derive(Debug)]` should be. `full` prints types recursively, \
        `shallow` prints only type names, `none` prints nothing and disables `{:?}`. (default: `full`)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "force_intrinsic_fallback",
                    setter: dbopts::force_intrinsic_fallback,
                    type_desc: desc::parse_bool,
                    desc: "always use the fallback body of an intrinsic, if it has one, instead of lowering \
        the intrinsic in the codegen backend (default: no).",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "force_unstable_if_unmarked",
                    setter: dbopts::force_unstable_if_unmarked,
                    type_desc: desc::parse_bool,
                    desc: "force all crates to be `rustc_private` unstable (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "function_return",
                    setter: dbopts::function_return,
                    type_desc: desc::parse_function_return,
                    desc: "replace returns with jumps to `__x86_return_thunk` (default: `keep`)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "function_sections",
                    setter: dbopts::function_sections,
                    type_desc: desc::parse_opt_bool,
                    desc: "whether each function should go in its own section",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "future_incompat_test",
                    setter: dbopts::future_incompat_test,
                    type_desc: desc::parse_bool,
                    desc: "forces all lints to be future incompatible, used for internal testing (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "graphviz_dark_mode",
                    setter: dbopts::graphviz_dark_mode,
                    type_desc: desc::parse_bool,
                    desc: "use dark-themed colors in graphviz output (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "graphviz_font",
                    setter: dbopts::graphviz_font,
                    type_desc: desc::parse_string,
                    desc: "use the given `fontname` in graphviz output; can be overridden by setting \
        environment variable `RUSTC_GRAPHVIZ_FONT` (default: `Courier, monospace`)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "has_thread_local",
                    setter: dbopts::has_thread_local,
                    type_desc: desc::parse_opt_bool,
                    desc: "explicitly enable the `cfg(target_thread_local)` directive",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "help",
                    setter: dbopts::help,
                    type_desc: desc::parse_no_value,
                    desc: "Print unstable compiler options",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "higher_ranked_assumptions",
                    setter: dbopts::higher_ranked_assumptions,
                    type_desc: desc::parse_bool,
                    desc: "allow deducing higher-ranked outlives assumptions from coroutines when proving auto traits",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "hint_mostly_unused",
                    setter: dbopts::hint_mostly_unused,
                    type_desc: desc::parse_bool,
                    desc: "hint that most of this crate will go unused, to minimize work for uncalled functions",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "hint_msrv",
                    setter: dbopts::hint_msrv,
                    type_desc: desc::parse_rust_version,
                    desc: "control the minimum rust version for lints",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "human_readable_cgu_names",
                    setter: dbopts::human_readable_cgu_names,
                    type_desc: desc::parse_bool,
                    desc: "generate human-readable, predictable names for codegen units (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "identify_regions",
                    setter: dbopts::identify_regions,
                    type_desc: desc::parse_bool,
                    desc: "display unnamed regions as `'<id>`, using a non-ident unique id (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "ignore_directory_in_diagnostics_source_blocks",
                    setter: dbopts::ignore_directory_in_diagnostics_source_blocks,
                    type_desc: desc::parse_string_push,
                    desc: "do not display the source code block in diagnostics for files in the directory",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "implicit_sysroot_deps",
                    setter: dbopts::implicit_sysroot_deps,
                    type_desc: desc::parse_bool,
                    desc: "allows rust to search sysroot for a crate's dependencies (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "incremental_ignore_spans",
                    setter: dbopts::incremental_ignore_spans,
                    type_desc: desc::parse_bool,
                    desc: "ignore spans during ICH computation -- used for testing (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "incremental_info",
                    setter: dbopts::incremental_info,
                    type_desc: desc::parse_bool,
                    desc: "print high-level information about incremental reuse (or the lack thereof) \
        (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "incremental_verify_ich",
                    setter: dbopts::incremental_verify_ich,
                    type_desc: desc::parse_bool,
                    desc: "verify extended properties for incr. comp. (default: no):
        - hashes of green query instances
        - hash collisions of query keys
        - hash collisions when creating dep-nodes",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "indirect_branch_cs_prefix",
                    setter: dbopts::indirect_branch_cs_prefix,
                    type_desc: desc::parse_bool,
                    desc: "add `cs` prefix to `call` and `jmp` to indirect thunks (default: no)",
                    removed: None,
                    tmod: None.or(Some(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::IndirectBranchCsPrefix))),
                    mitigation: None,
                },
                OptionDesc {
                    name: "inline_llvm",
                    setter: dbopts::inline_llvm,
                    type_desc: desc::parse_bool,
                    desc: "enable LLVM inlining (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "inline_mir",
                    setter: dbopts::inline_mir,
                    type_desc: desc::parse_opt_bool,
                    desc: "enable MIR inlining (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "inline_mir_forwarder_threshold",
                    setter: dbopts::inline_mir_forwarder_threshold,
                    type_desc: desc::parse_opt_number,
                    desc: "inlining threshold when the caller is a simple forwarding function (default: 30)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "inline_mir_hint_threshold",
                    setter: dbopts::inline_mir_hint_threshold,
                    type_desc: desc::parse_opt_number,
                    desc: "inlining threshold for functions with inline hint (default: 100)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "inline_mir_preserve_debug",
                    setter: dbopts::inline_mir_preserve_debug,
                    type_desc: desc::parse_opt_bool,
                    desc: "when MIR inlining, whether to preserve debug info for callee variables \
        (default: preserve for debuginfo != None, otherwise remove)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "inline_mir_threshold",
                    setter: dbopts::inline_mir_threshold,
                    type_desc: desc::parse_opt_number,
                    desc: "a default MIR inlining threshold (default: 50)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "input_stats",
                    setter: dbopts::input_stats,
                    type_desc: desc::parse_bool,
                    desc: "print some statistics about AST and HIR (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "instrument_mcount",
                    setter: dbopts::instrument_mcount,
                    type_desc: desc::parse_instrument_mcount,
                    desc: "insert function instrument code for mcount-based tracing (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "instrument_xray",
                    setter: dbopts::instrument_xray,
                    type_desc: desc::parse_instrument_xray,
                    desc: "insert function instrument code for XRay-based tracing (default: no)
         Optional extra settings:
         `=always`
         `=never`
         `=ignore-loops`
         `=instruction-threshold=N`
         `=skip-entry`
         `=skip-exit`
         Multiple options can be combined with commas.",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "internal_testing_features",
                    setter: dbopts::internal_testing_features,
                    type_desc: desc::parse_bool,
                    desc: "allow certain internal language features to be enabled that help exercise & test the compiler",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "large_data_threshold",
                    setter: dbopts::large_data_threshold,
                    type_desc: desc::parse_opt_number,
                    desc: "set the threshold for objects to be stored in a \"large data\" section \
         (only effective with -Ccode-model=medium, default: 65536)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "layout_seed",
                    setter: dbopts::layout_seed,
                    type_desc: desc::parse_opt_number,
                    desc: "seed layout randomization",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "link_directives",
                    setter: dbopts::link_directives,
                    type_desc: desc::parse_bool,
                    desc: "honor #[link] directives in the compiled crate (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "link_native_libraries",
                    setter: dbopts::link_native_libraries,
                    type_desc: desc::parse_bool,
                    desc: "link native libraries in the linker invocation (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "link_only",
                    setter: dbopts::link_only,
                    type_desc: desc::parse_bool,
                    desc: "link the `.rlink` file generated by `-Z no-link` (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "lint_llvm_ir",
                    setter: dbopts::lint_llvm_ir,
                    type_desc: desc::parse_bool,
                    desc: "lint LLVM IR (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "lint_mir",
                    setter: dbopts::lint_mir,
                    type_desc: desc::parse_bool,
                    desc: "lint MIR before and after each transformation",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "llvm_module_flag",
                    setter: dbopts::llvm_module_flag,
                    type_desc: desc::parse_llvm_module_flag,
                    desc: "a list of module flags to pass to LLVM (space separated)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "llvm_plugins",
                    setter: dbopts::llvm_plugins,
                    type_desc: desc::parse_list,
                    desc: "a list LLVM plugins to enable (space separated)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "llvm_target_feature",
                    setter: dbopts::llvm_target_feature,
                    type_desc: desc::parse_target_feature,
                    desc: "enable/disable LLVM-level target features. \
        This feature is unsafe and can cause ABI issues and compiler crashes, \
        because LLVM does not support all target feature combinations.",
                    removed: None,
                    tmod: None.or(Some(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::LlvmTargetFeature))),
                    mitigation: None,
                },
                OptionDesc {
                    name: "llvm_time_trace",
                    setter: dbopts::llvm_time_trace,
                    type_desc: desc::parse_bool,
                    desc: "generate JSON tracing data file from LLVM data (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "llvm_writable",
                    setter: dbopts::llvm_writable,
                    type_desc: desc::parse_bool,
                    desc: "emit the LLVM writable attribute for mutable reference arguments (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "location_detail",
                    setter: dbopts::location_detail,
                    type_desc: desc::parse_location_detail,
                    desc: "what location details should be tracked when using caller_location, either \
        `none`, or a comma separated list of location details, for which \
        valid options are `file`, `line`, and `column` (default: `file,line,column`)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "ls",
                    setter: dbopts::ls,
                    type_desc: desc::parse_list,
                    desc: "decode and print various parts of the crate metadata for a library crate \
        (space separated)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "macro_backtrace",
                    setter: dbopts::macro_backtrace,
                    type_desc: desc::parse_bool,
                    desc: "show macro backtraces (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "macro_stats",
                    setter: dbopts::macro_stats,
                    type_desc: desc::parse_bool,
                    desc: "print some statistics about macro expansions (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "maximal_hir_to_mir_coverage",
                    setter: dbopts::maximal_hir_to_mir_coverage,
                    type_desc: desc::parse_bool,
                    desc: "save as much information as possible about the correspondence between MIR and HIR \
        as source scopes (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "merge_functions",
                    setter: dbopts::merge_functions,
                    type_desc: desc::parse_merge_functions,
                    desc: "control the operation of the MergeFunctions LLVM pass, taking \
        the same values as the target option of the same name",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "meta_stats",
                    setter: dbopts::meta_stats,
                    type_desc: desc::parse_bool,
                    desc: "gather metadata statistics (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "metadata_crate_hash",
                    setter: dbopts::metadata_crate_hash,
                    type_desc: desc::parse_bool,
                    desc: "compute the crate hash (SVH) from the encoded crate metadata; set to `no` to \
         revert to computing it from the HIR (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "metrics_dir",
                    setter: dbopts::metrics_dir,
                    type_desc: desc::parse_opt_pathbuf,
                    desc: "the directory metrics emitted by rustc are dumped into (implicitly enables default set of metrics)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "min_function_alignment",
                    setter: dbopts::min_function_alignment,
                    type_desc: desc::parse_align,
                    desc: "align all functions to at least this many bytes. Must be a power of 2",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "min_recursion_limit",
                    setter: dbopts::min_recursion_limit,
                    type_desc: desc::parse_opt_number,
                    desc: "set a minimum recursion limit (final limit = max(this, recursion_limit_from_crate))",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "mir_enable_passes",
                    setter: dbopts::mir_enable_passes,
                    type_desc: desc::parse_list_with_polarity,
                    desc: "use like `-Zmir-enable-passes=+DestinationPropagation,-InstSimplify`. Forces the \
        specified passes to be enabled, overriding all other checks. In particular, this will \
        enable unsound (known-buggy and hence usually disabled) passes without further warning! \
        Passes that are not specified are enabled or disabled by other flags as usual.",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "mir_include_spans",
                    setter: dbopts::mir_include_spans,
                    type_desc: desc::parse_mir_include_spans,
                    desc: "include extra comments in mir pretty printing, like line numbers and statement indices, \
         details about types, etc. (boolean for all passes, 'nll' to enable in NLL MIR only, default: 'nll')",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "mir_move_elimination",
                    setter: dbopts::mir_move_elimination,
                    type_desc: desc::parse_bool,
                    desc: "enable the experimental MIR semantics for the move elimination optimization (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "mir_opt_bisect_limit",
                    setter: dbopts::mir_opt_bisect_limit,
                    type_desc: desc::parse_opt_number,
                    desc: "limit the number of MIR optimization pass executions (global across all bodies). \
        Pass executions after this limit are skipped and reported. (default: no limit)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "mir_opt_level",
                    setter: dbopts::mir_opt_level,
                    type_desc: desc::parse_opt_number,
                    desc: "MIR optimization level (0-4; default: 1 in non optimized builds and 2 in optimized builds)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "mir_preserve_ub",
                    setter: dbopts::mir_preserve_ub,
                    type_desc: desc::parse_bool,
                    desc: "keep place mention statements and reads in trivial SwitchInt terminators, which are interpreted \
        e.g., by miri; implies -Zmir-opt-level=0 (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "mir_strip_debuginfo",
                    setter: dbopts::mir_strip_debuginfo,
                    type_desc: desc::parse_mir_strip_debuginfo,
                    desc: "Whether to remove some of the MIR debug info from methods.  Default: None",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "move_size_limit",
                    setter: dbopts::move_size_limit,
                    type_desc: desc::parse_opt_number,
                    desc: "the size at which the `large_assignments` lint starts to be emitted",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "namespaced_crates",
                    setter: dbopts::namespaced_crates,
                    type_desc: desc::parse_bool,
                    desc: "allow crates to be namespaced by other crates (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "next_solver",
                    setter: dbopts::next_solver,
                    type_desc: desc::parse_next_solver_config,
                    desc: "enable and configure the next generation trait solver used by rustc",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "next_solver_overflow_fcw_limit",
                    setter: dbopts::next_solver_overflow_fcw_limit,
                    type_desc: desc::parse_opt_number,
                    desc: "set the depth limit for displaying the overflow FCW chain \
        (final limit = min(this, recursion_limit_from_crate * 2))",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "nll_facts",
                    setter: dbopts::nll_facts,
                    type_desc: desc::parse_bool,
                    desc: "dump facts from NLL analysis into side files (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "nll_facts_dir",
                    setter: dbopts::nll_facts_dir,
                    type_desc: desc::parse_string,
                    desc: "the directory the NLL facts are dumped into (default: `nll-facts`)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_analysis",
                    setter: dbopts::no_analysis,
                    type_desc: desc::parse_no_value,
                    desc: "parse and expand the source, but run no analysis",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_codegen",
                    setter: dbopts::no_codegen,
                    type_desc: desc::parse_no_value,
                    desc: "run all passes except codegen; no output",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_generate_arange_section",
                    setter: dbopts::no_generate_arange_section,
                    type_desc: desc::parse_no_value,
                    desc: "omit DWARF address ranges that give faster lookups",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_implied_bounds_compat",
                    setter: dbopts::no_implied_bounds_compat,
                    type_desc: desc::parse_bool,
                    desc: "disable the compatibility version of the `implied_bounds_ty` query",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_leak_check",
                    setter: dbopts::no_leak_check,
                    type_desc: desc::parse_no_value,
                    desc: "disable the 'leak check' for subtyping; unsound, but useful for tests",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_link",
                    setter: dbopts::no_link,
                    type_desc: desc::parse_no_value,
                    desc: "compile without linking",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_parallel_backend",
                    setter: dbopts::no_parallel_backend,
                    type_desc: desc::parse_no_value,
                    desc: "use `--jobs-backend=1` instead",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_profiler_runtime",
                    setter: dbopts::no_profiler_runtime,
                    type_desc: desc::parse_no_value,
                    desc: "prevent automatic injection of the profiler_builtins crate",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_steal_thir",
                    setter: dbopts::no_steal_thir,
                    type_desc: desc::parse_bool,
                    desc: "don't steal the THIR when we're done with it; useful for rustc drivers (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_trait_vptr",
                    setter: dbopts::no_trait_vptr,
                    type_desc: desc::parse_no_value,
                    desc: "disable generation of trait vptr in vtable for upcasting",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "no_unique_section_names",
                    setter: dbopts::no_unique_section_names,
                    type_desc: desc::parse_bool,
                    desc: "do not use unique names for text and data sections when -Z function-sections is used",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "normalize_docs",
                    setter: dbopts::normalize_docs,
                    type_desc: desc::parse_bool,
                    desc: "normalize associated items in rustdoc when generating documentation",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "offload",
                    setter: dbopts::offload,
                    type_desc: desc::parse_offload,
                    desc: "a list of offload flags to enable
        Mandatory setting:
        `=Enable`
        Currently the only option available",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "on_broken_pipe",
                    setter: dbopts::on_broken_pipe,
                    type_desc: desc::parse_on_broken_pipe,
                    desc: "behavior of std::io::ErrorKind::BrokenPipe (SIGPIPE)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "osx_rpath_install_name",
                    setter: dbopts::osx_rpath_install_name,
                    type_desc: desc::parse_bool,
                    desc: "pass `-install_name @rpath/...` to the macOS linker (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "packed_bundled_libs",
                    setter: dbopts::packed_bundled_libs,
                    type_desc: desc::parse_bool,
                    desc: "change rlib format to store native libraries as archives",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "packed_stack",
                    setter: dbopts::packed_stack,
                    type_desc: desc::parse_bool,
                    desc: "use packed stack frames (s390x only) (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "panic_abort_tests",
                    setter: dbopts::panic_abort_tests,
                    type_desc: desc::parse_bool,
                    desc: "support compiling tests with panic=abort (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "panic_in_drop",
                    setter: dbopts::panic_in_drop,
                    type_desc: desc::parse_panic_strategy,
                    desc: "panic strategy for panics in drops",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "parse_crate_root_only",
                    setter: dbopts::parse_crate_root_only,
                    type_desc: desc::parse_bool,
                    desc: "parse the crate root file only; do not parse other files, compile, assemble, or link \
        (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "patchable_function_entry",
                    setter: dbopts::patchable_function_entry,
                    type_desc: desc::parse_patchable_function_entry,
                    desc: "nop padding at function entry",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "plt",
                    setter: dbopts::plt,
                    type_desc: desc::parse_opt_bool,
                    desc: "whether to use the PLT when calling into shared libraries;
        only has effect for PIC code on systems with ELF binaries
        (default: PLT is disabled if full relro is enabled on x86_64)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "pointer_authentication",
                    setter: dbopts::pointer_authentication,
                    type_desc: desc::parse_pointer_authentication_list_with_polarity,
                    desc: "A comma-separated list of pointer authentication options, each prefixed with `+` (enable) or `-` (disable). Available options:
        `aarch64-jump-table-hardening` - enable hardened lowering for jump-table dispatch
        `auth-traps` - trap immediately on pointer authentication failure
        `calls` - enable signing and authentication of all indirect calls
        `elf-got` - enable authentication of pointers from GOT (ELF only)
        `function-pointer-type-discrimination` - enable type discrimination on C function pointers
        `indirect-gotos` - enable signing and authentication of indirect goto targets
        `init-fini` - enable signing of function pointers in init/fini arrays
        `init-fini-address-discrimination` - enable address discrimination in init/fini arrays
        `intrinsics` - pointer authentication intrinsics
        `return-addresses` - enable signing and authentication of return addresses
        `typeinfo-vt-ptr-discrimination - incorporate type and address discrimination in authenticated vtable pointers for std::type_info
        `vt-ptr-addr-discrimination - incorporate address discrimination in authenticated vtable pointers
        `vt-ptr-type-discrimination - incorporate type discrimination in authenticated vtable pointers
        Example: `-Zpointer-authentication=+calls,-init-fini`.",
                    removed: None,
                    tmod: None.or(Some(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::PointerAuthentication))),
                    mitigation: None,
                },
                OptionDesc {
                    name: "polonius",
                    setter: dbopts::polonius,
                    type_desc: desc::parse_polonius,
                    desc: POLONIUS_HELP,
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "pre_link_arg",
                    setter: dbopts::pre_link_arg,
                    type_desc: desc::parse_string_push,
                    desc: "a single extra argument to prepend the linker invocation (can be used several times)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "pre_link_args",
                    setter: dbopts::pre_link_args,
                    type_desc: desc::parse_list,
                    desc: "extra arguments to prepend to the linker invocation (space separated)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "precise_enum_drop_elaboration",
                    setter: dbopts::precise_enum_drop_elaboration,
                    type_desc: desc::parse_bool,
                    desc: "use a more precise version of drop elaboration for matches on enums (default: yes). \
        This results in better codegen, but has caused miscompilations on some tier 2 platforms. \
        See #77382 and #74551.",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "print_codegen_stats",
                    setter: dbopts::print_codegen_stats,
                    type_desc: desc::parse_bool,
                    desc: "print codegen statistics (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "print_codegen_stats_json",
                    setter: dbopts::print_codegen_stats_json,
                    type_desc: desc::parse_opt_string,
                    desc: "print codegen statistics in JSON to a file (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "print_llvm_passes",
                    setter: dbopts::print_llvm_passes,
                    type_desc: desc::parse_bool,
                    desc: "print the LLVM optimization passes being run (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "print_mono_items",
                    setter: dbopts::print_mono_items,
                    type_desc: desc::parse_bool,
                    desc: "print the result of the monomorphization collection pass (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "print_type_sizes",
                    setter: dbopts::print_type_sizes,
                    type_desc: desc::parse_bool,
                    desc: "print layout information for each type encountered (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "proc_macro_backtrace",
                    setter: dbopts::proc_macro_backtrace,
                    type_desc: desc::parse_bool,
                    desc: "show backtraces for panics during proc-macro execution (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "proc_macro_execution_strategy",
                    setter: dbopts::proc_macro_execution_strategy,
                    type_desc: desc::parse_proc_macro_execution_strategy,
                    desc: "how to run proc-macro code (default: same-thread)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "profile_closures",
                    setter: dbopts::profile_closures,
                    type_desc: desc::parse_no_value,
                    desc: "profile size of closures",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "profiler_runtime",
                    setter: dbopts::profiler_runtime,
                    type_desc: desc::parse_string,
                    desc: "name of the profiler runtime crate to automatically inject (default: `profiler_builtins`)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "query_dep_graph",
                    setter: dbopts::query_dep_graph,
                    type_desc: desc::parse_bool,
                    desc: "enable queries of the dependency graph for regression testing (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "randomize_layout",
                    setter: dbopts::randomize_layout,
                    type_desc: desc::parse_bool,
                    desc: "randomize the layout of types (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "reg_struct_return",
                    setter: dbopts::reg_struct_return,
                    type_desc: desc::parse_bool,
                    desc: "On x86-32 targets, it overrides the default ABI to return small structs in registers.
        It is UNSOUND to link together crates that use different values for this flag!",
                    removed: None,
                    tmod: None.or(Some(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::RegStructReturn))),
                    mitigation: None,
                },
                OptionDesc {
                    name: "regparm",
                    setter: dbopts::regparm,
                    type_desc: desc::parse_opt_number,
                    desc: "On x86-32 targets, setting this to N causes the compiler to pass N arguments \
        in registers EAX, EDX, and ECX instead of on the stack for\
        \"C\", \"cdecl\", and \"stdcall\" fn.\
        It is UNSOUND to link together crates that use different values for this flag!",
                    removed: None,
                    tmod: None.or(Some(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::Regparm))),
                    mitigation: None,
                },
                OptionDesc {
                    name: "relax_elf_relocations",
                    setter: dbopts::relax_elf_relocations,
                    type_desc: desc::parse_opt_bool,
                    desc: "whether ELF relocations can be relaxed (x86 only)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "remap_cwd_prefix",
                    setter: dbopts::remap_cwd_prefix,
                    type_desc: desc::parse_opt_pathbuf,
                    desc: "remap paths under the current working directory to this path prefix",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "remark_dir",
                    setter: dbopts::remark_dir,
                    type_desc: desc::parse_opt_pathbuf,
                    desc: "directory into which to write optimization remarks (if not specified, they will be \
written to standard error output)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "renormalize_rigid_aliases",
                    setter: dbopts::renormalize_rigid_aliases,
                    type_desc: desc::parse_bool,
                    desc: "do not skip rigid aliases in normalization for internal debugging",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "retpoline",
                    setter: dbopts::retpoline,
                    type_desc: desc::parse_bool,
                    desc: "enables retpoline-indirect-branches and retpoline-indirect-calls target features (default: no)",
                    removed: None,
                    tmod: None.or(Some(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::Retpoline))),
                    mitigation: None,
                },
                OptionDesc {
                    name: "retpoline_external_thunk",
                    setter: dbopts::retpoline_external_thunk,
                    type_desc: desc::parse_bool,
                    desc: "enables retpoline-external-thunk, retpoline-indirect-branches and retpoline-indirect-calls \
        target features (default: no)",
                    removed: None,
                    tmod: None.or(Some(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::RetpolineExternalThunk))),
                    mitigation: None,
                },
                OptionDesc {
                    name: "sanitizer",
                    setter: dbopts::sanitizer,
                    type_desc: desc::parse_sanitizers,
                    desc: "use a sanitizer",
                    removed: None,
                    tmod: None.or(Some(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::Sanitizer))),
                    mitigation: None,
                },
                OptionDesc {
                    name: "sanitizer_ignorelist",
                    setter: dbopts::sanitizer_ignorelist,
                    type_desc: desc::parse_list,
                    desc: "list of files providing ignorelists for sanitizers",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "sanitizer_cfi_canonical_jump_tables",
                    setter: dbopts::sanitizer_cfi_canonical_jump_tables,
                    type_desc: desc::parse_opt_bool,
                    desc: "enable canonical jump tables (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "sanitizer_cfi_generalize_pointers",
                    setter: dbopts::sanitizer_cfi_generalize_pointers,
                    type_desc: desc::parse_opt_bool,
                    desc: "enable generalizing pointer types (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "sanitizer_cfi_normalize_integers",
                    setter: dbopts::sanitizer_cfi_normalize_integers,
                    type_desc: desc::parse_opt_bool,
                    desc: "enable normalizing integer types (default: no)",
                    removed: None,
                    tmod: None.or(Some(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::SanitizerCfiNormalizeIntegers))),
                    mitigation: None,
                },
                OptionDesc {
                    name: "sanitizer_cfi_diag",
                    setter: dbopts::sanitizer_cfi_diag,
                    type_desc: desc::parse_opt_bool,
                    desc: "enable CFI diagnostics (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "sanitizer_cfi_recover",
                    setter: dbopts::sanitizer_cfi_recover,
                    type_desc: desc::parse_opt_bool,
                    desc: "enable CFI recovery (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "sanitizer_cfi_minimal_runtime",
                    setter: dbopts::sanitizer_cfi_minimal_runtime,
                    type_desc: desc::parse_opt_bool,
                    desc: "enable minimal UBSan runtime for CFI (default: no)",
                    removed: None,
                    tmod: None.or(Some(OptionsTargetModifiers::UnstableOptions(UnstableOptionsTargetModifiers::SanitizerCfiMinimalRuntime))),
                    mitigation: None,
                },
                OptionDesc {
                    name: "sanitizer_dataflow_abilist",
                    setter: dbopts::sanitizer_dataflow_abilist,
                    type_desc: desc::parse_comma_list,
                    desc: "additional ABI list files that control how shadow parameters are passed (comma separated)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "sanitizer_kcfi_arity",
                    setter: dbopts::sanitizer_kcfi_arity,
                    type_desc: desc::parse_opt_bool,
                    desc: "enable KCFI arity indicator (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "sanitizer_memory_track_origins",
                    setter: dbopts::sanitizer_memory_track_origins,
                    type_desc: desc::parse_sanitizer_memory_track_origins,
                    desc: "enable origins tracking in MemorySanitizer",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "sanitizer_recover",
                    setter: dbopts::sanitizer_recover,
                    type_desc: desc::parse_sanitizers,
                    desc: "enable recovery for selected sanitizers",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "self_profile",
                    setter: dbopts::self_profile,
                    type_desc: desc::parse_switch_with_opt_path,
                    desc: "run the self profiler and output the raw event data",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "self_profile_counter",
                    setter: dbopts::self_profile_counter,
                    type_desc: desc::parse_string,
                    desc: "counter used by the self profiler (default: `wall-time`), one of:
        `wall-time` (monotonic clock, i.e. `std::time::Instant`)
        `instructions:u` (retired instructions, userspace-only)
        `instructions-minus-irqs:u` (subtracting hardware interrupt counts for extra accuracy)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "self_profile_events",
                    setter: dbopts::self_profile_events,
                    type_desc: desc::parse_opt_comma_list,
                    desc: "specify the events recorded by the self profiler;
        for example: `-Z self-profile-events=default,query-keys`
        all option groups: none, all, default, args
          `default` contains: generic-activity, query-provider, query-cache-hit-count, \
                            query-blocked, incr-cache-load, incr-result-hashing, artifact-sizes
             `args` contains: query-keys, function-args
        remaining (ungrouped) options: query-cache-hit, llvm",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "share_generics",
                    setter: dbopts::share_generics,
                    type_desc: desc::parse_opt_bool,
                    desc: "make the current crate share its generic instantiations",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "shell_argfiles",
                    setter: dbopts::shell_argfiles,
                    type_desc: desc::parse_bool,
                    desc: "allow argument files to be specified with POSIX \"shell-style\" argument quoting",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "simulate_remapped_rust_src_base",
                    setter: dbopts::simulate_remapped_rust_src_base,
                    type_desc: desc::parse_opt_pathbuf,
                    desc: "simulate the effect of remap-debuginfo = true at bootstrapping by remapping path \
        to rust's source base directory. only meant for testing purposes",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "small_data_threshold",
                    setter: dbopts::small_data_threshold,
                    type_desc: desc::parse_opt_number,
                    desc: "Set the threshold for objects to be stored in a \"small data\" section",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "span_debug",
                    setter: dbopts::span_debug,
                    type_desc: desc::parse_bool,
                    desc: "forward proc_macro::Span's `Debug` impl to `Span`",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "span_free_formats",
                    setter: dbopts::span_free_formats,
                    type_desc: desc::parse_bool,
                    desc: "exclude spans when debug-printing compiler state (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "split_dwarf_inlining",
                    setter: dbopts::split_dwarf_inlining,
                    type_desc: desc::parse_bool,
                    desc: "provide minimal debug info in the object/executable to facilitate online \
         symbolication/stack traces in the absence of .dwo/.dwp files when using Split DWARF",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "split_dwarf_kind",
                    setter: dbopts::split_dwarf_kind,
                    type_desc: desc::parse_split_dwarf_kind,
                    desc: "split dwarf variant (only if -Csplit-debuginfo is enabled and on relevant platform)
        (default: `split`)

        `split`: sections which do not require relocation are written into a DWARF object (`.dwo`)
                 file which is ignored by the linker
        `single`: sections which do not require relocation are written into object file but ignored
                  by the linker",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "split_dwarf_out_dir",
                    setter: dbopts::split_dwarf_out_dir,
                    type_desc: desc::parse_opt_pathbuf,
                    desc: "location for writing split DWARF objects (`.dwo`) if enabled",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "split_lto_unit",
                    setter: dbopts::split_lto_unit,
                    type_desc: desc::parse_opt_bool,
                    desc: "enable LTO unit splitting (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "src_hash_algorithm",
                    setter: dbopts::src_hash_algorithm,
                    type_desc: desc::parse_src_file_hash,
                    desc: "hash algorithm of source files in debug info (`md5`, `sha1`, or `sha256`)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "stack_protector",
                    setter: dbopts::stack_protector,
                    type_desc: desc::parse_stack_protector,
                    desc: "control stack smash protection strategy (`rustc --print stack-protector-strategies` for details)",
                    removed: None,
                    tmod: None,
                    mitigation: None.or(Some(mitigation_coverage::DeniedPartialMitigationKind::StackProtector)),
                },
                OptionDesc {
                    name: "staticlib_allow_rdylib_deps",
                    setter: dbopts::staticlib_allow_rdylib_deps,
                    type_desc: desc::parse_bool,
                    desc: "allow staticlibs to have rust dylib dependencies",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "staticlib_hide_internal_symbols",
                    setter: dbopts::staticlib_hide_internal_symbols,
                    type_desc: desc::parse_bool,
                    desc: "hide non-exported Rust symbols when building staticlibs by setting STV_HIDDEN",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "staticlib_rename_internal_symbols",
                    setter: dbopts::staticlib_rename_internal_symbols,
                    type_desc: desc::parse_bool,
                    desc: "rename non-exported Rust symbols when building staticlibs to avoid conflicts",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "staticlib_prefer_dynamic",
                    setter: dbopts::staticlib_prefer_dynamic,
                    type_desc: desc::parse_bool,
                    desc: "prefer dynamic linking to static linking for staticlibs (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "strict_init_checks",
                    setter: dbopts::strict_init_checks,
                    type_desc: desc::parse_bool,
                    desc: "control if mem::uninitialized and mem::zeroed panic on more UB",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "teach",
                    setter: dbopts::teach,
                    type_desc: desc::parse_bool,
                    desc: "show extended diagnostic help (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "temps_dir",
                    setter: dbopts::temps_dir,
                    type_desc: desc::parse_opt_string,
                    desc: "the directory the intermediate files are written to",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "terminal_urls",
                    setter: dbopts::terminal_urls,
                    type_desc: desc::parse_terminal_url,
                    desc: "use the OSC 8 hyperlink terminal specification to print hyperlinks in the compiler output",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "thinlto",
                    setter: dbopts::thinlto,
                    type_desc: desc::parse_opt_bool,
                    desc: "enable ThinLTO when possible",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "threads",
                    setter: dbopts::threads,
                    type_desc: desc::parse_opt_string,
                    desc: "use `--jobs-frontend` instead",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "time_llvm_passes",
                    setter: dbopts::time_llvm_passes,
                    type_desc: desc::parse_bool,
                    desc: "measure time of each LLVM pass (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "time_passes",
                    setter: dbopts::time_passes,
                    type_desc: desc::parse_bool,
                    desc: "measure time of each rustc pass (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "time_passes_format",
                    setter: dbopts::time_passes_format,
                    type_desc: desc::parse_time_passes_format,
                    desc: "the format to use for -Z time-passes (`text` (default) or `json`)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "tiny_const_eval_limit",
                    setter: dbopts::tiny_const_eval_limit,
                    type_desc: desc::parse_bool,
                    desc: "sets a tiny, non-configurable limit for const eval; useful for compiler tests",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "tls_model",
                    setter: dbopts::tls_model,
                    type_desc: desc::parse_tls_model,
                    desc: "choose the TLS model to use (`rustc --print tls-models` for details)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "trace_macros",
                    setter: dbopts::trace_macros,
                    type_desc: desc::parse_bool,
                    desc: "for every macro invocation, print its name and arguments (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "track_diagnostics",
                    setter: dbopts::track_diagnostics,
                    type_desc: desc::parse_bool,
                    desc: "tracks where in rustc a diagnostic was emitted",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "translate_remapped_path_to_local_path",
                    setter: dbopts::translate_remapped_path_to_local_path,
                    type_desc: desc::parse_bool,
                    desc: "translate remapped paths into local paths when possible (default: yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "trap_unreachable",
                    setter: dbopts::trap_unreachable,
                    type_desc: desc::parse_opt_bool,
                    desc: "generate trap instructions for unreachable intrinsics (default: use target setting, usually yes)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "treat_err_as_bug",
                    setter: dbopts::treat_err_as_bug,
                    type_desc: desc::parse_treat_err_as_bug,
                    desc: "treat the `val`th error that occurs as bug (default if not specified: 0 - don't treat errors as bugs. \
        default if specified without a value: 1 - treat the first error as bug)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "trim_diagnostic_paths",
                    setter: dbopts::trim_diagnostic_paths,
                    type_desc: desc::parse_bool,
                    desc: "in diagnostics, use heuristics to shorten paths referring to items",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "tune_cpu",
                    setter: dbopts::tune_cpu,
                    type_desc: desc::parse_opt_string,
                    desc: "select processor to schedule for (`rustc --print target-cpus` for details)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "ub_checks",
                    setter: dbopts::ub_checks,
                    type_desc: desc::parse_opt_bool,
                    desc: "emit runtime checks for Undefined Behavior (default: -Cdebug-assertions)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "ui_testing",
                    setter: dbopts::ui_testing,
                    type_desc: desc::parse_bool,
                    desc: "emit compiler diagnostics in a form suitable for UI testing (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "uninit_const_chunk_threshold",
                    setter: dbopts::uninit_const_chunk_threshold,
                    type_desc: desc::parse_number,
                    desc: "allow generating const initializers with mixed init/uninit chunks, \
        and set the maximum number of chunks for which this is allowed (default: 16)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "unleash_the_miri_inside_of_you",
                    setter: dbopts::unleash_the_miri_inside_of_you,
                    type_desc: desc::parse_bool,
                    desc: "take the brakes off const evaluation. NOTE: this is unsound (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "unpretty",
                    setter: dbopts::unpretty,
                    type_desc: desc::parse_unpretty,
                    desc: "present the input source, unstable (and less-pretty) variants;
        `normal`,
        `expanded`, `expanded,identified`,
        `expanded,hygiene` (with internal representations),
        `ast-tree` (raw AST before expansion),
        `ast-tree,expanded` (raw AST after expansion),
        `hir` (the HIR), `hir,identified`,
        `hir,typed` (HIR with types for each node),
        `hir-tree` (dump the raw HIR),
        `thir-tree`, `thir-flat`,
        `mir` (the MIR), or `mir-cfg` (graphviz formatted MIR)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "unsound_mir_opts",
                    setter: dbopts::unsound_mir_opts,
                    type_desc: desc::parse_bool,
                    desc: "enable unsound and buggy MIR optimizations (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "unstable_options",
                    setter: dbopts::unstable_options,
                    type_desc: desc::parse_no_value,
                    desc: "adds unstable command line options to rustc interface (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "use_ctors_section",
                    setter: dbopts::use_ctors_section,
                    type_desc: desc::parse_opt_bool,
                    desc: "use legacy .ctors section for initializers rather than .init_array",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "use_sync_unwind",
                    setter: dbopts::use_sync_unwind,
                    type_desc: desc::parse_opt_bool,
                    desc: "Generate sync unwind tables instead of async unwind tables (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "validate_mir",
                    setter: dbopts::validate_mir,
                    type_desc: desc::parse_bool,
                    desc: "validate MIR after each transformation",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "verbose_asm",
                    setter: dbopts::verbose_asm,
                    type_desc: desc::parse_bool,
                    desc: "add descriptive comments from LLVM to the assembly (may change behavior) (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "verbose_internals",
                    setter: dbopts::verbose_internals,
                    type_desc: desc::parse_bool,
                    desc: "in general, enable more debug printouts (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "verify_llvm_ir",
                    setter: dbopts::verify_llvm_ir,
                    type_desc: desc::parse_bool,
                    desc: "verify LLVM IR (default: no)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "virtual_function_elimination",
                    setter: dbopts::virtual_function_elimination,
                    type_desc: desc::parse_bool,
                    desc: "enables dead virtual function elimination optimization. \
        Requires `-Clto[=[fat,yes]]`",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "wasi_exec_model",
                    setter: dbopts::wasi_exec_model,
                    type_desc: desc::parse_wasi_exec_model,
                    desc: "whether to build a wasi command or reactor",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "wasm_c_abi",
                    setter: dbopts::wasm_c_abi,
                    type_desc: desc::parse_wasm_c_abi,
                    desc: "use spec-compliant C ABI for `wasm32-unknown-unknown` (deprecated, always enabled)",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "wasm_proc_macros",
                    setter: dbopts::wasm_proc_macros,
                    type_desc: desc::parse_bool,
                    desc: "enable support for compiling and loading wasm proc macros",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                },
                OptionDesc {
                    name: "write_long_types_to_disk",
                    setter: dbopts::write_long_types_to_disk,
                    type_desc: desc::parse_bool,
                    desc: "whether long type names should be written to files instead of being printed in errors",
                    removed: None,
                    tmod: None,
                    mitigation: None,
                }];
mod dbopts {
    pub(super) fn allow_features(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_comma_list(&mut cg.allow_features, v)
    }
    pub(super) fn allow_partial_mitigations(_cg: &mut super::UnstableOptions,
        collected: &mut super::CollectedOptions, v: Option<&str>,
        index: usize) -> bool {
        collected.mitigations.handle_allowdeny_mitigation_option(v, index,
            true)
    }
    pub(super) fn always_encode_mir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.always_encode_mir, v)
    }
    pub(super) fn annotate_moves(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_annotate_moves(&mut cg.annotate_moves, v)
    }
    pub(super) fn assert_incr_state(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_assert_incr_state(&mut cg.assert_incr_state, v)
    }
    pub(super) fn assume_incomplete_release(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.assume_incomplete_release, v)
    }
    pub(super) fn assumptions_on_binders(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.assumptions_on_binders, v)
    }
    pub(super) fn async_panic(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.async_panic, v)
    }
    pub(super) fn autodiff(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_autodiff(&mut cg.autodiff, v)
    }
    pub(super) fn autodiff_post_passes(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_string(&mut cg.autodiff_post_passes, v)
    }
    pub(super) fn binary_dep_depinfo(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.binary_dep_depinfo, v)
    }
    pub(super) fn box_noalias(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.box_noalias, v)
    }
    pub(super) fn branch_protection(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_branch_protection(&mut cg.branch_protection, v)
    }
    pub(super) fn build_sdylib_interface(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.build_sdylib_interface, v)
    }
    pub(super) fn cache_proc_macros(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.cache_proc_macros, v)
    }
    pub(super) fn cf_protection(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_cfprotection(&mut cg.cf_protection, v)
    }
    pub(super) fn check_cfg_all_expected(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.check_cfg_all_expected, v)
    }
    pub(super) fn checksum_hash_algorithm(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_cargo_src_file_hash(&mut cg.checksum_hash_algorithm,
            v)
    }
    pub(super) fn codegen_backend(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_string(&mut cg.codegen_backend, v)
    }
    pub(super) fn codegen_emit_retag(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_codegen_retag_options(&mut cg.codegen_emit_retag,
            v)
    }
    pub(super) fn codegen_source_order(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.codegen_source_order, v)
    }
    pub(super) fn contract_checks(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.contract_checks, v)
    }
    pub(super) fn coverage_options(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_coverage_options(&mut cg.coverage_options, v)
    }
    pub(super) fn crate_attr(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_string_push(&mut cg.crate_attr, v)
    }
    pub(super) fn cross_crate_inline_threshold(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_inlining_threshold(&mut cg.cross_crate_inline_threshold,
            v)
    }
    pub(super) fn debug_info_type_line_numbers(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.debug_info_type_line_numbers, v)
    }
    pub(super) fn debuginfo_compression(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_debuginfo_compression(&mut cg.debuginfo_compression,
            v)
    }
    pub(super) fn debuginfo_for_profiling(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.debuginfo_for_profiling, v)
    }
    pub(super) fn deduplicate_diagnostics(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.deduplicate_diagnostics, v)
    }
    pub(super) fn default_visibility(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_symbol_visibility(&mut cg.default_visibility,
            v)
    }
    pub(super) fn deny_partial_mitigations(_cg: &mut super::UnstableOptions,
        collected: &mut super::CollectedOptions, v: Option<&str>,
        index: usize) -> bool {
        collected.mitigations.handle_allowdeny_mitigation_option(v, index,
            false)
    }
    pub(super) fn dep_info_omit_d_target(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.dep_info_omit_d_target, v)
    }
    pub(super) fn direct_access_external_data(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.direct_access_external_data, v)
    }
    pub(super) fn disable_fast_paths(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.disable_fast_paths, v)
    }
    pub(super) fn disable_incr_comp_backend_caching(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.disable_incr_comp_backend_caching, v)
    }
    pub(super) fn disable_param_env_normalization_hack(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.disable_param_env_normalization_hack,
            v)
    }
    pub(super) fn dual_proc_macros(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.dual_proc_macros, v)
    }
    pub(super) fn dump_dep_graph(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.dump_dep_graph, v)
    }
    pub(super) fn dump_mir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_string(&mut cg.dump_mir, v)
    }
    pub(super) fn dump_mir_dataflow(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.dump_mir_dataflow, v)
    }
    pub(super) fn dump_mir_dir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_string(&mut cg.dump_mir_dir, v)
    }
    pub(super) fn dump_mir_exclude_alloc_bytes(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.dump_mir_exclude_alloc_bytes, v)
    }
    pub(super) fn dump_mir_exclude_pass_number(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.dump_mir_exclude_pass_number, v)
    }
    pub(super) fn dump_mir_graphviz(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.dump_mir_graphviz, v)
    }
    pub(super) fn dump_mono_stats(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_switch_with_opt_path(&mut cg.dump_mono_stats, v)
    }
    pub(super) fn dump_mono_stats_format(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_dump_mono_stats(&mut cg.dump_mono_stats_format, v)
    }
    pub(super) fn dwarf_version(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.dwarf_version, v)
    }
    pub(super) fn dylib_lto(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.dylib_lto, v)
    }
    pub(super) fn eagerly_emit_delayed_bugs(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.eagerly_emit_delayed_bugs, v)
    }
    pub(super) fn ehcont_guard(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.ehcont_guard, v)
    }
    pub(super) fn embed_metadata(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.embed_metadata, v)
    }
    pub(super) fn embed_source(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.embed_source, v)
    }
    pub(super) fn emit_stack_sizes(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.emit_stack_sizes, v)
    }
    pub(super) fn enforce_type_length_limit(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.enforce_type_length_limit, v)
    }
    pub(super) fn experimental_default_bounds(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.experimental_default_bounds, v)
    }
    pub(super) fn export_executable_symbols(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.export_executable_symbols, v)
    }
    pub(super) fn external_clangrt(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.external_clangrt, v)
    }
    pub(super) fn extra_const_ub_checks(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.extra_const_ub_checks, v)
    }
    pub(super) fn fewer_names(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.fewer_names, v)
    }
    pub(super) fn fixed_x18(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.fixed_x18, v)
    }
    pub(super) fn flatten_format_args(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.flatten_format_args, v)
    }
    pub(super) fn fmt_debug(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_fmt_debug(&mut cg.fmt_debug, v)
    }
    pub(super) fn force_intrinsic_fallback(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.force_intrinsic_fallback, v)
    }
    pub(super) fn force_unstable_if_unmarked(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.force_unstable_if_unmarked, v)
    }
    pub(super) fn function_return(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_function_return(&mut cg.function_return, v)
    }
    pub(super) fn function_sections(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.function_sections, v)
    }
    pub(super) fn future_incompat_test(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.future_incompat_test, v)
    }
    pub(super) fn graphviz_dark_mode(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.graphviz_dark_mode, v)
    }
    pub(super) fn graphviz_font(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_string(&mut cg.graphviz_font, v)
    }
    pub(super) fn has_thread_local(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.has_thread_local, v)
    }
    pub(super) fn help(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.help, v)
    }
    pub(super) fn higher_ranked_assumptions(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.higher_ranked_assumptions, v)
    }
    pub(super) fn hint_mostly_unused(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.hint_mostly_unused, v)
    }
    pub(super) fn hint_msrv(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_rust_version(&mut cg.hint_msrv, v)
    }
    pub(super) fn human_readable_cgu_names(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.human_readable_cgu_names, v)
    }
    pub(super) fn identify_regions(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.identify_regions, v)
    }
    pub(super) fn ignore_directory_in_diagnostics_source_blocks(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_string_push(&mut cg.ignore_directory_in_diagnostics_source_blocks,
            v)
    }
    pub(super) fn implicit_sysroot_deps(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.implicit_sysroot_deps, v)
    }
    pub(super) fn incremental_ignore_spans(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.incremental_ignore_spans, v)
    }
    pub(super) fn incremental_info(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.incremental_info, v)
    }
    pub(super) fn incremental_verify_ich(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.incremental_verify_ich, v)
    }
    pub(super) fn indirect_branch_cs_prefix(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.indirect_branch_cs_prefix, v)
    }
    pub(super) fn inline_llvm(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.inline_llvm, v)
    }
    pub(super) fn inline_mir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.inline_mir, v)
    }
    pub(super) fn inline_mir_forwarder_threshold(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.inline_mir_forwarder_threshold,
            v)
    }
    pub(super) fn inline_mir_hint_threshold(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.inline_mir_hint_threshold, v)
    }
    pub(super) fn inline_mir_preserve_debug(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.inline_mir_preserve_debug, v)
    }
    pub(super) fn inline_mir_threshold(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.inline_mir_threshold, v)
    }
    pub(super) fn input_stats(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.input_stats, v)
    }
    pub(super) fn instrument_mcount(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_instrument_mcount(&mut cg.instrument_mcount, v)
    }
    pub(super) fn instrument_xray(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_instrument_xray(&mut cg.instrument_xray, v)
    }
    pub(super) fn internal_testing_features(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.internal_testing_features, v)
    }
    pub(super) fn large_data_threshold(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.large_data_threshold, v)
    }
    pub(super) fn layout_seed(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.layout_seed, v)
    }
    pub(super) fn link_directives(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.link_directives, v)
    }
    pub(super) fn link_native_libraries(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.link_native_libraries, v)
    }
    pub(super) fn link_only(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.link_only, v)
    }
    pub(super) fn lint_llvm_ir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.lint_llvm_ir, v)
    }
    pub(super) fn lint_mir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.lint_mir, v)
    }
    pub(super) fn llvm_module_flag(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_llvm_module_flag(&mut cg.llvm_module_flag, v)
    }
    pub(super) fn llvm_plugins(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_list(&mut cg.llvm_plugins, v)
    }
    pub(super) fn llvm_target_feature(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_target_feature(&mut cg.llvm_target_feature, v)
    }
    pub(super) fn llvm_time_trace(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.llvm_time_trace, v)
    }
    pub(super) fn llvm_writable(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.llvm_writable, v)
    }
    pub(super) fn location_detail(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_location_detail(&mut cg.location_detail, v)
    }
    pub(super) fn ls(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_list(&mut cg.ls, v)
    }
    pub(super) fn macro_backtrace(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.macro_backtrace, v)
    }
    pub(super) fn macro_stats(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.macro_stats, v)
    }
    pub(super) fn maximal_hir_to_mir_coverage(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.maximal_hir_to_mir_coverage, v)
    }
    pub(super) fn merge_functions(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_merge_functions(&mut cg.merge_functions, v)
    }
    pub(super) fn meta_stats(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.meta_stats, v)
    }
    pub(super) fn metadata_crate_hash(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.metadata_crate_hash, v)
    }
    pub(super) fn metrics_dir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_pathbuf(&mut cg.metrics_dir, v)
    }
    pub(super) fn min_function_alignment(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_align(&mut cg.min_function_alignment, v)
    }
    pub(super) fn min_recursion_limit(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.min_recursion_limit, v)
    }
    pub(super) fn mir_enable_passes(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_list_with_polarity(&mut cg.mir_enable_passes, v)
    }
    pub(super) fn mir_include_spans(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_mir_include_spans(&mut cg.mir_include_spans, v)
    }
    pub(super) fn mir_move_elimination(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.mir_move_elimination, v)
    }
    pub(super) fn mir_opt_bisect_limit(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.mir_opt_bisect_limit, v)
    }
    pub(super) fn mir_opt_level(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.mir_opt_level, v)
    }
    pub(super) fn mir_preserve_ub(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.mir_preserve_ub, v)
    }
    pub(super) fn mir_strip_debuginfo(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_mir_strip_debuginfo(&mut cg.mir_strip_debuginfo,
            v)
    }
    pub(super) fn move_size_limit(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.move_size_limit, v)
    }
    pub(super) fn namespaced_crates(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.namespaced_crates, v)
    }
    pub(super) fn next_solver(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_next_solver_config(&mut cg.next_solver, v)
    }
    pub(super) fn next_solver_overflow_fcw_limit(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.next_solver_overflow_fcw_limit,
            v)
    }
    pub(super) fn nll_facts(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.nll_facts, v)
    }
    pub(super) fn nll_facts_dir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_string(&mut cg.nll_facts_dir, v)
    }
    pub(super) fn no_analysis(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.no_analysis, v)
    }
    pub(super) fn no_codegen(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.no_codegen, v)
    }
    pub(super) fn no_generate_arange_section(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.no_generate_arange_section, v)
    }
    pub(super) fn no_implied_bounds_compat(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.no_implied_bounds_compat, v)
    }
    pub(super) fn no_leak_check(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.no_leak_check, v)
    }
    pub(super) fn no_link(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.no_link, v)
    }
    pub(super) fn no_parallel_backend(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.no_parallel_backend, v)
    }
    pub(super) fn no_profiler_runtime(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.no_profiler_runtime, v)
    }
    pub(super) fn no_steal_thir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.no_steal_thir, v)
    }
    pub(super) fn no_trait_vptr(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.no_trait_vptr, v)
    }
    pub(super) fn no_unique_section_names(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.no_unique_section_names, v)
    }
    pub(super) fn normalize_docs(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.normalize_docs, v)
    }
    pub(super) fn offload(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_offload(&mut cg.offload, v)
    }
    pub(super) fn on_broken_pipe(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_on_broken_pipe(&mut cg.on_broken_pipe, v)
    }
    pub(super) fn osx_rpath_install_name(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.osx_rpath_install_name, v)
    }
    pub(super) fn packed_bundled_libs(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.packed_bundled_libs, v)
    }
    pub(super) fn packed_stack(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.packed_stack, v)
    }
    pub(super) fn panic_abort_tests(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.panic_abort_tests, v)
    }
    pub(super) fn panic_in_drop(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_panic_strategy(&mut cg.panic_in_drop, v)
    }
    pub(super) fn parse_crate_root_only(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.parse_crate_root_only, v)
    }
    pub(super) fn patchable_function_entry(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_patchable_function_entry(&mut cg.patchable_function_entry,
            v)
    }
    pub(super) fn plt(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.plt, v)
    }
    pub(super) fn pointer_authentication(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_pointer_authentication_list_with_polarity(&mut cg.pointer_authentication,
            v)
    }
    pub(super) fn polonius(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_polonius(&mut cg.polonius, v)
    }
    pub(super) fn pre_link_arg(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_string_push(&mut cg.pre_link_args, v)
    }
    pub(super) fn pre_link_args(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_list(&mut cg.pre_link_args, v)
    }
    pub(super) fn precise_enum_drop_elaboration(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.precise_enum_drop_elaboration, v)
    }
    pub(super) fn print_codegen_stats(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.print_codegen_stats, v)
    }
    pub(super) fn print_codegen_stats_json(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_string(&mut cg.print_codegen_stats_json, v)
    }
    pub(super) fn print_llvm_passes(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.print_llvm_passes, v)
    }
    pub(super) fn print_mono_items(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.print_mono_items, v)
    }
    pub(super) fn print_type_sizes(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.print_type_sizes, v)
    }
    pub(super) fn proc_macro_backtrace(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.proc_macro_backtrace, v)
    }
    pub(super) fn proc_macro_execution_strategy(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_proc_macro_execution_strategy(&mut cg.proc_macro_execution_strategy,
            v)
    }
    pub(super) fn profile_closures(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.profile_closures, v)
    }
    pub(super) fn profiler_runtime(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_string(&mut cg.profiler_runtime, v)
    }
    pub(super) fn query_dep_graph(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.query_dep_graph, v)
    }
    pub(super) fn randomize_layout(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.randomize_layout, v)
    }
    pub(super) fn reg_struct_return(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.reg_struct_return, v)
    }
    pub(super) fn regparm(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.regparm, v)
    }
    pub(super) fn relax_elf_relocations(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.relax_elf_relocations, v)
    }
    pub(super) fn remap_cwd_prefix(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_pathbuf(&mut cg.remap_cwd_prefix, v)
    }
    pub(super) fn remark_dir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_pathbuf(&mut cg.remark_dir, v)
    }
    pub(super) fn renormalize_rigid_aliases(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.renormalize_rigid_aliases, v)
    }
    pub(super) fn retpoline(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.retpoline, v)
    }
    pub(super) fn retpoline_external_thunk(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.retpoline_external_thunk, v)
    }
    pub(super) fn sanitizer(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_sanitizers(&mut cg.sanitizer, v)
    }
    pub(super) fn sanitizer_ignorelist(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_list(&mut cg.sanitizer_ignorelist, v)
    }
    pub(super) fn sanitizer_cfi_canonical_jump_tables(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.sanitizer_cfi_canonical_jump_tables,
            v)
    }
    pub(super) fn sanitizer_cfi_generalize_pointers(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.sanitizer_cfi_generalize_pointers,
            v)
    }
    pub(super) fn sanitizer_cfi_normalize_integers(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.sanitizer_cfi_normalize_integers,
            v)
    }
    pub(super) fn sanitizer_cfi_diag(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.sanitizer_cfi_diag, v)
    }
    pub(super) fn sanitizer_cfi_recover(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.sanitizer_cfi_recover, v)
    }
    pub(super) fn sanitizer_cfi_minimal_runtime(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.sanitizer_cfi_minimal_runtime, v)
    }
    pub(super) fn sanitizer_dataflow_abilist(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_comma_list(&mut cg.sanitizer_dataflow_abilist, v)
    }
    pub(super) fn sanitizer_kcfi_arity(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.sanitizer_kcfi_arity, v)
    }
    pub(super) fn sanitizer_memory_track_origins(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_sanitizer_memory_track_origins(&mut cg.sanitizer_memory_track_origins,
            v)
    }
    pub(super) fn sanitizer_recover(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_sanitizers(&mut cg.sanitizer_recover, v)
    }
    pub(super) fn self_profile(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_switch_with_opt_path(&mut cg.self_profile, v)
    }
    pub(super) fn self_profile_counter(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_string(&mut cg.self_profile_counter, v)
    }
    pub(super) fn self_profile_events(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_comma_list(&mut cg.self_profile_events, v)
    }
    pub(super) fn share_generics(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.share_generics, v)
    }
    pub(super) fn shell_argfiles(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.shell_argfiles, v)
    }
    pub(super) fn simulate_remapped_rust_src_base(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_pathbuf(&mut cg.simulate_remapped_rust_src_base,
            v)
    }
    pub(super) fn small_data_threshold(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_number(&mut cg.small_data_threshold, v)
    }
    pub(super) fn span_debug(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.span_debug, v)
    }
    pub(super) fn span_free_formats(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.span_free_formats, v)
    }
    pub(super) fn split_dwarf_inlining(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.split_dwarf_inlining, v)
    }
    pub(super) fn split_dwarf_kind(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_split_dwarf_kind(&mut cg.split_dwarf_kind, v)
    }
    pub(super) fn split_dwarf_out_dir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_pathbuf(&mut cg.split_dwarf_out_dir, v)
    }
    pub(super) fn split_lto_unit(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.split_lto_unit, v)
    }
    pub(super) fn src_hash_algorithm(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_src_file_hash(&mut cg.src_hash_algorithm, v)
    }
    pub(super) fn stack_protector(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_stack_protector(&mut cg.stack_protector, v)
    }
    pub(super) fn staticlib_allow_rdylib_deps(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.staticlib_allow_rdylib_deps, v)
    }
    pub(super) fn staticlib_hide_internal_symbols(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.staticlib_hide_internal_symbols, v)
    }
    pub(super) fn staticlib_rename_internal_symbols(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.staticlib_rename_internal_symbols, v)
    }
    pub(super) fn staticlib_prefer_dynamic(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.staticlib_prefer_dynamic, v)
    }
    pub(super) fn strict_init_checks(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.strict_init_checks, v)
    }
    pub(super) fn teach(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.teach, v)
    }
    pub(super) fn temps_dir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_string(&mut cg.temps_dir, v)
    }
    pub(super) fn terminal_urls(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_terminal_url(&mut cg.terminal_urls, v)
    }
    pub(super) fn thinlto(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.thinlto, v)
    }
    pub(super) fn threads(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_string(&mut cg.threads, v)
    }
    pub(super) fn time_llvm_passes(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.time_llvm_passes, v)
    }
    pub(super) fn time_passes(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.time_passes, v)
    }
    pub(super) fn time_passes_format(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_time_passes_format(&mut cg.time_passes_format, v)
    }
    pub(super) fn tiny_const_eval_limit(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.tiny_const_eval_limit, v)
    }
    pub(super) fn tls_model(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_tls_model(&mut cg.tls_model, v)
    }
    pub(super) fn trace_macros(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.trace_macros, v)
    }
    pub(super) fn track_diagnostics(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.track_diagnostics, v)
    }
    pub(super) fn translate_remapped_path_to_local_path(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.translate_remapped_path_to_local_path,
            v)
    }
    pub(super) fn trap_unreachable(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.trap_unreachable, v)
    }
    pub(super) fn treat_err_as_bug(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_treat_err_as_bug(&mut cg.treat_err_as_bug, v)
    }
    pub(super) fn trim_diagnostic_paths(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.trim_diagnostic_paths, v)
    }
    pub(super) fn tune_cpu(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_string(&mut cg.tune_cpu, v)
    }
    pub(super) fn ub_checks(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.ub_checks, v)
    }
    pub(super) fn ui_testing(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.ui_testing, v)
    }
    pub(super) fn uninit_const_chunk_threshold(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_number(&mut cg.uninit_const_chunk_threshold, v)
    }
    pub(super) fn unleash_the_miri_inside_of_you(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.unleash_the_miri_inside_of_you, v)
    }
    pub(super) fn unpretty(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_unpretty(&mut cg.unpretty, v)
    }
    pub(super) fn unsound_mir_opts(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.unsound_mir_opts, v)
    }
    pub(super) fn unstable_options(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_no_value(&mut cg.unstable_options, v)
    }
    pub(super) fn use_ctors_section(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.use_ctors_section, v)
    }
    pub(super) fn use_sync_unwind(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_opt_bool(&mut cg.use_sync_unwind, v)
    }
    pub(super) fn validate_mir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.validate_mir, v)
    }
    pub(super) fn verbose_asm(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.verbose_asm, v)
    }
    pub(super) fn verbose_internals(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.verbose_internals, v)
    }
    pub(super) fn verify_llvm_ir(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.verify_llvm_ir, v)
    }
    pub(super) fn virtual_function_elimination(cg:
            &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.virtual_function_elimination, v)
    }
    pub(super) fn wasi_exec_model(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_wasi_exec_model(&mut cg.wasi_exec_model, v)
    }
    pub(super) fn wasm_c_abi(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_wasm_c_abi(&mut cg.wasm_c_abi, v)
    }
    pub(super) fn wasm_proc_macros(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.wasm_proc_macros, v)
    }
    pub(super) fn write_long_types_to_disk(cg: &mut super::UnstableOptions,
        _collected: &mut super::CollectedOptions, v: Option<&str>,
        _index: usize) -> bool {
        super::parse::parse_bool(&mut cg.write_long_types_to_disk, v)
    }
}options! {
2408    UnstableOptions, UnstableOptionsTargetModifiers, Z_OPTIONS, dbopts, "Z", "unstable",
2409
2410    // If you add a new option, please update:
2411    // - compiler/rustc_interface/src/tests.rs
2412    // - src/doc/unstable-book/src/compiler-flags
2413
2414    // tidy-alphabetical-start
2415    allow_features: Option<Vec<String>> = (None, parse_opt_comma_list, [TRACKED],
2416        "only allow the listed language features to be enabled in code (comma separated)"),
2417    // the real parser is at the `setter_for` macro, to allow `-Z` and `-C` options to
2418    // work together.
2419    allow_partial_mitigations: () = ((), parse_allow_partial_mitigations, [UNTRACKED],
2420        "Allow mitigations not enabled for all dependency crates (comma separated list)"),
2421    always_encode_mir: bool = (false, parse_bool, [TRACKED],
2422        "encode MIR of all functions into the crate metadata (default: no)"),
2423    annotate_moves: AnnotateMoves = (AnnotateMoves::Disabled, parse_annotate_moves, [TRACKED],
2424        "emit debug info for compiler-generated move and copy operations \
2425        to make them visible in profilers. Can be a boolean or a size limit in bytes (default: disabled)"),
2426    assert_incr_state: Option<IncrementalStateAssertion> = (None, parse_assert_incr_state, [UNTRACKED],
2427        "assert that the incremental cache is in given state: \
2428         either `loaded` or `not-loaded`."),
2429    assume_incomplete_release: bool = (false, parse_bool, [TRACKED],
2430        "make cfg(version) treat the current version as incomplete (default: no)"),
2431    assumptions_on_binders: bool = (false, parse_bool, [TRACKED],
2432        "allow deducing higher-ranked outlives assumptions from all binders (`for<'a>`); \
2433         implies `-Znext-solver=globally`"),
2434    async_panic: bool = (true, parse_bool, [TRACKED],
2435        "let async blocks and functions panic when polled after completion"),
2436    autodiff: Vec<crate::config::AutoDiff> = (Vec::new(), parse_autodiff, [TRACKED],
2437        "a list of autodiff flags to enable
2438        Mandatory setting:
2439        `=Enable`
2440        Optional extra settings:
2441        `=PrintTA`
2442        `=PrintAA`
2443        `=PrintPerf`
2444        `=PrintSteps`
2445        `=PrintModBefore`
2446        `=PrintModAfter`
2447        `=PrintModFinal`
2448        `=PrintPasses`,
2449        `=NoPostopt`
2450        `=LooseTypes`
2451        `=Inline`
2452        Multiple options can be combined with commas."),
2453    autodiff_post_passes: Option<String> = (None, parse_opt_string, [TRACKED],
2454        "set llvm passes to run after enzyme (no passes run when it is empty)"),
2455    #[rustc_lint_opt_deny_field_access("use `Session::binary_dep_depinfo` instead of this field")]
2456    binary_dep_depinfo: bool = (false, parse_bool, [TRACKED],
2457        "include artifacts (sysroot, crate dependencies) used during compilation in dep-info \
2458        (default: no)"),
2459    box_noalias: bool = (true, parse_bool, [TRACKED],
2460        "emit noalias metadata for box (default: yes)"),
2461    #[rustc_lint_opt_deny_field_access("use `Session::branch_protection` instead of this field")]
2462    branch_protection: Option<BranchProtection> = (None, parse_branch_protection, [TRACKED] { TARGET_MODIFIER: BranchProtection },
2463        "set options for branch target identification and pointer authentication on AArch64"),
2464    build_sdylib_interface: bool = (false, parse_bool, [UNTRACKED],
2465        "whether the stable interface is being built"),
2466    cache_proc_macros: bool = (false, parse_bool, [TRACKED],
2467        "cache the results of derive proc macro invocations (potentially unsound!) (default: no"),
2468    cf_protection: CFProtection = (CFProtection::None, parse_cfprotection, [TRACKED],
2469        "instrument control-flow architecture protection"),
2470    check_cfg_all_expected: bool = (false, parse_bool, [UNTRACKED],
2471        "show all expected values in check-cfg diagnostics (default: no)"),
2472    checksum_hash_algorithm: Option<SourceFileHashAlgorithm> = (None, parse_cargo_src_file_hash, [TRACKED],
2473        "hash algorithm of source files used to check freshness in cargo (`blake3` or `sha256`)"),
2474    codegen_backend: Option<String> = (None, parse_opt_string, [TRACKED],
2475        "the backend to use"),
2476    codegen_emit_retag: Option<CodegenRetagOptions> = (None, parse_codegen_retag_options, [TRACKED],
2477        "emit retag function calls in generated code"),
2478    codegen_source_order: bool = (false, parse_bool, [UNTRACKED],
2479        "emit mono items in the order of spans in source files (default: no)"),
2480    contract_checks: Option<bool> = (None, parse_opt_bool, [TRACKED],
2481        "emit runtime checks for contract pre- and post-conditions (default: no)"),
2482    coverage_options: CoverageOptions = (CoverageOptions::default(), parse_coverage_options, [TRACKED],
2483        "control details of coverage instrumentation"),
2484    crate_attr: Vec<String> = (Vec::new(), parse_string_push, [TRACKED],
2485        "inject the given attribute in the crate"),
2486    cross_crate_inline_threshold: InliningThreshold = (InliningThreshold::Sometimes(100), parse_inlining_threshold, [TRACKED],
2487        "threshold to allow cross crate inlining of functions"),
2488    debug_info_type_line_numbers: bool = (false, parse_bool, [TRACKED],
2489        "emit type and line information for additional data types (default: no)"),
2490    debuginfo_compression: DebugInfoCompression = (DebugInfoCompression::None, parse_debuginfo_compression, [TRACKED],
2491        "compress debug info sections (none, zlib, zstd, default: none)"),
2492    debuginfo_for_profiling: bool = (false, parse_bool, [TRACKED],
2493        "emit extra debug info to make sample profile more accurate"),
2494    deduplicate_diagnostics: bool = (true, parse_bool, [UNTRACKED],
2495        "deduplicate identical diagnostics (default: yes)"),
2496    default_visibility: Option<SymbolVisibility> = (None, parse_opt_symbol_visibility, [TRACKED],
2497        "overrides the `default_visibility` setting of the target"),
2498    deny_partial_mitigations: () = ((), parse_deny_partial_mitigations, [UNTRACKED],
2499        "Deny mitigations not enabled for all dependency crates (comma separated list)"),
2500    dep_info_omit_d_target: bool = (false, parse_bool, [TRACKED],
2501        "in dep-info output, omit targets for tracking dependencies of the dep-info files \
2502        themselves (default: no)"),
2503    direct_access_external_data: Option<bool> = (None, parse_opt_bool, [TRACKED],
2504        "Direct or use GOT indirect to reference external data symbols"),
2505    disable_fast_paths: bool = (false, parse_bool, [TRACKED],
2506        "disable various performance optimizations in trait solving"),
2507    disable_incr_comp_backend_caching: bool = (false, parse_bool, [TRACKED],
2508        "disable caching of compiled objects by the codegen backend during incremental compilation"),
2509    disable_param_env_normalization_hack: bool = (false, parse_bool, [TRACKED],
2510        "do not treat all aliases in the environment as rigid with `-Znext-solver`"),
2511    dual_proc_macros: bool = (false, parse_bool, [TRACKED],
2512        "load proc macros for both target and host, but only link to the target (default: no)"),
2513    dump_dep_graph: bool = (false, parse_bool, [UNTRACKED],
2514        "dump the dependency graph to `$RUST_DEP_GRAPH` as both a text file and a GraphViz dot file (default: ./dep_graph.{dot, txt}) \
2515        (default: no)"),
2516    dump_mir: Option<String> = (None, parse_opt_string, [UNTRACKED],
2517        "dump MIR state to file.
2518        `val` is used to select which passes and functions to dump. For example:
2519        `all` matches all passes and functions,
2520        `foo` matches all passes for functions whose name contains 'foo',
2521        `foo & ConstProp` only the 'ConstProp' pass for function names containing 'foo',
2522        `foo | bar` all passes for function names containing 'foo' or 'bar'."),
2523    dump_mir_dataflow: bool = (false, parse_bool, [UNTRACKED],
2524        "in addition to `.mir` files, create graphviz `.dot` files with dataflow results \
2525        (default: no)"),
2526    dump_mir_dir: String = ("mir_dump".to_string(), parse_string, [UNTRACKED],
2527        "the directory the MIR is dumped into (default: `mir_dump`)"),
2528    dump_mir_exclude_alloc_bytes: bool = (false, parse_bool, [UNTRACKED],
2529        "exclude the raw bytes of allocations when dumping MIR (used in tests) (default: no)"),
2530    dump_mir_exclude_pass_number: bool = (false, parse_bool, [UNTRACKED],
2531        "exclude the pass number when dumping MIR (used in tests) (default: no)"),
2532    dump_mir_graphviz: bool = (false, parse_bool, [UNTRACKED],
2533        "in addition to `.mir` files, create graphviz `.dot` files (default: no)"),
2534    dump_mono_stats: SwitchWithOptPath = (SwitchWithOptPath::Disabled,
2535        parse_switch_with_opt_path, [UNTRACKED],
2536        "output statistics about monomorphization collection"),
2537    dump_mono_stats_format: DumpMonoStatsFormat = (DumpMonoStatsFormat::Markdown, parse_dump_mono_stats, [UNTRACKED],
2538        "the format to use for -Z dump-mono-stats (`markdown` (default) or `json`)"),
2539    #[rustc_lint_opt_deny_field_access("use `Session::dwarf_version` instead of this field")]
2540    dwarf_version: Option<u32> = (None, parse_opt_number, [TRACKED],
2541        "version of DWARF debug information to emit (default: 2 or 4, depending on platform)"),
2542    dylib_lto: bool = (false, parse_bool, [UNTRACKED],
2543        "enables LTO for dylib crate type"),
2544    eagerly_emit_delayed_bugs: bool = (false, parse_bool, [UNTRACKED],
2545        "emit delayed bugs eagerly as errors instead of stashing them and emitting \
2546        them only if an error has not been emitted"),
2547    ehcont_guard: bool = (false, parse_bool, [TRACKED],
2548        "generate Windows EHCont Guard tables"),
2549    // FIXME(kobzol): remove in 2027
2550    embed_metadata: Option<bool> = (None, parse_opt_bool, [TRACKED],
2551        "embed metadata in rlibs and dylibs (default: yes)"),
2552    embed_source: bool = (false, parse_bool, [TRACKED],
2553        "embed source text in DWARF debug sections (default: no)"),
2554    emit_stack_sizes: bool = (false, parse_bool, [UNTRACKED],
2555        "emit a section containing stack size metadata (default: no)"),
2556    enforce_type_length_limit: bool = (false, parse_bool, [TRACKED],
2557        "enforce the type length limit when monomorphizing instances in codegen"),
2558    experimental_default_bounds: bool = (false, parse_bool, [TRACKED],
2559        "enable default bounds for experimental group of auto traits"),
2560    export_executable_symbols: bool = (false, parse_bool, [TRACKED],
2561        "export symbols from executables, as if they were dynamic libraries"),
2562    external_clangrt: bool = (false, parse_bool, [UNTRACKED],
2563        "rely on user specified linker commands to find clangrt"),
2564    extra_const_ub_checks: bool = (false, parse_bool, [TRACKED],
2565        "turns on more checks to detect const UB, which can be slow (default: no)"),
2566    #[rustc_lint_opt_deny_field_access("use `Session::fewer_names` instead of this field")]
2567    fewer_names: Option<bool> = (None, parse_opt_bool, [TRACKED],
2568        "reduce memory use by retaining fewer names within compilation artifacts (LLVM-IR) \
2569        (default: no)"),
2570    fixed_x18: bool = (false, parse_bool, [TRACKED] { TARGET_MODIFIER: FixedX18 },
2571        "make the x18 register reserved on AArch64 (default: no)"),
2572    flatten_format_args: bool = (true, parse_bool, [TRACKED],
2573        "flatten nested format_args!() and literals into a simplified format_args!() call \
2574        (default: yes)"),
2575    fmt_debug: FmtDebug = (FmtDebug::Full, parse_fmt_debug, [TRACKED],
2576        "how detailed `#[derive(Debug)]` should be. `full` prints types recursively, \
2577        `shallow` prints only type names, `none` prints nothing and disables `{:?}`. (default: `full`)"),
2578    force_intrinsic_fallback: bool = (false, parse_bool, [TRACKED],
2579        "always use the fallback body of an intrinsic, if it has one, instead of lowering \
2580        the intrinsic in the codegen backend (default: no)."),
2581    force_unstable_if_unmarked: bool = (false, parse_bool, [TRACKED],
2582        "force all crates to be `rustc_private` unstable (default: no)"),
2583    function_return: FunctionReturn = (FunctionReturn::default(), parse_function_return, [TRACKED],
2584        "replace returns with jumps to `__x86_return_thunk` (default: `keep`)"),
2585    function_sections: Option<bool> = (None, parse_opt_bool, [TRACKED],
2586        "whether each function should go in its own section"),
2587    future_incompat_test: bool = (false, parse_bool, [UNTRACKED],
2588        "forces all lints to be future incompatible, used for internal testing (default: no)"),
2589    graphviz_dark_mode: bool = (false, parse_bool, [UNTRACKED],
2590        "use dark-themed colors in graphviz output (default: no)"),
2591    graphviz_font: String = ("Courier, monospace".to_string(), parse_string, [UNTRACKED],
2592        "use the given `fontname` in graphviz output; can be overridden by setting \
2593        environment variable `RUSTC_GRAPHVIZ_FONT` (default: `Courier, monospace`)"),
2594    has_thread_local: Option<bool> = (None, parse_opt_bool, [TRACKED],
2595        "explicitly enable the `cfg(target_thread_local)` directive"),
2596    help: bool = (false, parse_no_value, [UNTRACKED], "Print unstable compiler options"),
2597    higher_ranked_assumptions: bool = (false, parse_bool, [TRACKED],
2598        "allow deducing higher-ranked outlives assumptions from coroutines when proving auto traits"),
2599    hint_mostly_unused: bool = (false, parse_bool, [TRACKED],
2600        "hint that most of this crate will go unused, to minimize work for uncalled functions"),
2601    hint_msrv: Option<RustcVersion> = (None, parse_rust_version, [TRACKED],
2602        "control the minimum rust version for lints"),
2603    human_readable_cgu_names: bool = (false, parse_bool, [TRACKED],
2604        "generate human-readable, predictable names for codegen units (default: no)"),
2605    identify_regions: bool = (false, parse_bool, [UNTRACKED],
2606        "display unnamed regions as `'<id>`, using a non-ident unique id (default: no)"),
2607    ignore_directory_in_diagnostics_source_blocks: Vec<String> = (Vec::new(), parse_string_push, [UNTRACKED],
2608        "do not display the source code block in diagnostics for files in the directory"),
2609    implicit_sysroot_deps: bool = (true, parse_bool, [TRACKED],
2610        "allows rust to search sysroot for a crate's dependencies (default: yes)"),
2611    incremental_ignore_spans: bool = (false, parse_bool, [TRACKED],
2612        "ignore spans during ICH computation -- used for testing (default: no)"),
2613    incremental_info: bool = (false, parse_bool, [UNTRACKED],
2614        "print high-level information about incremental reuse (or the lack thereof) \
2615        (default: no)"),
2616    incremental_verify_ich: bool = (false, parse_bool, [UNTRACKED],
2617        "verify extended properties for incr. comp. (default: no):
2618        - hashes of green query instances
2619        - hash collisions of query keys
2620        - hash collisions when creating dep-nodes"),
2621    indirect_branch_cs_prefix: bool = (false, parse_bool, [TRACKED] { TARGET_MODIFIER: IndirectBranchCsPrefix },
2622        "add `cs` prefix to `call` and `jmp` to indirect thunks (default: no)"),
2623    inline_llvm: bool = (true, parse_bool, [TRACKED],
2624        "enable LLVM inlining (default: yes)"),
2625    inline_mir: Option<bool> = (None, parse_opt_bool, [TRACKED],
2626        "enable MIR inlining (default: no)"),
2627    inline_mir_forwarder_threshold: Option<usize> = (None, parse_opt_number, [TRACKED],
2628        "inlining threshold when the caller is a simple forwarding function (default: 30)"),
2629    inline_mir_hint_threshold: Option<usize> = (None, parse_opt_number, [TRACKED],
2630        "inlining threshold for functions with inline hint (default: 100)"),
2631    inline_mir_preserve_debug: Option<bool> = (None, parse_opt_bool, [TRACKED],
2632        "when MIR inlining, whether to preserve debug info for callee variables \
2633        (default: preserve for debuginfo != None, otherwise remove)"),
2634    inline_mir_threshold: Option<usize> = (None, parse_opt_number, [TRACKED],
2635        "a default MIR inlining threshold (default: 50)"),
2636    input_stats: bool = (false, parse_bool, [UNTRACKED],
2637        "print some statistics about AST and HIR (default: no)"),
2638    instrument_mcount: InstrumentMcount = (InstrumentMcount::Disabled, parse_instrument_mcount, [TRACKED],
2639        "insert function instrument code for mcount-based tracing (default: no)"),
2640    instrument_xray: Option<InstrumentXRay> = (None, parse_instrument_xray, [TRACKED],
2641        "insert function instrument code for XRay-based tracing (default: no)
2642         Optional extra settings:
2643         `=always`
2644         `=never`
2645         `=ignore-loops`
2646         `=instruction-threshold=N`
2647         `=skip-entry`
2648         `=skip-exit`
2649         Multiple options can be combined with commas."),
2650    // The only purpose of this flag is to act as a deterrent:
2651    // Marking a feature that's only meant for testing as internal might not preclude somebody from
2652    // trying to use it in `core` or `std` as both enable various internal features and utilize them
2653    // throughout. This is intentionally a flag not another internal feature as having to modify the
2654    // build cfg in `bootstrap` is arguably scarier than just needing to add `#![feature]`. It also
2655    // stands out a lot more during code review making it easier to get caught.
2656    internal_testing_features: bool = (false, parse_bool, [TRACKED],
2657        "allow certain internal language features to be enabled that help exercise & test the compiler"),
2658    large_data_threshold: Option<u64> = (None, parse_opt_number, [TRACKED],
2659        "set the threshold for objects to be stored in a \"large data\" section \
2660         (only effective with -Ccode-model=medium, default: 65536)"),
2661    layout_seed: Option<u64> = (None, parse_opt_number, [TRACKED],
2662        "seed layout randomization"),
2663    link_directives: bool = (true, parse_bool, [TRACKED],
2664        "honor #[link] directives in the compiled crate (default: yes)"),
2665    link_native_libraries: bool = (true, parse_bool, [UNTRACKED],
2666        "link native libraries in the linker invocation (default: yes)"),
2667    link_only: bool = (false, parse_bool, [TRACKED],
2668        "link the `.rlink` file generated by `-Z no-link` (default: no)"),
2669    lint_llvm_ir: bool = (false, parse_bool, [TRACKED],
2670        "lint LLVM IR (default: no)"),
2671    lint_mir: bool = (false, parse_bool, [UNTRACKED],
2672        "lint MIR before and after each transformation"),
2673    llvm_module_flag: Vec<(String, u32, String)> = (Vec::new(), parse_llvm_module_flag, [TRACKED],
2674        "a list of module flags to pass to LLVM (space separated)"),
2675    llvm_plugins: Vec<String> = (Vec::new(), parse_list, [TRACKED],
2676        "a list LLVM plugins to enable (space separated)"),
2677    llvm_target_feature: String = (String::new(), parse_target_feature, [TRACKED] { TARGET_MODIFIER: LlvmTargetFeature },
2678        "enable/disable LLVM-level target features. \
2679        This feature is unsafe and can cause ABI issues and compiler crashes, \
2680        because LLVM does not support all target feature combinations."),
2681    llvm_time_trace: bool = (false, parse_bool, [UNTRACKED],
2682        "generate JSON tracing data file from LLVM data (default: no)"),
2683    llvm_writable: bool = (false, parse_bool, [TRACKED],
2684        "emit the LLVM writable attribute for mutable reference arguments (default: no)"),
2685    location_detail: LocationDetail = (LocationDetail::all(), parse_location_detail, [TRACKED],
2686        "what location details should be tracked when using caller_location, either \
2687        `none`, or a comma separated list of location details, for which \
2688        valid options are `file`, `line`, and `column` (default: `file,line,column`)"),
2689    ls: Vec<String> = (Vec::new(), parse_list, [UNTRACKED],
2690        "decode and print various parts of the crate metadata for a library crate \
2691        (space separated)"),
2692    macro_backtrace: bool = (false, parse_bool, [UNTRACKED],
2693        "show macro backtraces (default: no)"),
2694    macro_stats: bool = (false, parse_bool, [UNTRACKED],
2695        "print some statistics about macro expansions (default: no)"),
2696    maximal_hir_to_mir_coverage: bool = (false, parse_bool, [TRACKED],
2697        "save as much information as possible about the correspondence between MIR and HIR \
2698        as source scopes (default: no)"),
2699    #[rustc_lint_opt_deny_field_access("use `Session::merge_functions` instead of this field")]
2700    merge_functions: Option<MergeFunctions> = (None, parse_merge_functions, [TRACKED],
2701        "control the operation of the MergeFunctions LLVM pass, taking \
2702        the same values as the target option of the same name"),
2703    meta_stats: bool = (false, parse_bool, [UNTRACKED],
2704        "gather metadata statistics (default: no)"),
2705    metadata_crate_hash: bool = (true, parse_bool, [TRACKED],
2706        "compute the crate hash (SVH) from the encoded crate metadata; set to `no` to \
2707         revert to computing it from the HIR (default: yes)"),
2708    metrics_dir: Option<PathBuf> = (None, parse_opt_pathbuf, [UNTRACKED],
2709        "the directory metrics emitted by rustc are dumped into (implicitly enables default set of metrics)"),
2710    min_function_alignment: Option<Align> = (None, parse_align, [TRACKED],
2711        "align all functions to at least this many bytes. Must be a power of 2"),
2712    min_recursion_limit: Option<usize> = (None, parse_opt_number, [TRACKED],
2713        "set a minimum recursion limit (final limit = max(this, recursion_limit_from_crate))"),
2714    mir_enable_passes: Vec<(String, bool)> = (Vec::new(), parse_list_with_polarity, [TRACKED],
2715        "use like `-Zmir-enable-passes=+DestinationPropagation,-InstSimplify`. Forces the \
2716        specified passes to be enabled, overriding all other checks. In particular, this will \
2717        enable unsound (known-buggy and hence usually disabled) passes without further warning! \
2718        Passes that are not specified are enabled or disabled by other flags as usual."),
2719    mir_include_spans: MirIncludeSpans = (MirIncludeSpans::default(), parse_mir_include_spans, [UNTRACKED],
2720        "include extra comments in mir pretty printing, like line numbers and statement indices, \
2721         details about types, etc. (boolean for all passes, 'nll' to enable in NLL MIR only, default: 'nll')"),
2722    mir_move_elimination: bool = (false, parse_bool, [TRACKED],
2723        "enable the experimental MIR semantics for the move elimination optimization (default: no)"),
2724    mir_opt_bisect_limit: Option<usize> = (None, parse_opt_number, [TRACKED],
2725        "limit the number of MIR optimization pass executions (global across all bodies). \
2726        Pass executions after this limit are skipped and reported. (default: no limit)"),
2727    #[rustc_lint_opt_deny_field_access("use `Session::mir_opt_level` instead of this field")]
2728    mir_opt_level: Option<usize> = (None, parse_opt_number, [TRACKED],
2729        "MIR optimization level (0-4; default: 1 in non optimized builds and 2 in optimized builds)"),
2730    mir_preserve_ub: bool = (false, parse_bool, [TRACKED],
2731        "keep place mention statements and reads in trivial SwitchInt terminators, which are interpreted \
2732        e.g., by miri; implies -Zmir-opt-level=0 (default: no)"),
2733    mir_strip_debuginfo: MirStripDebugInfo = (MirStripDebugInfo::None, parse_mir_strip_debuginfo, [TRACKED],
2734        "Whether to remove some of the MIR debug info from methods.  Default: None"),
2735    move_size_limit: Option<usize> = (None, parse_opt_number, [TRACKED],
2736        "the size at which the `large_assignments` lint starts to be emitted"),
2737    namespaced_crates: bool = (false, parse_bool, [TRACKED],
2738        "allow crates to be namespaced by other crates (default: no)"),
2739    next_solver: NextSolverConfig = (NextSolverConfig::default(), parse_next_solver_config, [TRACKED],
2740        "enable and configure the next generation trait solver used by rustc"),
2741    next_solver_overflow_fcw_limit: Option<usize> = (None, parse_opt_number, [TRACKED_NO_CRATE_HASH],
2742        "set the depth limit for displaying the overflow FCW chain \
2743        (final limit = min(this, recursion_limit_from_crate * 2))"),
2744    nll_facts: bool = (false, parse_bool, [UNTRACKED],
2745        "dump facts from NLL analysis into side files (default: no)"),
2746    nll_facts_dir: String = ("nll-facts".to_string(), parse_string, [UNTRACKED],
2747        "the directory the NLL facts are dumped into (default: `nll-facts`)"),
2748    no_analysis: bool = (false, parse_no_value, [UNTRACKED],
2749        "parse and expand the source, but run no analysis"),
2750    no_codegen: bool = (false, parse_no_value, [TRACKED_NO_CRATE_HASH],
2751        "run all passes except codegen; no output"),
2752    no_generate_arange_section: bool = (false, parse_no_value, [TRACKED],
2753        "omit DWARF address ranges that give faster lookups"),
2754    no_implied_bounds_compat: bool = (false, parse_bool, [TRACKED],
2755        "disable the compatibility version of the `implied_bounds_ty` query"),
2756    no_leak_check: bool = (false, parse_no_value, [UNTRACKED],
2757        "disable the 'leak check' for subtyping; unsound, but useful for tests"),
2758    no_link: bool = (false, parse_no_value, [TRACKED],
2759        "compile without linking"),
2760    no_parallel_backend: bool = (false, parse_no_value, [UNTRACKED],
2761        "use `--jobs-backend=1` instead"),
2762    no_profiler_runtime: bool = (false, parse_no_value, [TRACKED],
2763        "prevent automatic injection of the profiler_builtins crate"),
2764    no_steal_thir: bool = (false, parse_bool, [UNTRACKED],
2765        "don't steal the THIR when we're done with it; useful for rustc drivers (default: no)"),
2766    no_trait_vptr: bool = (false, parse_no_value, [TRACKED],
2767        "disable generation of trait vptr in vtable for upcasting"),
2768    no_unique_section_names: bool = (false, parse_bool, [TRACKED],
2769        "do not use unique names for text and data sections when -Z function-sections is used"),
2770    normalize_docs: bool = (false, parse_bool, [TRACKED],
2771        "normalize associated items in rustdoc when generating documentation"),
2772    offload: Vec<crate::config::Offload> = (Vec::new(), parse_offload, [TRACKED],
2773        "a list of offload flags to enable
2774        Mandatory setting:
2775        `=Enable`
2776        Currently the only option available"),
2777    on_broken_pipe: OnBrokenPipe = (OnBrokenPipe::Default, parse_on_broken_pipe, [TRACKED],
2778        "behavior of std::io::ErrorKind::BrokenPipe (SIGPIPE)"),
2779    osx_rpath_install_name: bool = (false, parse_bool, [TRACKED],
2780        "pass `-install_name @rpath/...` to the macOS linker (default: no)"),
2781    packed_bundled_libs: bool = (false, parse_bool, [TRACKED],
2782        "change rlib format to store native libraries as archives"),
2783    packed_stack: bool = (false, parse_bool, [TRACKED],
2784        "use packed stack frames (s390x only) (default: no)"),
2785    panic_abort_tests: bool = (false, parse_bool, [TRACKED],
2786        "support compiling tests with panic=abort (default: no)"),
2787    panic_in_drop: PanicStrategy = (PanicStrategy::Unwind, parse_panic_strategy, [TRACKED],
2788        "panic strategy for panics in drops"),
2789    parse_crate_root_only: bool = (false, parse_bool, [UNTRACKED],
2790        "parse the crate root file only; do not parse other files, compile, assemble, or link \
2791        (default: no)"),
2792    patchable_function_entry: PatchableFunctionEntry = (PatchableFunctionEntry::default(), parse_patchable_function_entry, [TRACKED],
2793        "nop padding at function entry"),
2794    plt: Option<bool> = (None, parse_opt_bool, [TRACKED],
2795        "whether to use the PLT when calling into shared libraries;
2796        only has effect for PIC code on systems with ELF binaries
2797        (default: PLT is disabled if full relro is enabled on x86_64)"),
2798    pointer_authentication: Vec<(PointerAuthOption, bool)> = (
2799        Vec::new(),
2800        parse_pointer_authentication_list_with_polarity,
2801        [TRACKED]
2802        { TARGET_MODIFIER: PointerAuthentication },
2803        "A comma-separated list of pointer authentication options, each prefixed with `+` (enable) or `-` (disable). Available options:
2804        `aarch64-jump-table-hardening` - enable hardened lowering for jump-table dispatch
2805        `auth-traps` - trap immediately on pointer authentication failure
2806        `calls` - enable signing and authentication of all indirect calls
2807        `elf-got` - enable authentication of pointers from GOT (ELF only)
2808        `function-pointer-type-discrimination` - enable type discrimination on C function pointers
2809        `indirect-gotos` - enable signing and authentication of indirect goto targets
2810        `init-fini` - enable signing of function pointers in init/fini arrays
2811        `init-fini-address-discrimination` - enable address discrimination in init/fini arrays
2812        `intrinsics` - pointer authentication intrinsics
2813        `return-addresses` - enable signing and authentication of return addresses
2814        `typeinfo-vt-ptr-discrimination - incorporate type and address discrimination in authenticated vtable pointers for std::type_info
2815        `vt-ptr-addr-discrimination - incorporate address discrimination in authenticated vtable pointers
2816        `vt-ptr-type-discrimination - incorporate type discrimination in authenticated vtable pointers
2817        Example: `-Zpointer-authentication=+calls,-init-fini`."),
2818    polonius: Polonius = (Polonius::default(), parse_polonius, [TRACKED],
2819        POLONIUS_HELP),
2820    pre_link_arg: (/* redirected to pre_link_args */) = ((), parse_string_push, [UNTRACKED],
2821        "a single extra argument to prepend the linker invocation (can be used several times)"),
2822    pre_link_args: Vec<String> = (Vec::new(), parse_list, [UNTRACKED],
2823        "extra arguments to prepend to the linker invocation (space separated)"),
2824    precise_enum_drop_elaboration: bool = (true, parse_bool, [TRACKED],
2825        "use a more precise version of drop elaboration for matches on enums (default: yes). \
2826        This results in better codegen, but has caused miscompilations on some tier 2 platforms. \
2827        See #77382 and #74551."),
2828    #[rustc_lint_opt_deny_field_access("use `Session::print_codegen_stats` instead of this field")]
2829    print_codegen_stats: bool = (false, parse_bool, [UNTRACKED],
2830        "print codegen statistics (default: no)"),
2831    #[rustc_lint_opt_deny_field_access("use `Session::print_llvm_stats_json` instead of this field")]
2832    print_codegen_stats_json: Option<String> = (None, parse_opt_string, [UNTRACKED],
2833        "print codegen statistics in JSON to a file (default: no)"),
2834    print_llvm_passes: bool = (false, parse_bool, [UNTRACKED],
2835        "print the LLVM optimization passes being run (default: no)"),
2836    print_mono_items: bool = (false, parse_bool, [UNTRACKED],
2837        "print the result of the monomorphization collection pass (default: no)"),
2838    print_type_sizes: bool = (false, parse_bool, [UNTRACKED],
2839        "print layout information for each type encountered (default: no)"),
2840    proc_macro_backtrace: bool = (false, parse_bool, [UNTRACKED],
2841         "show backtraces for panics during proc-macro execution (default: no)"),
2842    proc_macro_execution_strategy: ProcMacroExecutionStrategy = (ProcMacroExecutionStrategy::SameThread,
2843        parse_proc_macro_execution_strategy, [UNTRACKED],
2844        "how to run proc-macro code (default: same-thread)"),
2845    profile_closures: bool = (false, parse_no_value, [UNTRACKED],
2846        "profile size of closures"),
2847    profiler_runtime: String = (String::from("profiler_builtins"), parse_string, [TRACKED],
2848        "name of the profiler runtime crate to automatically inject (default: `profiler_builtins`)"),
2849    query_dep_graph: bool = (false, parse_bool, [UNTRACKED],
2850        "enable queries of the dependency graph for regression testing (default: no)"),
2851    randomize_layout: bool = (false, parse_bool, [TRACKED],
2852        "randomize the layout of types (default: no)"),
2853    reg_struct_return: bool = (false, parse_bool, [TRACKED] { TARGET_MODIFIER: RegStructReturn },
2854        "On x86-32 targets, it overrides the default ABI to return small structs in registers.
2855        It is UNSOUND to link together crates that use different values for this flag!"),
2856    regparm: Option<u32> = (None, parse_opt_number, [TRACKED] { TARGET_MODIFIER: Regparm },
2857        "On x86-32 targets, setting this to N causes the compiler to pass N arguments \
2858        in registers EAX, EDX, and ECX instead of on the stack for\
2859        \"C\", \"cdecl\", and \"stdcall\" fn.\
2860        It is UNSOUND to link together crates that use different values for this flag!"),
2861    relax_elf_relocations: Option<bool> = (None, parse_opt_bool, [TRACKED],
2862        "whether ELF relocations can be relaxed (x86 only)"),
2863    remap_cwd_prefix: Option<PathBuf> = (None, parse_opt_pathbuf, [TRACKED],
2864        "remap paths under the current working directory to this path prefix"),
2865    remark_dir: Option<PathBuf> = (None, parse_opt_pathbuf, [UNTRACKED],
2866        "directory into which to write optimization remarks (if not specified, they will be \
2867written to standard error output)"),
2868    renormalize_rigid_aliases: bool = (false, parse_bool, [TRACKED],
2869        "do not skip rigid aliases in normalization for internal debugging"),
2870    retpoline: bool = (false, parse_bool, [TRACKED] { TARGET_MODIFIER: Retpoline },
2871        "enables retpoline-indirect-branches and retpoline-indirect-calls target features (default: no)"),
2872    retpoline_external_thunk: bool = (false, parse_bool, [TRACKED] { TARGET_MODIFIER: RetpolineExternalThunk },
2873        "enables retpoline-external-thunk, retpoline-indirect-branches and retpoline-indirect-calls \
2874        target features (default: no)"),
2875    #[rustc_lint_opt_deny_field_access("use `Session::sanitizers()` instead of this field")]
2876    sanitizer: SanitizerSet = (SanitizerSet::empty(), parse_sanitizers, [TRACKED] { TARGET_MODIFIER: Sanitizer },
2877        "use a sanitizer"),
2878    sanitizer_ignorelist: Vec<String> = (vec![], parse_list, [TRACKED],
2879        "list of files providing ignorelists for sanitizers"),
2880    sanitizer_cfi_canonical_jump_tables: Option<bool> = (Some(true), parse_opt_bool, [TRACKED],
2881        "enable canonical jump tables (default: yes)"),
2882    sanitizer_cfi_generalize_pointers: Option<bool> = (None, parse_opt_bool, [TRACKED],
2883        "enable generalizing pointer types (default: no)"),
2884    sanitizer_cfi_normalize_integers: Option<bool> = (None, parse_opt_bool, [TRACKED] { TARGET_MODIFIER: SanitizerCfiNormalizeIntegers },
2885        "enable normalizing integer types (default: no)"),
2886    sanitizer_cfi_diag: Option<bool> = (None, parse_opt_bool, [TRACKED],
2887        "enable CFI diagnostics (default: no)"),
2888    sanitizer_cfi_recover: Option<bool> = (None, parse_opt_bool, [TRACKED],
2889        "enable CFI recovery (default: no)"),
2890    sanitizer_cfi_minimal_runtime: Option<bool> = (None, parse_opt_bool, [TRACKED] { TARGET_MODIFIER: SanitizerCfiMinimalRuntime },
2891        "enable minimal UBSan runtime for CFI (default: no)"),
2892    sanitizer_dataflow_abilist: Vec<String> = (Vec::new(), parse_comma_list, [TRACKED],
2893        "additional ABI list files that control how shadow parameters are passed (comma separated)"),
2894    sanitizer_kcfi_arity: Option<bool> = (None, parse_opt_bool, [TRACKED],
2895        "enable KCFI arity indicator (default: no)"),
2896    sanitizer_memory_track_origins: usize = (0, parse_sanitizer_memory_track_origins, [TRACKED],
2897        "enable origins tracking in MemorySanitizer"),
2898    sanitizer_recover: SanitizerSet = (SanitizerSet::empty(), parse_sanitizers, [TRACKED],
2899        "enable recovery for selected sanitizers"),
2900    self_profile: SwitchWithOptPath = (SwitchWithOptPath::Disabled,
2901        parse_switch_with_opt_path, [UNTRACKED],
2902        "run the self profiler and output the raw event data"),
2903    self_profile_counter: String = ("wall-time".to_string(), parse_string, [UNTRACKED],
2904        "counter used by the self profiler (default: `wall-time`), one of:
2905        `wall-time` (monotonic clock, i.e. `std::time::Instant`)
2906        `instructions:u` (retired instructions, userspace-only)
2907        `instructions-minus-irqs:u` (subtracting hardware interrupt counts for extra accuracy)"
2908    ),
2909    /// keep this in sync with the event filter names and defaults in rustc_data_structures/src/profiling.rs
2910    self_profile_events: Option<Vec<String>> = (None, parse_opt_comma_list, [UNTRACKED],
2911        "specify the events recorded by the self profiler;
2912        for example: `-Z self-profile-events=default,query-keys`
2913        all option groups: none, all, default, args
2914          `default` contains: generic-activity, query-provider, query-cache-hit-count, \
2915                            query-blocked, incr-cache-load, incr-result-hashing, artifact-sizes
2916             `args` contains: query-keys, function-args
2917        remaining (ungrouped) options: query-cache-hit, llvm"),
2918    share_generics: Option<bool> = (None, parse_opt_bool, [TRACKED],
2919        "make the current crate share its generic instantiations"),
2920    shell_argfiles: bool = (false, parse_bool, [UNTRACKED],
2921        "allow argument files to be specified with POSIX \"shell-style\" argument quoting"),
2922    simulate_remapped_rust_src_base: Option<PathBuf> = (None, parse_opt_pathbuf, [TRACKED],
2923        "simulate the effect of remap-debuginfo = true at bootstrapping by remapping path \
2924        to rust's source base directory. only meant for testing purposes"),
2925    small_data_threshold: Option<usize> = (None, parse_opt_number, [TRACKED],
2926        "Set the threshold for objects to be stored in a \"small data\" section"),
2927    span_debug: bool = (false, parse_bool, [UNTRACKED],
2928        "forward proc_macro::Span's `Debug` impl to `Span`"),
2929    /// o/w tests have closure@path
2930    span_free_formats: bool = (false, parse_bool, [UNTRACKED],
2931        "exclude spans when debug-printing compiler state (default: no)"),
2932    split_dwarf_inlining: bool = (false, parse_bool, [TRACKED],
2933        "provide minimal debug info in the object/executable to facilitate online \
2934         symbolication/stack traces in the absence of .dwo/.dwp files when using Split DWARF"),
2935    split_dwarf_kind: SplitDwarfKind = (SplitDwarfKind::Split, parse_split_dwarf_kind, [TRACKED],
2936        "split dwarf variant (only if -Csplit-debuginfo is enabled and on relevant platform)
2937        (default: `split`)
2938
2939        `split`: sections which do not require relocation are written into a DWARF object (`.dwo`)
2940                 file which is ignored by the linker
2941        `single`: sections which do not require relocation are written into object file but ignored
2942                  by the linker"),
2943    split_dwarf_out_dir : Option<PathBuf> = (None, parse_opt_pathbuf, [TRACKED],
2944        "location for writing split DWARF objects (`.dwo`) if enabled"),
2945    split_lto_unit: Option<bool> = (None, parse_opt_bool, [TRACKED],
2946        "enable LTO unit splitting (default: no)"),
2947    src_hash_algorithm: Option<SourceFileHashAlgorithm> = (None, parse_src_file_hash, [TRACKED],
2948        "hash algorithm of source files in debug info (`md5`, `sha1`, or `sha256`)"),
2949    #[rustc_lint_opt_deny_field_access("use `Session::stack_protector` instead of this field")]
2950    stack_protector: StackProtector = (StackProtector::None, parse_stack_protector, [TRACKED] { MITIGATION: StackProtector },
2951        "control stack smash protection strategy (`rustc --print stack-protector-strategies` for details)"),
2952    staticlib_allow_rdylib_deps: bool = (false, parse_bool, [TRACKED],
2953        "allow staticlibs to have rust dylib dependencies"),
2954    staticlib_hide_internal_symbols: bool = (false, parse_bool, [TRACKED],
2955        "hide non-exported Rust symbols when building staticlibs by setting STV_HIDDEN"),
2956    staticlib_rename_internal_symbols: bool = (false, parse_bool, [TRACKED],
2957        "rename non-exported Rust symbols when building staticlibs to avoid conflicts"),
2958    staticlib_prefer_dynamic: bool = (false, parse_bool, [TRACKED],
2959        "prefer dynamic linking to static linking for staticlibs (default: no)"),
2960    strict_init_checks: bool = (false, parse_bool, [TRACKED],
2961        "control if mem::uninitialized and mem::zeroed panic on more UB"),
2962    #[rustc_lint_opt_deny_field_access("use `Session::teach` instead of this field")]
2963    teach: bool = (false, parse_bool, [TRACKED],
2964        "show extended diagnostic help (default: no)"),
2965    temps_dir: Option<String> = (None, parse_opt_string, [UNTRACKED],
2966        "the directory the intermediate files are written to"),
2967    terminal_urls: TerminalUrl = (TerminalUrl::No, parse_terminal_url, [UNTRACKED],
2968        "use the OSC 8 hyperlink terminal specification to print hyperlinks in the compiler output"),
2969    #[rustc_lint_opt_deny_field_access("use `Session::lto` instead of this field")]
2970    thinlto: Option<bool> = (None, parse_opt_bool, [TRACKED],
2971        "enable ThinLTO when possible"),
2972    threads: Option<String> = (None, parse_opt_string, [UNTRACKED],
2973        "use `--jobs-frontend` instead"),
2974    time_llvm_passes: bool = (false, parse_bool, [UNTRACKED],
2975        "measure time of each LLVM pass (default: no)"),
2976    time_passes: bool = (false, parse_bool, [UNTRACKED],
2977        "measure time of each rustc pass (default: no)"),
2978    time_passes_format: TimePassesFormat = (TimePassesFormat::Text, parse_time_passes_format, [UNTRACKED],
2979        "the format to use for -Z time-passes (`text` (default) or `json`)"),
2980    tiny_const_eval_limit: bool = (false, parse_bool, [TRACKED],
2981        "sets a tiny, non-configurable limit for const eval; useful for compiler tests"),
2982    #[rustc_lint_opt_deny_field_access("use `Session::tls_model` instead of this field")]
2983    tls_model: Option<TlsModel> = (None, parse_tls_model, [TRACKED],
2984        "choose the TLS model to use (`rustc --print tls-models` for details)"),
2985    trace_macros: bool = (false, parse_bool, [UNTRACKED],
2986        "for every macro invocation, print its name and arguments (default: no)"),
2987    track_diagnostics: bool = (false, parse_bool, [UNTRACKED],
2988        "tracks where in rustc a diagnostic was emitted"),
2989    translate_remapped_path_to_local_path: bool = (true, parse_bool, [TRACKED],
2990        "translate remapped paths into local paths when possible (default: yes)"),
2991    trap_unreachable: Option<bool> = (None, parse_opt_bool, [TRACKED],
2992        "generate trap instructions for unreachable intrinsics (default: use target setting, usually yes)"),
2993    treat_err_as_bug: Option<NonZero<usize>> = (None, parse_treat_err_as_bug, [TRACKED],
2994        "treat the `val`th error that occurs as bug (default if not specified: 0 - don't treat errors as bugs. \
2995        default if specified without a value: 1 - treat the first error as bug)"),
2996    trim_diagnostic_paths: bool = (true, parse_bool, [UNTRACKED],
2997        "in diagnostics, use heuristics to shorten paths referring to items"),
2998    tune_cpu: Option<String> = (None, parse_opt_string, [TRACKED],
2999        "select processor to schedule for (`rustc --print target-cpus` for details)"),
3000    #[rustc_lint_opt_deny_field_access("use `Session::ub_checks` instead of this field")]
3001    ub_checks: Option<bool> = (None, parse_opt_bool, [TRACKED],
3002        "emit runtime checks for Undefined Behavior (default: -Cdebug-assertions)"),
3003    ui_testing: bool = (false, parse_bool, [UNTRACKED],
3004        "emit compiler diagnostics in a form suitable for UI testing (default: no)"),
3005    uninit_const_chunk_threshold: usize = (16, parse_number, [TRACKED],
3006        "allow generating const initializers with mixed init/uninit chunks, \
3007        and set the maximum number of chunks for which this is allowed (default: 16)"),
3008    unleash_the_miri_inside_of_you: bool = (false, parse_bool, [TRACKED],
3009        "take the brakes off const evaluation. NOTE: this is unsound (default: no)"),
3010    unpretty: Option<String> = (None, parse_unpretty, [UNTRACKED],
3011        "present the input source, unstable (and less-pretty) variants;
3012        `normal`,
3013        `expanded`, `expanded,identified`,
3014        `expanded,hygiene` (with internal representations),
3015        `ast-tree` (raw AST before expansion),
3016        `ast-tree,expanded` (raw AST after expansion),
3017        `hir` (the HIR), `hir,identified`,
3018        `hir,typed` (HIR with types for each node),
3019        `hir-tree` (dump the raw HIR),
3020        `thir-tree`, `thir-flat`,
3021        `mir` (the MIR), or `mir-cfg` (graphviz formatted MIR)"),
3022    unsound_mir_opts: bool = (false, parse_bool, [TRACKED],
3023        "enable unsound and buggy MIR optimizations (default: no)"),
3024    /// This name is kind of confusing: Most unstable options enable something themselves, while
3025    /// this just allows "normal" options to be feature-gated.
3026    ///
3027    /// The main check for `-Zunstable-options` takes place separately from the
3028    /// usual parsing of `-Z` options (see [`crate::config::nightly_options`]),
3029    /// so this boolean value is mostly used for enabling unstable _values_ of
3030    /// stable options. That separate check doesn't handle boolean values, so
3031    /// to avoid an inconsistent state we also forbid them here.
3032    #[rustc_lint_opt_deny_field_access("use `Session::unstable_options` instead of this field")]
3033    unstable_options: bool = (false, parse_no_value, [UNTRACKED],
3034        "adds unstable command line options to rustc interface (default: no)"),
3035    use_ctors_section: Option<bool> = (None, parse_opt_bool, [TRACKED],
3036        "use legacy .ctors section for initializers rather than .init_array"),
3037    use_sync_unwind: Option<bool> = (None, parse_opt_bool, [TRACKED],
3038        "Generate sync unwind tables instead of async unwind tables (default: no)"),
3039    validate_mir: bool = (false, parse_bool, [UNTRACKED],
3040        "validate MIR after each transformation"),
3041    verbose_asm: bool = (false, parse_bool, [TRACKED],
3042        "add descriptive comments from LLVM to the assembly (may change behavior) (default: no)"),
3043    #[rustc_lint_opt_deny_field_access("use `Session::verbose_internals` instead of this field")]
3044    verbose_internals: bool = (false, parse_bool, [TRACKED_NO_CRATE_HASH],
3045        "in general, enable more debug printouts (default: no)"),
3046    #[rustc_lint_opt_deny_field_access("use `Session::verify_llvm_ir` instead of this field")]
3047    verify_llvm_ir: bool = (false, parse_bool, [TRACKED],
3048        "verify LLVM IR (default: no)"),
3049    virtual_function_elimination: bool = (false, parse_bool, [TRACKED],
3050        "enables dead virtual function elimination optimization. \
3051        Requires `-Clto[=[fat,yes]]`"),
3052    wasi_exec_model: Option<WasiExecModel> = (None, parse_wasi_exec_model, [TRACKED],
3053        "whether to build a wasi command or reactor"),
3054    // This option only still exists to provide a more gradual transition path for people who need
3055    // the spec-complaint C ABI to be used.
3056    // FIXME remove this after a couple releases
3057    wasm_c_abi: () = ((), parse_wasm_c_abi, [TRACKED],
3058        "use spec-compliant C ABI for `wasm32-unknown-unknown` (deprecated, always enabled)"),
3059    wasm_proc_macros: bool = (false, parse_bool, [TRACKED],
3060        "enable support for compiling and loading wasm proc macros"),
3061    write_long_types_to_disk: bool = (true, parse_bool, [UNTRACKED],
3062        "whether long type names should be written to files instead of being printed in errors"),
3063    // tidy-alphabetical-end
3064
3065    // If you add a new option, please update:
3066    // - compiler/rustc_interface/src/tests.rs
3067    // - src/doc/unstable-book/src/compiler-flags
3068}