1#![feature(array_try_map)]
3#![feature(assert_matches)]
4#![feature(box_patterns)]
5#![feature(decl_macro)]
6#![feature(if_let_guard)]
7#![feature(never_type)]
8#![feature(slice_ptr_get)]
9#![feature(trait_alias)]
10#![feature(try_blocks)]
11#![feature(unqualified_local_imports)]
12#![feature(yeet_expr)]
13#![warn(unqualified_local_imports)]
14pub mod check_consts;
17pub mod const_eval;
18mod errors;
19pub mod interpret;
20pub mod util;
21
22use std::sync::atomic::AtomicBool;
23
24use rustc_middle::ty;
25use rustc_middle::util::Providers;
26
27pub use self::errors::ReportErrorExt;
28
29#[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 `const_eval_address_space_full` from `const_eval`"]
pub const const_eval_address_space_full: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_address_space_full"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_alignment_check_failed` from `const_eval`"]
pub const const_eval_alignment_check_failed: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_alignment_check_failed"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_already_reported` from `const_eval`"]
pub const const_eval_already_reported: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_already_reported"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_assume_false` from `const_eval`"]
pub const const_eval_assume_false: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_assume_false"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_bad_pointer_op` from `const_eval`"]
pub const const_eval_bad_pointer_op: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_bad_pointer_op"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_bad_pointer_op_attempting` from `const_eval`"]
pub const const_eval_bad_pointer_op_attempting: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_bad_pointer_op_attempting"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_bounds_check_failed` from `const_eval`"]
pub const const_eval_bounds_check_failed: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_bounds_check_failed"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_call_nonzero_intrinsic` from `const_eval`"]
pub const const_eval_call_nonzero_intrinsic: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_call_nonzero_intrinsic"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_closure_call` from `const_eval`"]
pub const const_eval_closure_call: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_closure_call"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_closure_fndef_not_const` from `const_eval`"]
pub const const_eval_closure_fndef_not_const: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_closure_fndef_not_const"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_consider_dereferencing` from `const_eval`"]
pub const const_eval_consider_dereferencing: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_consider_dereferencing"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_const_accesses_mut_global` from `const_eval`"]
pub const const_eval_const_accesses_mut_global: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_const_accesses_mut_global"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_const_context` from `const_eval`"]
pub const const_eval_const_context: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_const_context"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_const_heap_ptr_in_final` from `const_eval`"]
pub const const_eval_const_heap_ptr_in_final: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_const_heap_ptr_in_final"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_const_heap_ptr_in_final.note` from `const_eval`"]
pub const const_eval_note: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("note"));
#[doc =
"Constant referring to Fluent message `const_eval_const_make_global_ptr_already_made_global` from `const_eval`"]
pub const const_eval_const_make_global_ptr_already_made_global:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_const_make_global_ptr_already_made_global"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_const_make_global_ptr_is_non_heap` from `const_eval`"]
pub const const_eval_const_make_global_ptr_is_non_heap:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_const_make_global_ptr_is_non_heap"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_const_make_global_with_dangling_ptr` from `const_eval`"]
pub const const_eval_const_make_global_with_dangling_ptr:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_const_make_global_with_dangling_ptr"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_const_make_global_with_offset` from `const_eval`"]
pub const const_eval_const_make_global_with_offset:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_const_make_global_with_offset"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_copy_nonoverlapping_overlapping` from `const_eval`"]
pub const const_eval_copy_nonoverlapping_overlapping:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_copy_nonoverlapping_overlapping"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_dangling_int_pointer` from `const_eval`"]
pub const const_eval_dangling_int_pointer: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_dangling_int_pointer"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_dangling_null_pointer` from `const_eval`"]
pub const const_eval_dangling_null_pointer: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_dangling_null_pointer"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_dangling_ptr_in_final` from `const_eval`"]
pub const const_eval_dangling_ptr_in_final: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_dangling_ptr_in_final"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_dead_local` from `const_eval`"]
pub const const_eval_dead_local: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_dead_local"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_dealloc_immutable` from `const_eval`"]
pub const const_eval_dealloc_immutable: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_dealloc_immutable"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_dealloc_incorrect_layout` from `const_eval`"]
pub const const_eval_dealloc_incorrect_layout: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_dealloc_incorrect_layout"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_dealloc_kind_mismatch` from `const_eval`"]
pub const const_eval_dealloc_kind_mismatch: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_dealloc_kind_mismatch"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_deref_function_pointer` from `const_eval`"]
pub const const_eval_deref_function_pointer: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_deref_function_pointer"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_deref_typeid_pointer` from `const_eval`"]
pub const const_eval_deref_typeid_pointer: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_deref_typeid_pointer"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_deref_vtable_pointer` from `const_eval`"]
pub const const_eval_deref_vtable_pointer: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_deref_vtable_pointer"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_division_by_zero` from `const_eval`"]
pub const const_eval_division_by_zero: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_division_by_zero"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_division_overflow` from `const_eval`"]
pub const const_eval_division_overflow: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_division_overflow"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_dyn_call_not_a_method` from `const_eval`"]
pub const const_eval_dyn_call_not_a_method: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_dyn_call_not_a_method"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_error` from `const_eval`"]
pub const const_eval_error: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_error"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_exact_div_has_remainder` from `const_eval`"]
pub const const_eval_exact_div_has_remainder: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_exact_div_has_remainder"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_extern_static` from `const_eval`"]
pub const const_eval_extern_static: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_extern_static"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_extern_type_field` from `const_eval`"]
pub const const_eval_extern_type_field: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_extern_type_field"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_fn_ptr_call` from `const_eval`"]
pub const const_eval_fn_ptr_call: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_fn_ptr_call"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_frame_note` from `const_eval`"]
pub const const_eval_frame_note: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_frame_note"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_frame_note_inner` from `const_eval`"]
pub const const_eval_frame_note_inner: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_frame_note_inner"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_frame_note_last` from `const_eval`"]
pub const const_eval_frame_note_last: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_frame_note_last"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_incompatible_arg_types` from `const_eval`"]
pub const const_eval_incompatible_arg_types: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_incompatible_arg_types"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_incompatible_calling_conventions` from `const_eval`"]
pub const const_eval_incompatible_calling_conventions:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_incompatible_calling_conventions"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_incompatible_return_types` from `const_eval`"]
pub const const_eval_incompatible_return_types: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_incompatible_return_types"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_interior_mutable_borrow_escaping` from `const_eval`"]
pub const const_eval_interior_mutable_borrow_escaping:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_interior_mutable_borrow_escaping"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_interior_mutable_borrow_escaping.label` from `const_eval`"]
pub const const_eval_label: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("label"));
#[doc =
"Constant referring to Fluent message `const_eval_interior_mutable_borrow_escaping.note2` from `const_eval`"]
pub const const_eval_note2: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("note2"));
#[doc =
"Constant referring to Fluent message `const_eval_interior_mutable_borrow_escaping.help` from `const_eval`"]
pub const const_eval_help: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("help"));
#[doc =
"Constant referring to Fluent message `const_eval_intern_kind` from `const_eval`"]
pub const const_eval_intern_kind: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_intern_kind"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_interrupted` from `const_eval`"]
pub const const_eval_interrupted: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_interrupted"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_align_details` from `const_eval`"]
pub const const_eval_invalid_align_details: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_align_details"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_bool` from `const_eval`"]
pub const const_eval_invalid_bool: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_bool"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_char` from `const_eval`"]
pub const const_eval_invalid_char: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_char"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_dealloc` from `const_eval`"]
pub const const_eval_invalid_dealloc: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_dealloc"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_function_pointer` from `const_eval`"]
pub const const_eval_invalid_function_pointer: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_function_pointer"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_meta` from `const_eval`"]
pub const const_eval_invalid_meta: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_meta"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_meta_slice` from `const_eval`"]
pub const const_eval_invalid_meta_slice: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_meta_slice"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_niched_enum_variant_written` from `const_eval`"]
pub const const_eval_invalid_niched_enum_variant_written:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_niched_enum_variant_written"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_str` from `const_eval`"]
pub const const_eval_invalid_str: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_str"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_tag` from `const_eval`"]
pub const const_eval_invalid_tag: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_tag"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_transmute` from `const_eval`"]
pub const const_eval_invalid_transmute: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_transmute"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_uninit_bytes` from `const_eval`"]
pub const const_eval_invalid_uninit_bytes: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_uninit_bytes"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_uninit_bytes_unknown` from `const_eval`"]
pub const const_eval_invalid_uninit_bytes_unknown:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_uninit_bytes_unknown"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_vtable_pointer` from `const_eval`"]
pub const const_eval_invalid_vtable_pointer: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_vtable_pointer"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_invalid_vtable_trait` from `const_eval`"]
pub const const_eval_invalid_vtable_trait: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_invalid_vtable_trait"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_lazy_lock` from `const_eval`"]
pub const const_eval_lazy_lock: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_lazy_lock"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_live_drop` from `const_eval`"]
pub const const_eval_live_drop: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_live_drop"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_live_drop.dropped_at_label` from `const_eval`"]
pub const const_eval_dropped_at_label: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("dropped_at_label"));
#[doc =
"Constant referring to Fluent message `const_eval_long_running` from `const_eval`"]
pub const const_eval_long_running: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_long_running"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_memory_exhausted` from `const_eval`"]
pub const const_eval_memory_exhausted: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_memory_exhausted"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_modified_global` from `const_eval`"]
pub const const_eval_modified_global: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_modified_global"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_mutable_borrow_escaping` from `const_eval`"]
pub const const_eval_mutable_borrow_escaping: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_mutable_borrow_escaping"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_mutable_ptr_in_final` from `const_eval`"]
pub const const_eval_mutable_ptr_in_final: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_mutable_ptr_in_final"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_nested_static_in_thread_local` from `const_eval`"]
pub const const_eval_nested_static_in_thread_local:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_nested_static_in_thread_local"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_non_const_await` from `const_eval`"]
pub const const_eval_non_const_await: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_non_const_await"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_non_const_closure` from `const_eval`"]
pub const const_eval_non_const_closure: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_non_const_closure"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_non_const_deref_coercion` from `const_eval`"]
pub const const_eval_non_const_deref_coercion: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_non_const_deref_coercion"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_non_const_deref_coercion.target_note` from `const_eval`"]
pub const const_eval_target_note: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("target_note"));
#[doc =
"Constant referring to Fluent message `const_eval_non_const_fmt_macro_call` from `const_eval`"]
pub const const_eval_non_const_fmt_macro_call: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_non_const_fmt_macro_call"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_non_const_fn_call` from `const_eval`"]
pub const const_eval_non_const_fn_call: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_non_const_fn_call"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_non_const_for_loop_into_iter` from `const_eval`"]
pub const const_eval_non_const_for_loop_into_iter:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_non_const_for_loop_into_iter"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_non_const_impl` from `const_eval`"]
pub const const_eval_non_const_impl: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_non_const_impl"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_non_const_intrinsic` from `const_eval`"]
pub const const_eval_non_const_intrinsic: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_non_const_intrinsic"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_non_const_match_eq` from `const_eval`"]
pub const const_eval_non_const_match_eq: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_non_const_match_eq"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_non_const_operator` from `const_eval`"]
pub const const_eval_non_const_operator: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_non_const_operator"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_non_const_question_branch` from `const_eval`"]
pub const const_eval_non_const_question_branch: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_non_const_question_branch"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_non_const_question_from_residual` from `const_eval`"]
pub const const_eval_non_const_question_from_residual:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_non_const_question_from_residual"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_non_const_try_block_from_output` from `const_eval`"]
pub const const_eval_non_const_try_block_from_output:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_non_const_try_block_from_output"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_not_enough_caller_args` from `const_eval`"]
pub const const_eval_not_enough_caller_args: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_not_enough_caller_args"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_offset_from_different_allocations` from `const_eval`"]
pub const const_eval_offset_from_different_allocations:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_offset_from_different_allocations"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_offset_from_out_of_bounds` from `const_eval`"]
pub const const_eval_offset_from_out_of_bounds: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_offset_from_out_of_bounds"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_offset_from_overflow` from `const_eval`"]
pub const const_eval_offset_from_overflow: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_offset_from_overflow"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_offset_from_underflow` from `const_eval`"]
pub const const_eval_offset_from_underflow: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_offset_from_underflow"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_offset_from_unsigned_overflow` from `const_eval`"]
pub const const_eval_offset_from_unsigned_overflow:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_offset_from_unsigned_overflow"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_overflow_arith` from `const_eval`"]
pub const const_eval_overflow_arith: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_overflow_arith"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_overflow_shift` from `const_eval`"]
pub const const_eval_overflow_shift: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_overflow_shift"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_panic` from `const_eval`"]
pub const const_eval_panic: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_panic"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_panic_non_str` from `const_eval`"]
pub const const_eval_panic_non_str: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_panic_non_str"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_partial_pointer_in_final` from `const_eval`"]
pub const const_eval_partial_pointer_in_final: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_partial_pointer_in_final"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_partial_pointer_read` from `const_eval`"]
pub const const_eval_partial_pointer_read: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_partial_pointer_read"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_pointer_arithmetic_overflow` from `const_eval`"]
pub const const_eval_pointer_arithmetic_overflow:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_pointer_arithmetic_overflow"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_pointer_out_of_bounds` from `const_eval`"]
pub const const_eval_pointer_out_of_bounds: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_pointer_out_of_bounds"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_pointer_use_after_free` from `const_eval`"]
pub const const_eval_pointer_use_after_free: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_pointer_use_after_free"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_ptr_as_bytes_1` from `const_eval`"]
pub const const_eval_ptr_as_bytes_1: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_ptr_as_bytes_1"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_ptr_as_bytes_2` from `const_eval`"]
pub const const_eval_ptr_as_bytes_2: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_ptr_as_bytes_2"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_range` from `const_eval`"]
pub const const_eval_range: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_range"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_range_lower` from `const_eval`"]
pub const const_eval_range_lower: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_range_lower"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_range_singular` from `const_eval`"]
pub const const_eval_range_singular: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_range_singular"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_range_upper` from `const_eval`"]
pub const const_eval_range_upper: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_range_upper"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_range_wrapping` from `const_eval`"]
pub const const_eval_range_wrapping: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_range_wrapping"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_raw_bytes` from `const_eval`"]
pub const const_eval_raw_bytes: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_raw_bytes"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_raw_ptr_comparison` from `const_eval`"]
pub const const_eval_raw_ptr_comparison: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_raw_ptr_comparison"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_raw_ptr_to_int` from `const_eval`"]
pub const const_eval_raw_ptr_to_int: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_raw_ptr_to_int"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_read_pointer_as_int` from `const_eval`"]
pub const const_eval_read_pointer_as_int: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_read_pointer_as_int"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_realloc_or_alloc_with_offset` from `const_eval`"]
pub const const_eval_realloc_or_alloc_with_offset:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_realloc_or_alloc_with_offset"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_recursive_static` from `const_eval`"]
pub const const_eval_recursive_static: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_recursive_static"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_remainder_by_zero` from `const_eval`"]
pub const const_eval_remainder_by_zero: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_remainder_by_zero"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_remainder_overflow` from `const_eval`"]
pub const const_eval_remainder_overflow: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_remainder_overflow"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_scalar_size_mismatch` from `const_eval`"]
pub const const_eval_scalar_size_mismatch: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_scalar_size_mismatch"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_size_overflow` from `const_eval`"]
pub const const_eval_size_overflow: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_size_overflow"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_stack_frame_limit_reached` from `const_eval`"]
pub const const_eval_stack_frame_limit_reached: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_stack_frame_limit_reached"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_thread_local_access` from `const_eval`"]
pub const const_eval_thread_local_access: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_thread_local_access"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_thread_local_static` from `const_eval`"]
pub const const_eval_thread_local_static: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_thread_local_static"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_too_generic` from `const_eval`"]
pub const const_eval_too_generic: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_too_generic"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_too_many_caller_args` from `const_eval`"]
pub const const_eval_too_many_caller_args: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_too_many_caller_args"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unallowed_fn_pointer_call` from `const_eval`"]
pub const const_eval_unallowed_fn_pointer_call: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unallowed_fn_pointer_call"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unallowed_heap_allocations` from `const_eval`"]
pub const const_eval_unallowed_heap_allocations: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unallowed_heap_allocations"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unallowed_heap_allocations.teach_note` from `const_eval`"]
pub const const_eval_teach_note: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("teach_note"));
#[doc =
"Constant referring to Fluent message `const_eval_unallowed_inline_asm` from `const_eval`"]
pub const const_eval_unallowed_inline_asm: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unallowed_inline_asm"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unallowed_op_in_const_context` from `const_eval`"]
pub const const_eval_unallowed_op_in_const_context:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unallowed_op_in_const_context"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_uninhabited_enum_variant_read` from `const_eval`"]
pub const const_eval_uninhabited_enum_variant_read:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_uninhabited_enum_variant_read"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_uninhabited_enum_variant_written` from `const_eval`"]
pub const const_eval_uninhabited_enum_variant_written:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_uninhabited_enum_variant_written"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unmarked_const_item_exposed` from `const_eval`"]
pub const const_eval_unmarked_const_item_exposed:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unmarked_const_item_exposed"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unmarked_intrinsic_exposed` from `const_eval`"]
pub const const_eval_unmarked_intrinsic_exposed: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unmarked_intrinsic_exposed"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unreachable` from `const_eval`"]
pub const const_eval_unreachable: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unreachable"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unreachable_unwind` from `const_eval`"]
pub const const_eval_unreachable_unwind: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unreachable_unwind"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unsized_local` from `const_eval`"]
pub const const_eval_unsized_local: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unsized_local"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unstable_const_fn` from `const_eval`"]
pub const const_eval_unstable_const_fn: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unstable_const_fn"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unstable_const_trait` from `const_eval`"]
pub const const_eval_unstable_const_trait: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unstable_const_trait"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unstable_in_stable_exposed` from `const_eval`"]
pub const const_eval_unstable_in_stable_exposed: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unstable_in_stable_exposed"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unstable_in_stable_exposed.is_function_call` from `const_eval`"]
pub const const_eval_is_function_call: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("is_function_call"));
#[doc =
"Constant referring to Fluent message `const_eval_unstable_in_stable_exposed.unstable_sugg` from `const_eval`"]
pub const const_eval_unstable_sugg: rustc_errors::SubdiagMessage =
rustc_errors::SubdiagMessage::FluentAttr(std::borrow::Cow::Borrowed("unstable_sugg"));
#[doc =
"Constant referring to Fluent message `const_eval_unstable_intrinsic` from `const_eval`"]
pub const const_eval_unstable_intrinsic: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unstable_intrinsic"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unstable_intrinsic_suggestion` from `const_eval`"]
pub const const_eval_unstable_intrinsic_suggestion:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unstable_intrinsic_suggestion"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unterminated_c_string` from `const_eval`"]
pub const const_eval_unterminated_c_string: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unterminated_c_string"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_unwind_past_top` from `const_eval`"]
pub const const_eval_unwind_past_top: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_unwind_past_top"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_box_to_uninhabited` from `const_eval`"]
pub const const_eval_validation_box_to_uninhabited:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_box_to_uninhabited"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_dangling_box_no_provenance` from `const_eval`"]
pub const const_eval_validation_dangling_box_no_provenance:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_dangling_box_no_provenance"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_dangling_box_out_of_bounds` from `const_eval`"]
pub const const_eval_validation_dangling_box_out_of_bounds:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_dangling_box_out_of_bounds"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_dangling_box_use_after_free` from `const_eval`"]
pub const const_eval_validation_dangling_box_use_after_free:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_dangling_box_use_after_free"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_dangling_ref_no_provenance` from `const_eval`"]
pub const const_eval_validation_dangling_ref_no_provenance:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_dangling_ref_no_provenance"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_dangling_ref_out_of_bounds` from `const_eval`"]
pub const const_eval_validation_dangling_ref_out_of_bounds:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_dangling_ref_out_of_bounds"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_dangling_ref_use_after_free` from `const_eval`"]
pub const const_eval_validation_dangling_ref_use_after_free:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_dangling_ref_use_after_free"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_expected_bool` from `const_eval`"]
pub const const_eval_validation_expected_bool: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_expected_bool"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_expected_box` from `const_eval`"]
pub const const_eval_validation_expected_box: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_expected_box"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_expected_char` from `const_eval`"]
pub const const_eval_validation_expected_char: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_expected_char"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_expected_enum_tag` from `const_eval`"]
pub const const_eval_validation_expected_enum_tag:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_expected_enum_tag"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_expected_float` from `const_eval`"]
pub const const_eval_validation_expected_float: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_expected_float"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_expected_fn_ptr` from `const_eval`"]
pub const const_eval_validation_expected_fn_ptr: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_expected_fn_ptr"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_expected_init_scalar` from `const_eval`"]
pub const const_eval_validation_expected_init_scalar:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_expected_init_scalar"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_expected_int` from `const_eval`"]
pub const const_eval_validation_expected_int: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_expected_int"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_expected_raw_ptr` from `const_eval`"]
pub const const_eval_validation_expected_raw_ptr:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_expected_raw_ptr"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_expected_ref` from `const_eval`"]
pub const const_eval_validation_expected_ref: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_expected_ref"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_expected_str` from `const_eval`"]
pub const const_eval_validation_expected_str: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_expected_str"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_failure` from `const_eval`"]
pub const const_eval_validation_failure: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_failure"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_failure_note` from `const_eval`"]
pub const const_eval_validation_failure_note: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_failure_note"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_front_matter_invalid_value` from `const_eval`"]
pub const const_eval_validation_front_matter_invalid_value:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_front_matter_invalid_value"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_front_matter_invalid_value_with_path` from `const_eval`"]
pub const const_eval_validation_front_matter_invalid_value_with_path:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_front_matter_invalid_value_with_path"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_invalid_bool` from `const_eval`"]
pub const const_eval_validation_invalid_bool: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_invalid_bool"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_invalid_box_meta` from `const_eval`"]
pub const const_eval_validation_invalid_box_meta:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_invalid_box_meta"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_invalid_box_slice_meta` from `const_eval`"]
pub const const_eval_validation_invalid_box_slice_meta:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_invalid_box_slice_meta"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_invalid_char` from `const_eval`"]
pub const const_eval_validation_invalid_char: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_invalid_char"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_invalid_enum_tag` from `const_eval`"]
pub const const_eval_validation_invalid_enum_tag:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_invalid_enum_tag"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_invalid_fn_ptr` from `const_eval`"]
pub const const_eval_validation_invalid_fn_ptr: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_invalid_fn_ptr"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_invalid_ref_meta` from `const_eval`"]
pub const const_eval_validation_invalid_ref_meta:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_invalid_ref_meta"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_invalid_ref_slice_meta` from `const_eval`"]
pub const const_eval_validation_invalid_ref_slice_meta:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_invalid_ref_slice_meta"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_invalid_vtable_ptr` from `const_eval`"]
pub const const_eval_validation_invalid_vtable_ptr:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_invalid_vtable_ptr"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_invalid_vtable_trait` from `const_eval`"]
pub const const_eval_validation_invalid_vtable_trait:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_invalid_vtable_trait"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_mutable_ref_to_immutable` from `const_eval`"]
pub const const_eval_validation_mutable_ref_to_immutable:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_mutable_ref_to_immutable"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_never_val` from `const_eval`"]
pub const const_eval_validation_never_val: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_never_val"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_nonnull_ptr_out_of_range` from `const_eval`"]
pub const const_eval_validation_nonnull_ptr_out_of_range:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_nonnull_ptr_out_of_range"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_null_box` from `const_eval`"]
pub const const_eval_validation_null_box: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_null_box"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_null_fn_ptr` from `const_eval`"]
pub const const_eval_validation_null_fn_ptr: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_null_fn_ptr"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_null_ref` from `const_eval`"]
pub const const_eval_validation_null_ref: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_null_ref"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_out_of_range` from `const_eval`"]
pub const const_eval_validation_out_of_range: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_out_of_range"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_partial_pointer` from `const_eval`"]
pub const const_eval_validation_partial_pointer: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_partial_pointer"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_pointer_as_int` from `const_eval`"]
pub const const_eval_validation_pointer_as_int: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_pointer_as_int"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_ptr_out_of_range` from `const_eval`"]
pub const const_eval_validation_ptr_out_of_range:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_ptr_out_of_range"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_ref_to_uninhabited` from `const_eval`"]
pub const const_eval_validation_ref_to_uninhabited:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_ref_to_uninhabited"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_unaligned_box` from `const_eval`"]
pub const const_eval_validation_unaligned_box: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_unaligned_box"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_unaligned_ref` from `const_eval`"]
pub const const_eval_validation_unaligned_ref: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_unaligned_ref"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_uninhabited_enum_variant` from `const_eval`"]
pub const const_eval_validation_uninhabited_enum_variant:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_uninhabited_enum_variant"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_uninhabited_val` from `const_eval`"]
pub const const_eval_validation_uninhabited_val: rustc_errors::DiagMessage
=
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_uninhabited_val"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_uninit` from `const_eval`"]
pub const const_eval_validation_uninit: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_uninit"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_validation_unsafe_cell` from `const_eval`"]
pub const const_eval_validation_unsafe_cell: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_validation_unsafe_cell"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_write_through_immutable_pointer` from `const_eval`"]
pub const const_eval_write_through_immutable_pointer:
rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_write_through_immutable_pointer"),
None);
#[doc =
"Constant referring to Fluent message `const_eval_write_to_read_only` from `const_eval`"]
pub const const_eval_write_to_read_only: rustc_errors::DiagMessage =
rustc_errors::DiagMessage::FluentIdentifier(std::borrow::Cow::Borrowed("const_eval_write_to_read_only"),
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" }
30
31pub fn provide(providers: &mut Providers) {
32 const_eval::provide(&mut providers.queries);
33 providers.queries.tag_for_variant = const_eval::tag_for_variant_provider;
34 providers.queries.eval_to_const_value_raw = const_eval::eval_to_const_value_raw_provider;
35 providers.queries.eval_to_allocation_raw = const_eval::eval_to_allocation_raw_provider;
36 providers.queries.eval_static_initializer = const_eval::eval_static_initializer_provider;
37 providers.hooks.const_caller_location = util::caller_location::const_caller_location_provider;
38 providers.queries.eval_to_valtree = |tcx, ty::PseudoCanonicalInput { typing_env, value }| {
39 const_eval::eval_to_valtree(tcx, typing_env, value)
40 };
41 providers.hooks.try_destructure_mir_constant_for_user_output =
42 const_eval::try_destructure_mir_constant_for_user_output;
43 providers.queries.valtree_to_const_val =
44 |tcx, cv| const_eval::valtree_to_const_value(tcx, ty::TypingEnv::fully_monomorphized(), cv);
45 providers.queries.check_validity_requirement = |tcx, (init_kind, param_env_and_ty)| {
46 util::check_validity_requirement(tcx, init_kind, param_env_and_ty)
47 };
48 providers.hooks.validate_scalar_in_layout =
49 |tcx, scalar, layout| util::validate_scalar_in_layout(tcx, scalar, layout);
50}
51
52pub static CTRL_C_RECEIVED: AtomicBool = AtomicBool::new(false);