Add rustc_never_type_mode
crate-level attribute to allow experimenting
This commit is contained in:
parent
ee03c286cf
commit
19bc337063
3 changed files with 96 additions and 34 deletions
|
@ -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:
|
||||
// ==========================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue