Skip to content

Commit 4ba27f8

Browse files
committed
---
yaml --- r: 275312 b: refs/heads/stable c: 5a0308a h: refs/heads/master
1 parent d723811 commit 4ba27f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+219
-232
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 15b4a8c2f32460b4b9b9ba27c17cbcf5144b14bb
32+
refs/heads/stable: 5a0308abadce38396f27122d5c8639ffb2a21469
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/doc/book/concurrency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ thread::spawn(move || {
259259
```
260260

261261
First, we call `lock()`, which acquires the mutex's lock. Because this may fail,
262-
it returns an `Result<T, E>`, and because this is just an example, we `unwrap()`
262+
it returns a `Result<T, E>`, and because this is just an example, we `unwrap()`
263263
it to get a reference to the data. Real code would have more robust error handling
264264
here. We're then free to mutate it, since we have the lock.
265265

branches/stable/src/doc/book/using-rust-without-the-standard-library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Much of the functionality that’s exposed in the standard library is also
2525
available via the [`core` crate](../core/). When we’re using the standard
2626
library, Rust automatically brings `std` into scope, allowing you to use
2727
its features without an explicit import. By the same token, when using
28-
`!#[no_std]`, Rust will bring `core` into scope for you, as well as [its
28+
`#![no_std]`, Rust will bring `core` into scope for you, as well as [its
2929
prelude](../core/prelude/v1/). This means that a lot of code will Just Work:
3030

3131
```rust

branches/stable/src/doc/reference.md

Lines changed: 1 addition & 4 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.
@@ -4065,7 +4062,7 @@ the guarantee that these issues are never caused by safe code.
40654062
* Breaking the [pointer aliasing
40664063
rules](http://llvm.org/docs/LangRef.html#pointer-aliasing-rules)
40674064
with raw pointers (a subset of the rules used by C)
4068-
* `&mut` and `&` follow LLVM’s scoped [noalias] model, except if the `&T`
4065+
* `&mut T` and `&T` follow LLVM’s scoped [noalias] model, except if the `&T`
40694066
contains an `UnsafeCell<U>`. Unsafe code must not violate these aliasing
40704067
guarantees.
40714068
* Mutating non-mutable data (that is, data reached through a shared reference or

branches/stable/src/liballoc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
#![feature(const_fn)]
7979
#![feature(core_intrinsics)]
8080
#![feature(custom_attribute)]
81-
#![feature(drop_in_place)]
8281
#![feature(dropck_parametricity)]
8382
#![feature(fundamental)]
8483
#![feature(lang_items)]

branches/stable/src/libarena/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#![feature(alloc)]
3333
#![feature(core_intrinsics)]
34-
#![feature(drop_in_place)]
3534
#![feature(heap_api)]
3635
#![feature(raw)]
3736
#![feature(heap_api)]

branches/stable/src/libcollections/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#![feature(box_syntax)]
3636
#![feature(core_intrinsics)]
3737
#![feature(decode_utf16)]
38-
#![feature(drop_in_place)]
3938
#![feature(dropck_parametricity)]
4039
#![feature(fmt_internals)]
4140
#![feature(fmt_radix)]

branches/stable/src/libcollections/str.rs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,22 @@ impl<S: Borrow<str>> SliceConcatExt<str> for [S] {
112112
}
113113
}
114114

115+
/// Deprecated, renamed to EncodeUtf16
116+
#[unstable(feature = "str_utf16", issue = "27714")]
117+
#[rustc_deprecated(since = "1.8.0", reason = "renamed to EncodeUtf16")]
118+
pub type Utf16Units<'a> = EncodeUtf16<'a>;
119+
115120
/// External iterator for a string's UTF-16 code units.
116121
///
117122
/// For use with the `std::iter` module.
118123
#[derive(Clone)]
119-
#[unstable(feature = "str_utf16", issue = "27714")]
120-
pub struct Utf16Units<'a> {
124+
#[stable(feature = "encode_utf16", since = "1.8.0")]
125+
pub struct EncodeUtf16<'a> {
121126
encoder: Utf16Encoder<Chars<'a>>,
122127
}
123128

124129
#[stable(feature = "rust1", since = "1.0.0")]
125-
impl<'a> Iterator for Utf16Units<'a> {
130+
impl<'a> Iterator for EncodeUtf16<'a> {
126131
type Item = u16;
127132

128133
#[inline]
@@ -853,10 +858,18 @@ impl str {
853858
#[unstable(feature = "str_utf16",
854859
reason = "this functionality may only be provided by libunicode",
855860
issue = "27714")]
861+
#[rustc_deprecated(since = "1.8.0", reason = "renamed to encode_utf16")]
862+
#[allow(deprecated)]
856863
pub fn utf16_units(&self) -> Utf16Units {
857864
Utf16Units { encoder: Utf16Encoder::new(self[..].chars()) }
858865
}
859866

867+
/// Returns an iterator of `u16` over the string encoded as UTF-16.
868+
#[stable(feature = "encode_utf16", since = "1.8.0")]
869+
pub fn encode_utf16(&self) -> EncodeUtf16 {
870+
EncodeUtf16 { encoder: Utf16Encoder::new(self[..].chars()) }
871+
}
872+
860873
/// Returns `true` if the given pattern matches a sub-slice of
861874
/// this string slice.
862875
///

branches/stable/src/libcollectionstest/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#![feature(step_by)]
3030
#![feature(str_char)]
3131
#![feature(str_escape)]
32-
#![feature(str_utf16)]
3332
#![feature(test)]
3433
#![feature(unboxed_closures)]
3534
#![feature(unicode)]

branches/stable/src/libcollectionstest/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ fn test_from_utf16() {
140140

141141
for p in &pairs {
142142
let (s, u) = (*p).clone();
143-
let s_as_utf16 = s.utf16_units().collect::<Vec<u16>>();
143+
let s_as_utf16 = s.encode_utf16().collect::<Vec<u16>>();
144144
let u_as_string = String::from_utf16(&u).unwrap();
145145

146146
assert!(::rustc_unicode::str::is_utf16(&u));
@@ -150,7 +150,7 @@ fn test_from_utf16() {
150150
assert_eq!(String::from_utf16_lossy(&u), s);
151151

152152
assert_eq!(String::from_utf16(&s_as_utf16).unwrap(), s);
153-
assert_eq!(u_as_string.utf16_units().collect::<Vec<u16>>(), u);
153+
assert_eq!(u_as_string.encode_utf16().collect::<Vec<u16>>(), u);
154154
}
155155
}
156156

branches/stable/src/libcore/cell.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -579,17 +579,14 @@ impl<'b, T: ?Sized> Ref<'b, T> {
579579
/// # Example
580580
///
581581
/// ```
582-
/// #![feature(cell_extras)]
583-
///
584582
/// use std::cell::{RefCell, Ref};
585583
///
586584
/// let c = RefCell::new((5, 'b'));
587585
/// let b1: Ref<(u32, char)> = c.borrow();
588586
/// let b2: Ref<u32> = Ref::map(b1, |t| &t.0);
589587
/// assert_eq!(*b2, 5)
590588
/// ```
591-
#[unstable(feature = "cell_extras", reason = "recently added",
592-
issue = "27746")]
589+
#[stable(feature = "cell_map", since = "1.8.0")]
593590
#[inline]
594591
pub fn map<U: ?Sized, F>(orig: Ref<'b, T>, f: F) -> Ref<'b, U>
595592
where F: FnOnce(&T) -> &U
@@ -622,6 +619,7 @@ impl<'b, T: ?Sized> Ref<'b, T> {
622619
/// ```
623620
#[unstable(feature = "cell_extras", reason = "recently added",
624621
issue = "27746")]
622+
#[rustc_deprecated(since = "1.8.0", reason = "can be built on Ref::map")]
625623
#[inline]
626624
pub fn filter_map<U: ?Sized, F>(orig: Ref<'b, T>, f: F) -> Option<Ref<'b, U>>
627625
where F: FnOnce(&T) -> Option<&U>
@@ -646,7 +644,6 @@ impl<'b, T: ?Sized> RefMut<'b, T> {
646644
/// # Example
647645
///
648646
/// ```
649-
/// # #![feature(cell_extras)]
650647
/// use std::cell::{RefCell, RefMut};
651648
///
652649
/// let c = RefCell::new((5, 'b'));
@@ -658,8 +655,7 @@ impl<'b, T: ?Sized> RefMut<'b, T> {
658655
/// }
659656
/// assert_eq!(*c.borrow(), (42, 'b'));
660657
/// ```
661-
#[unstable(feature = "cell_extras", reason = "recently added",
662-
issue = "27746")]
658+
#[stable(feature = "cell_map", since = "1.8.0")]
663659
#[inline]
664660
pub fn map<U: ?Sized, F>(orig: RefMut<'b, T>, f: F) -> RefMut<'b, U>
665661
where F: FnOnce(&mut T) -> &mut U
@@ -698,6 +694,7 @@ impl<'b, T: ?Sized> RefMut<'b, T> {
698694
/// ```
699695
#[unstable(feature = "cell_extras", reason = "recently added",
700696
issue = "27746")]
697+
#[rustc_deprecated(since = "1.8.0", reason = "can be built on RefMut::map")]
701698
#[inline]
702699
pub fn filter_map<U: ?Sized, F>(orig: RefMut<'b, T>, f: F) -> Option<RefMut<'b, U>>
703700
where F: FnOnce(&mut T) -> Option<&mut U>

branches/stable/src/libcore/intrinsics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ extern "rust-intrinsic" {
240240
///
241241
/// This has all the same safety problems as `ptr::read` with respect to
242242
/// invalid pointers, types, and double drops.
243-
#[unstable(feature = "drop_in_place", reason = "just exposed, needs FCP", issue = "27908")]
243+
#[stable(feature = "drop_in_place", since = "1.8.0")]
244244
pub fn drop_in_place<T: ?Sized>(to_drop: *mut T);
245245

246246
/// Gets a static string slice containing the name of a type.

branches/stable/src/libcore/num/wrapping.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ macro_rules! wrapping_impl {
156156
}
157157
}
158158

159-
#[unstable(feature = "op_assign_traits", reason = "recently added", issue = "28235")]
159+
#[stable(feature = "op_assign_traits", since = "1.8.0")]
160160
impl AddAssign for Wrapping<$t> {
161161
#[inline(always)]
162162
fn add_assign(&mut self, other: Wrapping<$t>) {
@@ -174,7 +174,7 @@ macro_rules! wrapping_impl {
174174
}
175175
}
176176

177-
#[unstable(feature = "op_assign_traits", reason = "recently added", issue = "28235")]
177+
#[stable(feature = "op_assign_traits", since = "1.8.0")]
178178
impl SubAssign for Wrapping<$t> {
179179
#[inline(always)]
180180
fn sub_assign(&mut self, other: Wrapping<$t>) {
@@ -192,7 +192,7 @@ macro_rules! wrapping_impl {
192192
}
193193
}
194194

195-
#[unstable(feature = "op_assign_traits", reason = "recently added", issue = "28235")]
195+
#[stable(feature = "op_assign_traits", since = "1.8.0")]
196196
impl MulAssign for Wrapping<$t> {
197197
#[inline(always)]
198198
fn mul_assign(&mut self, other: Wrapping<$t>) {
@@ -210,7 +210,7 @@ macro_rules! wrapping_impl {
210210
}
211211
}
212212

213-
#[unstable(feature = "op_assign_traits", reason = "recently added", issue = "28235")]
213+
#[stable(feature = "op_assign_traits", since = "1.8.0")]
214214
impl DivAssign for Wrapping<$t> {
215215
#[inline(always)]
216216
fn div_assign(&mut self, other: Wrapping<$t>) {
@@ -228,7 +228,7 @@ macro_rules! wrapping_impl {
228228
}
229229
}
230230

231-
#[unstable(feature = "op_assign_traits", reason = "recently added", issue = "28235")]
231+
#[stable(feature = "op_assign_traits", since = "1.8.0")]
232232
impl RemAssign for Wrapping<$t> {
233233
#[inline(always)]
234234
fn rem_assign(&mut self, other: Wrapping<$t>) {
@@ -256,7 +256,7 @@ macro_rules! wrapping_impl {
256256
}
257257
}
258258

259-
#[unstable(feature = "op_assign_traits", reason = "recently added", issue = "28235")]
259+
#[stable(feature = "op_assign_traits", since = "1.8.0")]
260260
impl BitXorAssign for Wrapping<$t> {
261261
#[inline(always)]
262262
fn bitxor_assign(&mut self, other: Wrapping<$t>) {
@@ -274,7 +274,7 @@ macro_rules! wrapping_impl {
274274
}
275275
}
276276

277-
#[unstable(feature = "op_assign_traits", reason = "recently added", issue = "28235")]
277+
#[stable(feature = "op_assign_traits", since = "1.8.0")]
278278
impl BitOrAssign for Wrapping<$t> {
279279
#[inline(always)]
280280
fn bitor_assign(&mut self, other: Wrapping<$t>) {
@@ -292,7 +292,7 @@ macro_rules! wrapping_impl {
292292
}
293293
}
294294

295-
#[unstable(feature = "op_assign_traits", reason = "recently added", issue = "28235")]
295+
#[stable(feature = "op_assign_traits", since = "1.8.0")]
296296
impl BitAndAssign for Wrapping<$t> {
297297
#[inline(always)]
298298
fn bitand_assign(&mut self, other: Wrapping<$t>) {

0 commit comments

Comments
 (0)