diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-04-28 16:45:22 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-06-03 09:38:13 -0400 |
| commit | 5235065d740cad78ab55a89299fc1f5d32bf8f46 (patch) | |
| tree | 613bd353cd06acb585b85d30ddcfa0b360c64913 /src/doc/reference.md | |
| parent | 5b56d73dc0e8b988f91c44fd9f9e40331451796b (diff) | |
| download | rust-5235065d740cad78ab55a89299fc1f5d32bf8f46.tar.gz rust-5235065d740cad78ab55a89299fc1f5d32bf8f46.zip | |
Remove #[static_assert]
This was always a weird feature, and isn't being used in the compiler. Static assertions should be done better than this. This implements RFC #1096. Fixes #13951 Fixes #23008 Fixes #6676 This is behind a feature gate, but that's still a [breaking-change]
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index e263d40459c..eb3dbfbf136 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -1943,9 +1943,6 @@ macro scope. - `simd` - on certain tuple structs, derive the arithmetic operators, which lower to the target's SIMD instructions, if any; the `simd` feature gate is necessary to use this attribute. -- `static_assert` - on statics whose type is `bool`, terminates compilation - with an error if it is not initialized to `true`. To use this, the `static_assert` - feature gate must be enabled. - `unsafe_no_drop_flag` - on structs, remove the flag that prevents destructors from being run twice. Destructors might be run multiple times on the same object with this attribute. To use this, the `unsafe_no_drop_flag` feature @@ -2301,12 +2298,6 @@ The currently implemented features of the reference compiler are: crate. Stability markers are also attributes: `#[stable]`, `#[unstable]`, and `#[deprecated]` are the three levels. -* `static_assert` - The `#[static_assert]` functionality is experimental and - unstable. The attribute can be attached to a `static` of - type `bool` and the compiler will error if the `bool` is - `false` at compile time. This version of this functionality - is unintuitive and suboptimal. - * `start` - Allows use of the `#[start]` attribute, which changes the entry point into a Rust program. This capability, especially the signature for the annotated function, is subject to change. |
