diff options
| author | John Renner <john@jrenner.net> | 2018-09-02 09:03:24 -0700 |
|---|---|---|
| committer | John Renner <john@jrenner.net> | 2018-09-04 22:33:23 -0700 |
| commit | 0593dc7e3c9783f1c0bbbc8f017f9e914114e057 (patch) | |
| tree | 851bd551452a99115a72773b871f0d0f1433fcc4 /src/libsyntax/feature_gate.rs | |
| parent | e5ed10571690b2ee4fc64319967973b2e50b517f (diff) | |
| download | rust-0593dc7e3c9783f1c0bbbc8f017f9e914114e057.tar.gz rust-0593dc7e3c9783f1c0bbbc8f017f9e914114e057.zip | |
Move #[test_case] to a syntax extension
Diffstat (limited to 'src/libsyntax/feature_gate.rs')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index c94c7874a05..e3ea3563d85 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -777,10 +777,6 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG ("no_link", Normal, Ungated), ("derive", Normal, Ungated), ("should_panic", Normal, Ungated), - ("test_case", Normal, Gated(Stability::Unstable, - "custom_test_frameworks", - "Custom test frameworks are experimental", - cfg_fn!(custom_test_frameworks))), ("ignore", Normal, Ungated), ("no_implicit_prelude", Normal, Ungated), ("reexport_test_harness_main", Normal, Ungated), @@ -965,6 +961,11 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG attribute is just used for rustc unit \ tests and will never be stable", cfg_fn!(rustc_attrs))), + ("rustc_test_marker", Normal, Gated(Stability::Unstable, + "rustc_attrs", + "the `#[rustc_test_marker]` attribute \ + is used internally to track tests", + cfg_fn!(rustc_attrs))), // RFC #2094 ("nll", Whitelisted, Gated(Stability::Unstable, @@ -1164,7 +1165,7 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG ("type_length_limit", CrateLevel, Ungated), ("test_runner", CrateLevel, Gated(Stability::Unstable, "custom_test_frameworks", - "Custom Test Frameworks is an unstable feature", + EXPLAIN_CUSTOM_TEST_FRAMEWORKS, cfg_fn!(custom_test_frameworks))), ]; @@ -1382,6 +1383,9 @@ pub const EXPLAIN_ASM: &'static str = pub const EXPLAIN_GLOBAL_ASM: &'static str = "`global_asm!` is not stable enough for use and is subject to change"; +pub const EXPLAIN_CUSTOM_TEST_FRAMEWORKS: &'static str = + "custom test frameworks are an unstable feature"; + pub const EXPLAIN_LOG_SYNTAX: &'static str = "`log_syntax!` is not stable enough for use and is subject to change"; |
