Skip to content

Commit 942ca02

Browse files
alexcrichtonManishearth
authored andcommitted
std: Stabilize APIs for the 1.8 release
This commit is the result of the FCPs ending for the 1.8 release cycle for both the libs and the lang suteams. The full list of changes are: Stabilized * `braced_empty_structs` * `augmented_assignments` * `str::encode_utf16` - renamed from `utf16_units` * `str::EncodeUtf16` - renamed from `Utf16Units` * `Ref::map` * `RefMut::map` * `ptr::drop_in_place` * `time::Instant` * `time::SystemTime` * `{Instant,SystemTime}::now` * `{Instant,SystemTime}::duration_since` - renamed from `duration_from_earlier` * `{Instant,SystemTime}::elapsed` * Various `Add`/`Sub` impls for `Time` and `SystemTime` * `SystemTimeError` * `SystemTimeError::duration` * Various impls for `SystemTimeError` * `UNIX_EPOCH` * `ops::{Add,Sub,Mul,Div,Rem,BitAnd,BitOr,BitXor,Shl,Shr}Assign` Deprecated * Scoped TLS (the `scoped_thread_local!` macro) * `Ref::filter_map` * `RefMut::filter_map` * `RwLockReadGuard::map` * `RwLockWriteGuard::map` * `Condvar::wait_timeout_with` Closes rust-lang#27714 Closes rust-lang#27715 Closes rust-lang#27746 Closes rust-lang#27748 Closes rust-lang#27908 Closes rust-lang#29866
1 parent c6d0c90 commit 942ca02

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

reference.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,15 +1141,13 @@ the list of fields entirely. Such a struct implicitly defines a constant of
11411141
its type with the same name. For example:
11421142

11431143
```
1144-
# #![feature(braced_empty_structs)]
11451144
struct Cookie;
11461145
let c = [Cookie, Cookie {}, Cookie, Cookie {}];
11471146
```
11481147

11491148
is equivalent to
11501149

11511150
```
1152-
# #![feature(braced_empty_structs)]
11531151
struct Cookie {}
11541152
const Cookie: Cookie = Cookie {};
11551153
let c = [Cookie, Cookie {}, Cookie, Cookie {}];
@@ -2385,7 +2383,6 @@ The currently implemented features of the reference compiler are:
23852383
terms of encapsulation).
23862384
* - `default_type_parameter_fallback` - Allows type parameter defaults to
23872385
influence type inference.
2388-
* - `braced_empty_structs` - Allows use of empty structs and enum variants with braces.
23892386

23902387
* - `stmt_expr_attributes` - Allows attributes on expressions and
23912388
non-item statements.

0 commit comments

Comments
 (0)