diff options
| author | Jane Lusby <jlusby@yaah.dev> | 2022-05-09 15:18:53 -0700 |
|---|---|---|
| committer | Jane Losare-Lusby <jlusby@yaah.dev> | 2022-07-08 21:18:15 +0000 |
| commit | b55453dbad4fb032d5b00c218146e1b053774a08 (patch) | |
| tree | 3d5247d5b23f336378e5741e2d80ed90e953ba36 /compiler/rustc_feature/src | |
| parent | a13f30036aed7151f77a04d227501bfb822c8cb5 (diff) | |
| download | rust-b55453dbad4fb032d5b00c218146e1b053774a08.tar.gz rust-b55453dbad4fb032d5b00c218146e1b053774a08.zip | |
add opt in attribute for stable-in-unstable items
Diffstat (limited to 'compiler/rustc_feature/src')
| -rw-r--r-- | compiler/rustc_feature/src/builtin_attrs.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/builtin_attrs.rs b/compiler/rustc_feature/src/builtin_attrs.rs index 6fcdfe44d8f..c806df82145 100644 --- a/compiler/rustc_feature/src/builtin_attrs.rs +++ b/compiler/rustc_feature/src/builtin_attrs.rs @@ -512,6 +512,9 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ allow_internal_unsafe, Normal, template!(Word), WarnFollowing, "allow_internal_unsafe side-steps the unsafe_code lint", ), + rustc_attr!(rustc_allowed_through_unstable_modules, Normal, template!(Word), WarnFollowing, + "rustc_allowed_through_unstable_modules special cases accidental stabilizations of stable items \ + through unstable paths"), // ========================================================================== // Internal attributes: Type system related: |
