diff options
| author | bors <bors@rust-lang.org> | 2015-06-03 18:21:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-06-03 18:21:09 +0000 |
| commit | b70f49b86fa4d8780f46e869880e84e1c24c2f19 (patch) | |
| tree | 2a6f3652f5ef234a3f1f4b978083c130ee62f4fd /src/libsyntax | |
| parent | 9a2f68e1594718a8565139b44edfd905803134ce (diff) | |
| parent | 5235065d740cad78ab55a89299fc1f5d32bf8f46 (diff) | |
| download | rust-b70f49b86fa4d8780f46e869880e84e1c24c2f19.tar.gz rust-b70f49b86fa4d8780f46e869880e84e1c24c2f19.zip | |
Auto merge of #24910 - steveklabnik:remove_static_assert, r=alexcrichton
This was always a weird feature, and isn't being used in the compiler. Static assertions should be done better than this. Fixes #13951 Fixes #23008 Fixes #6676 This is behind a feature gate, but that's still a [breaking-change] (It's not entirely clear to me that this should or shouldn't have an RFC, but if it does, I'm fine blocking on such a thing.)
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 729e0b721f1..34879606b9e 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -137,9 +137,6 @@ const KNOWN_FEATURES: &'static [(&'static str, &'static str, Status)] = &[ // Allows the use of rustc_* attributes; RFC 572 ("rustc_attrs", "1.0.0", Active), - // Allows the use of `static_assert` - ("static_assert", "1.0.0", Active), - // Allows the use of #[allow_internal_unstable]. This is an // attribute on macro_rules! and can't use the attribute handling // below (it has to be checked before expansion possibly makes @@ -261,8 +258,6 @@ pub const KNOWN_ATTRIBUTES: &'static [(&'static str, AttributeType)] = &[ ("no_builtins", Whitelisted), ("no_mangle", Whitelisted), ("no_stack_check", Whitelisted), - ("static_assert", Gated("static_assert", - "`#[static_assert]` is an experimental feature, and has a poor API")), ("no_debug", Whitelisted), ("omit_gdb_pretty_printer_section", Whitelisted), ("unsafe_no_drop_flag", Gated("unsafe_no_drop_flag", |
