Unnamed repository; edit this file 'description' to name the repository.
Rollup merge of #152210 - Ozzy1423:attrs7, r=JonathanBrouwer
Gate #![reexport_test_harness_main] properly Address the FIXME Removed from `issue-43106-gating-of-builtin-attrs.rs` since that is for stable attributes only. This would be a breaking change, search of github shows it is mostly but not always used with `#![test_runner]` which is already gated correctly. Details: https://github.com/rust-lang/rust/issues/50297 Feel free to close this issue if you think it is not worth addressing the FIXME...
Jonathan Brouwer 6 weeks ago
parent 2b2d548 · parent 06c5421 · commit ee96c97
-rw-r--r--crates/hir-expand/src/inert_attr_macro.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/hir-expand/src/inert_attr_macro.rs b/crates/hir-expand/src/inert_attr_macro.rs
index 6dec2c5b32..53b624d9a6 100644
--- a/crates/hir-expand/src/inert_attr_macro.rs
+++ b/crates/hir-expand/src/inert_attr_macro.rs
@@ -124,8 +124,6 @@ pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
should_panic, Normal,
template!(Word, List: r#"expected = "reason""#, NameValueStr: "reason"), FutureWarnFollowing,
),
- // FIXME(Centril): This can be used on stable but shouldn't.
- ungated!(reexport_test_harness_main, CrateLevel, template!(NameValueStr: "name"), ErrorFollowing),
// Macros:
ungated!(automatically_derived, Normal, template!(Word), WarnFollowing),
@@ -264,6 +262,13 @@ pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
test_runner, CrateLevel, template!(List: "path"), ErrorFollowing, custom_test_frameworks,
"custom test frameworks are an unstable feature",
),
+
+ gated!(
+ reexport_test_harness_main, CrateLevel, template!(NameValueStr: "name"),
+ ErrorFollowing, custom_test_frameworks,
+ "custom test frameworks are an unstable feature",
+ ),
+
// RFC #1268
gated!(
marker, Normal, template!(Word), WarnFollowing, @only_local: true,