Skip to content

Commit 8e1651f

Browse files
committed
---
yaml --- r: 212984 b: refs/heads/master c: ce1a965 h: refs/heads/master v: v3
1 parent 4ee2bae commit 8e1651f

File tree

119 files changed

+365
-339
lines changed

Some content is hidden

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

119 files changed

+365
-339
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 6895311e859e1859f9b3f0adc9f1fbb4d2891534
2+
refs/heads/master: ce1a965cf54ce65fc43b535c27029ce183214063
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
55
refs/heads/try: 1864973ae17213c5a58c4dd3f9af6d1b6c7d2e05

trunk/src/compiletest/compiletest.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
#![crate_type = "bin"]
1212

1313
#![feature(box_syntax)]
14-
#![feature(collections)]
15-
#![feature(rustc_private)]
16-
#![feature(std_misc)]
17-
#![feature(test)]
14+
#![feature(dynamic_lib)]
15+
#![feature(libc)]
1816
#![feature(path_ext)]
17+
#![feature(rustc_private)]
18+
#![feature(slice_extras)]
1919
#![feature(str_char)]
20-
#![feature(libc)]
20+
#![feature(test)]
21+
#![feature(vec_push_all)]
2122

2223
#![deny(warnings)]
2324

trunk/src/liballoc/arc.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl<T: ?Sized> Arc<T> {
191191
/// # Examples
192192
///
193193
/// ```
194-
/// # #![feature(alloc)]
194+
/// # #![feature(arc_weak)]
195195
/// use std::sync::Arc;
196196
///
197197
/// let five = Arc::new(5);
@@ -236,12 +236,12 @@ impl<T: ?Sized> Arc<T> {
236236

237237
/// Get the number of weak references to this value.
238238
#[inline]
239-
#[unstable(feature = "arc_extras")]
239+
#[unstable(feature = "arc_counts")]
240240
pub fn weak_count<T: ?Sized>(this: &Arc<T>) -> usize { this.inner().weak.load(SeqCst) - 1 }
241241

242242
/// Get the number of strong references to this value.
243243
#[inline]
244-
#[unstable(feature = "arc_extras")]
244+
#[unstable(feature = "arc_counts")]
245245
pub fn strong_count<T: ?Sized>(this: &Arc<T>) -> usize { this.inner().strong.load(SeqCst) }
246246

247247

@@ -255,7 +255,7 @@ pub fn strong_count<T: ?Sized>(this: &Arc<T>) -> usize { this.inner().strong.loa
255255
/// # Examples
256256
///
257257
/// ```
258-
/// # #![feature(alloc)]
258+
/// # #![feature(arc_unique, alloc)]
259259
/// extern crate alloc;
260260
/// # fn main() {
261261
/// use alloc::arc::{Arc, get_mut};
@@ -271,7 +271,7 @@ pub fn strong_count<T: ?Sized>(this: &Arc<T>) -> usize { this.inner().strong.loa
271271
/// # }
272272
/// ```
273273
#[inline]
274-
#[unstable(feature = "arc_extras")]
274+
#[unstable(feature = "arc_unique")]
275275
pub unsafe fn get_mut<T: ?Sized>(this: &mut Arc<T>) -> Option<&mut T> {
276276
// FIXME(#24880) potential race with upgraded weak pointers here
277277
if strong_count(this) == 1 && weak_count(this) == 0 {
@@ -342,7 +342,7 @@ impl<T: Clone> Arc<T> {
342342
/// # Examples
343343
///
344344
/// ```
345-
/// # #![feature(alloc)]
345+
/// # #![feature(arc_unique)]
346346
/// use std::sync::Arc;
347347
///
348348
/// # unsafe {
@@ -352,7 +352,7 @@ impl<T: Clone> Arc<T> {
352352
/// # }
353353
/// ```
354354
#[inline]
355-
#[unstable(feature = "arc_extras")]
355+
#[unstable(feature = "arc_unique")]
356356
pub unsafe fn make_unique(&mut self) -> &mut T {
357357
// FIXME(#24880) potential race with upgraded weak pointers here
358358
//
@@ -451,7 +451,7 @@ impl<T: ?Sized> Weak<T> {
451451
/// # Examples
452452
///
453453
/// ```
454-
/// # #![feature(alloc)]
454+
/// # #![feature(arc_weak)]
455455
/// use std::sync::Arc;
456456
///
457457
/// let five = Arc::new(5);
@@ -489,7 +489,7 @@ impl<T: ?Sized> Clone for Weak<T> {
489489
/// # Examples
490490
///
491491
/// ```
492-
/// # #![feature(alloc)]
492+
/// # #![feature(arc_weak)]
493493
/// use std::sync::Arc;
494494
///
495495
/// let weak_five = Arc::new(5).downgrade();
@@ -513,7 +513,7 @@ impl<T: ?Sized> Drop for Weak<T> {
513513
/// # Examples
514514
///
515515
/// ```
516-
/// # #![feature(alloc)]
516+
/// # #![feature(arc_weak)]
517517
/// use std::sync::Arc;
518518
///
519519
/// {

trunk/src/liballoc/boxed.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ use core::raw::{TraitObject};
7171
/// The following two examples are equivalent:
7272
///
7373
/// ```
74-
/// # #![feature(alloc)]
74+
/// # #![feature(box_heap)]
7575
/// #![feature(box_syntax)]
7676
/// use std::boxed::HEAP;
7777
///
@@ -139,7 +139,7 @@ impl<T : ?Sized> Box<T> {
139139
///
140140
/// # Examples
141141
/// ```
142-
/// # #![feature(alloc)]
142+
/// # #![feature(box_raw)]
143143
/// use std::boxed;
144144
///
145145
/// let seventeen = Box::new(17u32);
@@ -183,7 +183,7 @@ impl<T: Clone> Clone for Box<T> {
183183
/// # Examples
184184
///
185185
/// ```
186-
/// # #![feature(alloc, core)]
186+
/// # #![feature(box_raw)]
187187
/// let x = Box::new(5);
188188
/// let mut y = Box::new(10);
189189
///
@@ -336,7 +336,7 @@ impl<I: ExactSizeIterator + ?Sized> ExactSizeIterator for Box<I> {}
336336
/// -> i32>`.
337337
///
338338
/// ```
339-
/// #![feature(core)]
339+
/// #![feature(fnbox)]
340340
///
341341
/// use std::boxed::FnBox;
342342
/// use std::collections::HashMap;

trunk/src/liballoc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
#![feature(unsafe_no_drop_flag, filling_drop)]
9090
#![feature(unsize)]
9191

92-
#![cfg_attr(test, feature(test, alloc, rustc_private))]
92+
#![cfg_attr(test, feature(test, alloc, rustc_private, box_raw))]
9393
#![cfg_attr(all(not(feature = "external_funcs"), not(feature = "external_crate")),
9494
feature(libc))]
9595

trunk/src/liballoc/rc.rs

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
//! and have the `Owner` remain allocated as long as any `Gadget` points at it.
3333
//!
3434
//! ```rust
35-
//! # #![feature(alloc)]
3635
//! use std::rc::Rc;
3736
//!
3837
//! struct Owner {
@@ -92,7 +91,7 @@
9291
//! documentation for more details on interior mutability.
9392
//!
9493
//! ```rust
95-
//! # #![feature(alloc)]
94+
//! # #![feature(rc_weak)]
9695
//! use std::rc::Rc;
9796
//! use std::rc::Weak;
9897
//! use std::cell::RefCell;
@@ -229,7 +228,7 @@ impl<T: ?Sized> Rc<T> {
229228
/// # Examples
230229
///
231230
/// ```
232-
/// # #![feature(alloc)]
231+
/// # #![feature(rc_weak)]
233232
/// use std::rc::Rc;
234233
///
235234
/// let five = Rc::new(5);
@@ -246,12 +245,12 @@ impl<T: ?Sized> Rc<T> {
246245

247246
/// Get the number of weak references to this value.
248247
#[inline]
249-
#[unstable(feature = "rc_extras")]
248+
#[unstable(feature = "rc_counts")]
250249
pub fn weak_count<T: ?Sized>(this: &Rc<T>) -> usize { this.weak() - 1 }
251250

252251
/// Get the number of strong references to this value.
253252
#[inline]
254-
#[unstable(feature = "rc_extras")]
253+
#[unstable(feature = "rc_counts")]
255254
pub fn strong_count<T: ?Sized>(this: &Rc<T>) -> usize { this.strong() }
256255

257256
/// Returns true if there are no other `Rc` or `Weak<T>` values that share the
@@ -260,7 +259,7 @@ pub fn strong_count<T: ?Sized>(this: &Rc<T>) -> usize { this.strong() }
260259
/// # Examples
261260
///
262261
/// ```
263-
/// # #![feature(alloc)]
262+
/// # #![feature(rc_unique)]
264263
/// use std::rc;
265264
/// use std::rc::Rc;
266265
///
@@ -269,7 +268,7 @@ pub fn strong_count<T: ?Sized>(this: &Rc<T>) -> usize { this.strong() }
269268
/// rc::is_unique(&five);
270269
/// ```
271270
#[inline]
272-
#[unstable(feature = "rc_extras")]
271+
#[unstable(feature = "rc_unique")]
273272
pub fn is_unique<T>(rc: &Rc<T>) -> bool {
274273
weak_count(rc) == 0 && strong_count(rc) == 1
275274
}
@@ -281,7 +280,7 @@ pub fn is_unique<T>(rc: &Rc<T>) -> bool {
281280
/// # Examples
282281
///
283282
/// ```
284-
/// # #![feature(alloc)]
283+
/// # #![feature(rc_unique)]
285284
/// use std::rc::{self, Rc};
286285
///
287286
/// let x = Rc::new(3);
@@ -292,7 +291,7 @@ pub fn is_unique<T>(rc: &Rc<T>) -> bool {
292291
/// assert_eq!(rc::try_unwrap(x), Err(Rc::new(4)));
293292
/// ```
294293
#[inline]
295-
#[unstable(feature = "rc_extras")]
294+
#[unstable(feature = "rc_unique")]
296295
pub fn try_unwrap<T>(rc: Rc<T>) -> Result<T, Rc<T>> {
297296
if is_unique(&rc) {
298297
unsafe {
@@ -316,7 +315,7 @@ pub fn try_unwrap<T>(rc: Rc<T>) -> Result<T, Rc<T>> {
316315
/// # Examples
317316
///
318317
/// ```
319-
/// # #![feature(alloc)]
318+
/// # #![feature(rc_unique)]
320319
/// use std::rc::{self, Rc};
321320
///
322321
/// let mut x = Rc::new(3);
@@ -327,7 +326,7 @@ pub fn try_unwrap<T>(rc: Rc<T>) -> Result<T, Rc<T>> {
327326
/// assert!(rc::get_mut(&mut x).is_none());
328327
/// ```
329328
#[inline]
330-
#[unstable(feature = "rc_extras")]
329+
#[unstable(feature = "rc_unique")]
331330
pub fn get_mut<T>(rc: &mut Rc<T>) -> Option<&mut T> {
332331
if is_unique(rc) {
333332
let inner = unsafe { &mut **rc._ptr };
@@ -346,15 +345,15 @@ impl<T: Clone> Rc<T> {
346345
/// # Examples
347346
///
348347
/// ```
349-
/// # #![feature(alloc)]
348+
/// # #![feature(rc_unique)]
350349
/// use std::rc::Rc;
351350
///
352351
/// let mut five = Rc::new(5);
353352
///
354353
/// let mut_five = five.make_unique();
355354
/// ```
356355
#[inline]
357-
#[unstable(feature = "rc_extras")]
356+
#[unstable(feature = "rc_unique")]
358357
pub fn make_unique(&mut self) -> &mut T {
359358
if !is_unique(self) {
360359
*self = Rc::new((**self).clone())
@@ -390,7 +389,6 @@ impl<T: ?Sized> Drop for Rc<T> {
390389
/// # Examples
391390
///
392391
/// ```
393-
/// # #![feature(alloc)]
394392
/// use std::rc::Rc;
395393
///
396394
/// {
@@ -443,7 +441,6 @@ impl<T: ?Sized> Clone for Rc<T> {
443441
/// # Examples
444442
///
445443
/// ```
446-
/// # #![feature(alloc)]
447444
/// use std::rc::Rc;
448445
///
449446
/// let five = Rc::new(5);
@@ -677,7 +674,7 @@ impl<T: ?Sized> Weak<T> {
677674
/// # Examples
678675
///
679676
/// ```
680-
/// # #![feature(alloc)]
677+
/// # #![feature(rc_weak)]
681678
/// use std::rc::Rc;
682679
///
683680
/// let five = Rc::new(5);
@@ -705,7 +702,7 @@ impl<T: ?Sized> Drop for Weak<T> {
705702
/// # Examples
706703
///
707704
/// ```
708-
/// # #![feature(alloc)]
705+
/// # #![feature(rc_weak)]
709706
/// use std::rc::Rc;
710707
///
711708
/// {
@@ -752,7 +749,7 @@ impl<T: ?Sized> Clone for Weak<T> {
752749
/// # Examples
753750
///
754751
/// ```
755-
/// # #![feature(alloc)]
752+
/// # #![feature(rc_weak)]
756753
/// use std::rc::Rc;
757754
///
758755
/// let weak_five = Rc::new(5).downgrade();

0 commit comments

Comments
 (0)