1
Fork 0

Add rustc_never_type_mode crate-level attribute to allow experimenting

This commit is contained in:
Maybe Waffle 2024-03-15 12:27:54 +00:00
parent ee03c286cf
commit 19bc337063
3 changed files with 96 additions and 34 deletions

View file

@ -580,6 +580,13 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
"`may_dangle` has unstable semantics and may be removed in the future",
),
rustc_attr!(
rustc_never_type_mode, Normal, template!(NameValueStr: "fallback_to_unit|fallback_to_niko|no_fallback"), ErrorFollowing,
@only_local: true,
"`rustc_never_type_fallback` is used to experiment with never type fallback and work on \
never type stabilization, and will never be stable"
),
// ==========================================================================
// Internal attributes: Runtime related:
// ==========================================================================