1
Fork 0

Add rustc_never_type_mode = "no_fallback"

This commit is contained in:
Maybe Waffle 2024-03-15 14:50:45 +00:00
parent 19bc337063
commit adfdd273ae
3 changed files with 18 additions and 3 deletions

View file

@ -581,7 +581,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
),
rustc_attr!(
rustc_never_type_mode, Normal, template!(NameValueStr: "fallback_to_unit|fallback_to_niko|no_fallback"), ErrorFollowing,
rustc_never_type_mode, Normal, template!(NameValueStr: "fallback_to_unit|fallback_to_niko|fallback_to_never|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"