1#![allow(internal_features)]
3#![feature(associated_type_defaults)]
4#![feature(if_let_guard)]
5#![feature(macro_metavar_expr)]
6#![feature(proc_macro_diagnostic)]
7#![feature(proc_macro_internals)]
8#![feature(try_blocks)]
9#![feature(yeet_expr)]
10mod build;
13mod errors;
14mod mbe;
15mod placeholders;
16mod proc_macro_server;
17mod stats;
18
19pub use mbe::macro_rules::{MacroRulesMacroExpander, compile_declarative_macro};
20pub mod base;
21pub mod config;
22pub mod expand;
23pub mod module;
24pub mod proc_macro;
25
26pub fn provide(providers: &mut rustc_middle::query::Providers) {
27 providers.derive_macro_expansion = proc_macro::provide_derive_macro_expansion;
28}
29
30#[allow(non_upper_case_globals)]
#[doc(hidden)]
#[doc =
r" Auto-generated constants for type-checked references to Fluent messages."]
pub(crate) mod fluent_generated {
#[doc =
"Constant referring to Fluent message `expand_attributes_on_expressions_experimental` from `expand`"]
pub const expand_attributes_on_expressions_experimental:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_attributes_on_expressions_experimental"),
None);
#[doc =
"Constant referring to Fluent message `expand_attributes_on_expressions_experimental.help_outer_doc` from `expand`"]
pub const expand_help_outer_doc: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("help_outer_doc"));
#[doc =
"Constant referring to Fluent message `expand_attributes_on_expressions_experimental.help_inner_doc` from `expand`"]
pub const expand_help_inner_doc: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("help_inner_doc"));
#[doc =
"Constant referring to Fluent message `expand_cfg_attr_no_attributes` from `expand`"]
pub const expand_cfg_attr_no_attributes: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_cfg_attr_no_attributes"),
None);
#[doc =
"Constant referring to Fluent message `expand_count_repetition_misplaced` from `expand`"]
pub const expand_count_repetition_misplaced: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_count_repetition_misplaced"),
None);
#[doc =
"Constant referring to Fluent message `expand_crate_name_in_cfg_attr` from `expand`"]
pub const expand_crate_name_in_cfg_attr: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_crate_name_in_cfg_attr"),
None);
#[doc =
"Constant referring to Fluent message `expand_crate_type_in_cfg_attr` from `expand`"]
pub const expand_crate_type_in_cfg_attr: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_crate_type_in_cfg_attr"),
None);
#[doc =
"Constant referring to Fluent message `expand_custom_attribute_panicked` from `expand`"]
pub const expand_custom_attribute_panicked: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_custom_attribute_panicked"),
None);
#[doc =
"Constant referring to Fluent message `expand_custom_attribute_panicked.help` from `expand`"]
pub const expand_help: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("help"));
#[doc =
"Constant referring to Fluent message `expand_duplicate_matcher_binding` from `expand`"]
pub const expand_duplicate_matcher_binding: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_duplicate_matcher_binding"),
None);
#[doc =
"Constant referring to Fluent message `expand_duplicate_matcher_binding.label` from `expand`"]
pub const expand_label: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("label"));
#[doc =
"Constant referring to Fluent message `expand_duplicate_matcher_binding.label2` from `expand`"]
pub const expand_label2: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("label2"));
#[doc =
"Constant referring to Fluent message `expand_empty_delegation_mac` from `expand`"]
pub const expand_empty_delegation_mac: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_empty_delegation_mac"),
None);
#[doc =
"Constant referring to Fluent message `expand_expected_paren_or_brace` from `expand`"]
pub const expand_expected_paren_or_brace: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_expected_paren_or_brace"),
None);
#[doc =
"Constant referring to Fluent message `expand_explain_doc_comment_inner` from `expand`"]
pub const expand_explain_doc_comment_inner: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_explain_doc_comment_inner"),
None);
#[doc =
"Constant referring to Fluent message `expand_explain_doc_comment_outer` from `expand`"]
pub const expand_explain_doc_comment_outer: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_explain_doc_comment_outer"),
None);
#[doc =
"Constant referring to Fluent message `expand_expr_repeat_no_syntax_vars` from `expand`"]
pub const expand_expr_repeat_no_syntax_vars: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_expr_repeat_no_syntax_vars"),
None);
#[doc =
"Constant referring to Fluent message `expand_feature_not_allowed` from `expand`"]
pub const expand_feature_not_allowed: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_feature_not_allowed"),
None);
#[doc =
"Constant referring to Fluent message `expand_feature_removed` from `expand`"]
pub const expand_feature_removed: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_feature_removed"),
None);
#[doc =
"Constant referring to Fluent message `expand_feature_removed.note` from `expand`"]
pub const expand_note: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("note"));
#[doc =
"Constant referring to Fluent message `expand_feature_removed.reason` from `expand`"]
pub const expand_reason: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("reason"));
#[doc =
"Constant referring to Fluent message `expand_file_modules_in_proc_macro_input_are_unstable` from `expand`"]
pub const expand_file_modules_in_proc_macro_input_are_unstable:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_file_modules_in_proc_macro_input_are_unstable"),
None);
#[doc =
"Constant referring to Fluent message `expand_glob_delegation_outside_impls` from `expand`"]
pub const expand_glob_delegation_outside_impls: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_glob_delegation_outside_impls"),
None);
#[doc =
"Constant referring to Fluent message `expand_glob_delegation_traitless_qpath` from `expand`"]
pub const expand_glob_delegation_traitless_qpath:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_glob_delegation_traitless_qpath"),
None);
#[doc =
"Constant referring to Fluent message `expand_incomplete_parse` from `expand`"]
pub const expand_incomplete_parse: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_incomplete_parse"),
None);
#[doc =
"Constant referring to Fluent message `expand_incomplete_parse.suggestion_add_semi` from `expand`"]
pub const expand_suggestion_add_semi: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("suggestion_add_semi"));
#[doc =
"Constant referring to Fluent message `expand_invalid_cfg_expected_syntax` from `expand`"]
pub const expand_invalid_cfg_expected_syntax: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_invalid_cfg_expected_syntax"),
None);
#[doc =
"Constant referring to Fluent message `expand_invalid_cfg_multiple_predicates` from `expand`"]
pub const expand_invalid_cfg_multiple_predicates:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_invalid_cfg_multiple_predicates"),
None);
#[doc =
"Constant referring to Fluent message `expand_invalid_cfg_no_parens` from `expand`"]
pub const expand_invalid_cfg_no_parens: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_invalid_cfg_no_parens"),
None);
#[doc =
"Constant referring to Fluent message `expand_invalid_cfg_no_predicate` from `expand`"]
pub const expand_invalid_cfg_no_predicate: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_invalid_cfg_no_predicate"),
None);
#[doc =
"Constant referring to Fluent message `expand_invalid_cfg_predicate_literal` from `expand`"]
pub const expand_invalid_cfg_predicate_literal: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_invalid_cfg_predicate_literal"),
None);
#[doc =
"Constant referring to Fluent message `expand_invalid_fragment_specifier` from `expand`"]
pub const expand_invalid_fragment_specifier: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_invalid_fragment_specifier"),
None);
#[doc =
"Constant referring to Fluent message `expand_macro_args_bad_delim` from `expand`"]
pub const expand_macro_args_bad_delim: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_macro_args_bad_delim"),
None);
#[doc =
"Constant referring to Fluent message `expand_macro_args_bad_delim_sugg` from `expand`"]
pub const expand_macro_args_bad_delim_sugg: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_macro_args_bad_delim_sugg"),
None);
#[doc =
"Constant referring to Fluent message `expand_macro_body_stability` from `expand`"]
pub const expand_macro_body_stability: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_macro_body_stability"),
None);
#[doc =
"Constant referring to Fluent message `expand_macro_call_unused_doc_comment` from `expand`"]
pub const expand_macro_call_unused_doc_comment: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_macro_call_unused_doc_comment"),
None);
#[doc =
"Constant referring to Fluent message `expand_macro_const_stability` from `expand`"]
pub const expand_macro_const_stability: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_macro_const_stability"),
None);
#[doc =
"Constant referring to Fluent message `expand_macro_expands_to_match_arm` from `expand`"]
pub const expand_macro_expands_to_match_arm: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_macro_expands_to_match_arm"),
None);
#[doc =
"Constant referring to Fluent message `expand_malformed_feature_attribute` from `expand`"]
pub const expand_malformed_feature_attribute: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_malformed_feature_attribute"),
None);
#[doc =
"Constant referring to Fluent message `expand_malformed_feature_attribute.expected` from `expand`"]
pub const expand_expected: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("expected"));
#[doc =
"Constant referring to Fluent message `expand_meta_var_dif_seq_matchers` from `expand`"]
pub const expand_meta_var_dif_seq_matchers: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_meta_var_dif_seq_matchers"),
None);
#[doc =
"Constant referring to Fluent message `expand_metavar_still_repeating` from `expand`"]
pub const expand_metavar_still_repeating: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_metavar_still_repeating"),
None);
#[doc =
"Constant referring to Fluent message `expand_metavariable_wrong_operator` from `expand`"]
pub const expand_metavariable_wrong_operator: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_metavariable_wrong_operator"),
None);
#[doc =
"Constant referring to Fluent message `expand_metavariable_wrong_operator.binder_label` from `expand`"]
pub const expand_binder_label: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("binder_label"));
#[doc =
"Constant referring to Fluent message `expand_metavariable_wrong_operator.occurrence_label` from `expand`"]
pub const expand_occurrence_label: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("occurrence_label"));
#[doc =
"Constant referring to Fluent message `expand_missing_fragment_specifier` from `expand`"]
pub const expand_missing_fragment_specifier: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_missing_fragment_specifier"),
None);
#[doc =
"Constant referring to Fluent message `expand_missing_fragment_specifier.suggestion_add_fragspec` from `expand`"]
pub const expand_suggestion_add_fragspec: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("suggestion_add_fragspec"));
#[doc =
"Constant referring to Fluent message `expand_missing_fragment_specifier.valid` from `expand`"]
pub const expand_valid: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("valid"));
#[doc =
"Constant referring to Fluent message `expand_module_circular` from `expand`"]
pub const expand_module_circular: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_module_circular"),
None);
#[doc =
"Constant referring to Fluent message `expand_module_file_not_found` from `expand`"]
pub const expand_module_file_not_found: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_module_file_not_found"),
None);
#[doc =
"Constant referring to Fluent message `expand_module_in_block` from `expand`"]
pub const expand_module_in_block: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_module_in_block"),
None);
#[doc =
"Constant referring to Fluent message `expand_module_multiple_candidates` from `expand`"]
pub const expand_module_multiple_candidates: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_module_multiple_candidates"),
None);
#[doc =
"Constant referring to Fluent message `expand_must_repeat_once` from `expand`"]
pub const expand_must_repeat_once: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_must_repeat_once"),
None);
#[doc =
"Constant referring to Fluent message `expand_mve_extra_tokens` from `expand`"]
pub const expand_mve_extra_tokens: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_mve_extra_tokens"),
None);
#[doc =
"Constant referring to Fluent message `expand_mve_extra_tokens.range` from `expand`"]
pub const expand_range: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("range"));
#[doc =
"Constant referring to Fluent message `expand_mve_extra_tokens.exact` from `expand`"]
pub const expand_exact: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("exact"));
#[doc =
"Constant referring to Fluent message `expand_mve_extra_tokens.suggestion` from `expand`"]
pub const expand_suggestion: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("suggestion"));
#[doc =
"Constant referring to Fluent message `expand_mve_missing_paren` from `expand`"]
pub const expand_mve_missing_paren: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_mve_missing_paren"),
None);
#[doc =
"Constant referring to Fluent message `expand_mve_missing_paren.unexpected` from `expand`"]
pub const expand_unexpected: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("unexpected"));
#[doc =
"Constant referring to Fluent message `expand_mve_unrecognized_expr` from `expand`"]
pub const expand_mve_unrecognized_expr: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_mve_unrecognized_expr"),
None);
#[doc =
"Constant referring to Fluent message `expand_mve_unrecognized_var` from `expand`"]
pub const expand_mve_unrecognized_var: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_mve_unrecognized_var"),
None);
#[doc =
"Constant referring to Fluent message `expand_or_patterns_back_compat` from `expand`"]
pub const expand_or_patterns_back_compat: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_or_patterns_back_compat"),
None);
#[doc =
"Constant referring to Fluent message `expand_proc_macro_back_compat` from `expand`"]
pub const expand_proc_macro_back_compat: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_proc_macro_back_compat"),
None);
#[doc =
"Constant referring to Fluent message `expand_proc_macro_derive_panicked` from `expand`"]
pub const expand_proc_macro_derive_panicked: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_proc_macro_derive_panicked"),
None);
#[doc =
"Constant referring to Fluent message `expand_proc_macro_derive_tokens` from `expand`"]
pub const expand_proc_macro_derive_tokens: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_proc_macro_derive_tokens"),
None);
#[doc =
"Constant referring to Fluent message `expand_proc_macro_panicked` from `expand`"]
pub const expand_proc_macro_panicked: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_proc_macro_panicked"),
None);
#[doc =
"Constant referring to Fluent message `expand_recursion_limit_reached` from `expand`"]
pub const expand_recursion_limit_reached: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_recursion_limit_reached"),
None);
#[doc =
"Constant referring to Fluent message `expand_remove_expr_not_supported` from `expand`"]
pub const expand_remove_expr_not_supported: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_remove_expr_not_supported"),
None);
#[doc =
"Constant referring to Fluent message `expand_remove_node_not_supported` from `expand`"]
pub const expand_remove_node_not_supported: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_remove_node_not_supported"),
None);
#[doc =
"Constant referring to Fluent message `expand_resolve_relative_path` from `expand`"]
pub const expand_resolve_relative_path: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_resolve_relative_path"),
None);
#[doc =
"Constant referring to Fluent message `expand_trace_macro` from `expand`"]
pub const expand_trace_macro: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_trace_macro"),
None);
#[doc =
"Constant referring to Fluent message `expand_trailing_semi_macro` from `expand`"]
pub const expand_trailing_semi_macro: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_trailing_semi_macro"),
None);
#[doc =
"Constant referring to Fluent message `expand_trailing_semi_macro.note1` from `expand`"]
pub const expand_note1: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("note1"));
#[doc =
"Constant referring to Fluent message `expand_trailing_semi_macro.note2` from `expand`"]
pub const expand_note2: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("note2"));
#[doc =
"Constant referring to Fluent message `expand_unknown_macro_variable` from `expand`"]
pub const expand_unknown_macro_variable: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_unknown_macro_variable"),
None);
#[doc =
"Constant referring to Fluent message `expand_unsupported_key_value` from `expand`"]
pub const expand_unsupported_key_value: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_unsupported_key_value"),
None);
#[doc =
"Constant referring to Fluent message `expand_unused_builtin_attribute` from `expand`"]
pub const expand_unused_builtin_attribute: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_unused_builtin_attribute"),
None);
#[doc =
"Constant referring to Fluent message `expand_wrong_fragment_kind` from `expand`"]
pub const expand_wrong_fragment_kind: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("expand_wrong_fragment_kind"),
None);
#[doc =
r" Constants expected to exist by the diagnostic derive macros to use as default Fluent"]
#[doc = r" identifiers for different subdiagnostic kinds."]
pub mod _subdiag {
#[doc = r" Default for `#[help]`"]
pub const help: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("help"));
#[doc = r" Default for `#[note]`"]
pub const note: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("note"));
#[doc = r" Default for `#[warn]`"]
pub const warn: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("warn"));
#[doc = r" Default for `#[label]`"]
pub const label: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("label"));
#[doc = r" Default for `#[suggestion]`"]
pub const suggestion: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("suggestion"));
}
}rustc_fluent_macro::fluent_messages! { "../messages.ftl" }