diff options
| author | cynecx <me@cynecx.net> | 2022-02-07 01:21:23 +0100 |
|---|---|---|
| committer | cynecx <me@cynecx.net> | 2022-02-07 01:21:23 +0100 |
| commit | e075586d4fd428374a788eecc391e23ec4a17b46 (patch) | |
| tree | 19b6ae50a00420b9dc690d7722e231ebbdce612a /compiler/rustc_feature/src | |
| parent | 03733ca65a09a9b54b2c2a674e4145b165bd1cab (diff) | |
| download | rust-e075586d4fd428374a788eecc391e23ec4a17b46.tar.gz rust-e075586d4fd428374a788eecc391e23ec4a17b46.zip | |
add tests and fix comments
Diffstat (limited to 'compiler/rustc_feature/src')
| -rw-r--r-- | compiler/rustc_feature/src/active.rs | 4 | ||||
| -rw-r--r-- | compiler/rustc_feature/src/builtin_attrs.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index d958a14afab..0908e9d1ef9 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -533,8 +533,8 @@ declare_features! ( /// /// NOTE: A limited form of `union U { ... }` was accepted in 1.19.0. (active, untagged_unions, "1.13.0", Some(55149), None), - /// Allows using the `#[used(retain)]` attribute. - (active, used_with_arg, "1.60.0", None, None), + /// Allows using the `#[used(linker)]` (or `#[used(compiler)]`) attribute. + (active, used_with_arg, "1.60.0", Some(00000), None), /// Allows `extern "wasm" fn` (active, wasm_abi, "1.53.0", Some(83788), None), // !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! diff --git a/compiler/rustc_feature/src/builtin_attrs.rs b/compiler/rustc_feature/src/builtin_attrs.rs index 739e5450438..13b482cb469 100644 --- a/compiler/rustc_feature/src/builtin_attrs.rs +++ b/compiler/rustc_feature/src/builtin_attrs.rs @@ -324,7 +324,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ ungated!(export_name, Normal, template!(NameValueStr: "name"), FutureWarnPreceding), ungated!(link_section, Normal, template!(NameValueStr: "name"), FutureWarnPreceding), ungated!(no_mangle, Normal, template!(Word), WarnFollowing), - ungated!(used, Normal, template!(Word, List: "used"), WarnFollowing), + ungated!(used, Normal, template!(Word, List: "compiler|linker"), WarnFollowing), // Limits: ungated!(recursion_limit, CrateLevel, template!(NameValueStr: "N"), FutureWarnFollowing), |
