Skip to content

Commit f2dacac

Browse files
committed
---
yaml --- r: 212283 b: refs/heads/auto c: b26a488 h: refs/heads/master i: 212281: ce6b1f0 212279: 6f33cb1 v: v3
1 parent e18e304 commit f2dacac

File tree

9 files changed

+26
-7
lines changed

9 files changed

+26
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 64d32b057edbf2e9223670c76df96f41e5bc1177
13+
refs/heads/auto: b26a48868c89f46260bea41e963d7e79482908a1
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/liballoc/arc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ use heap::deallocate;
9898
/// increase the reference counter.
9999
///
100100
/// ```
101+
/// # #![feature(alloc, core)]
101102
/// use std::sync::Arc;
102103
/// use std::thread;
103104
///
@@ -296,6 +297,7 @@ impl<T: ?Sized> Clone for Arc<T> {
296297
/// # Examples
297298
///
298299
/// ```
300+
/// # #![feature(alloc)]
299301
/// use std::sync::Arc;
300302
///
301303
/// let five = Arc::new(5);
@@ -390,6 +392,7 @@ impl<T: ?Sized> Drop for Arc<T> {
390392
/// # Examples
391393
///
392394
/// ```
395+
/// # #![feature(alloc)]
393396
/// use std::sync::Arc;
394397
///
395398
/// {

branches/auto/src/libcollections/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl String {
8888
/// # Examples
8989
///
9090
/// ```
91-
/// # #![feature(collections)]
91+
/// # #![feature(collections, core)]
9292
/// let s = String::from_str("hello");
9393
/// assert_eq!(&s[..], "hello");
9494
/// ```

branches/auto/src/libcollections/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ impl<T> Vec<T> {
840840
/// # Examples
841841
///
842842
/// ```
843-
/// # #![feature(collections)]
843+
/// # #![feature(collections, core)]
844844
/// let v = vec![0, 1, 2];
845845
/// let w = v.map_in_place(|i| i + 3);
846846
/// assert_eq!(&w[..], &[3, 4, 5]);

branches/auto/src/libcore/intrinsics.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ extern "rust-intrinsic" {
308308
/// A safe swap function:
309309
///
310310
/// ```
311+
/// # #![feature(core)]
311312
/// use std::mem;
312313
/// use std::ptr;
313314
///
@@ -347,6 +348,7 @@ extern "rust-intrinsic" {
347348
/// Efficiently create a Rust vector from an unsafe buffer:
348349
///
349350
/// ```
351+
/// # #![feature(core)]
350352
/// use std::ptr;
351353
///
352354
/// unsafe fn from_buf_raw<T>(ptr: *const T, elts: usize) -> Vec<T> {

branches/auto/src/libcore/iter.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ pub trait Iterator {
326326
/// # Examples
327327
///
328328
/// ```
329+
/// # #![feature(core)]
329330
/// let xs = [100, 200, 300];
330331
/// let mut it = xs.iter().cloned().peekable();
331332
/// assert_eq!(*it.peek().unwrap(), 100);
@@ -513,13 +514,15 @@ pub trait Iterator {
513514
/// # Examples
514515
///
515516
/// ```
517+
/// # #![feature(core)]
518+
///
516519
/// let a = [1, 4, 2, 3, 8, 9, 6];
517520
/// let sum: i32 = a.iter()
518521
/// .map(|x| *x)
519522
/// .inspect(|&x| println!("filtering {}", x))
520523
/// .filter(|&x| x % 2 == 0)
521524
/// .inspect(|&x| println!("{} made it through", x))
522-
/// .fold(0, |sum, i| sum + i);
525+
/// .sum();
523526
/// println!("{}", sum);
524527
/// ```
525528
#[inline]
@@ -569,6 +572,7 @@ pub trait Iterator {
569572
/// do not.
570573
///
571574
/// ```
575+
/// # #![feature(core)]
572576
/// let vec = vec![1, 2, 3, 4];
573577
/// let (even, odd): (Vec<_>, Vec<_>) = vec.into_iter().partition(|&n| n % 2 == 0);
574578
/// assert_eq!(even, [2, 4]);
@@ -893,6 +897,7 @@ pub trait Iterator {
893897
///
894898
/// ```
895899
/// # #![feature(core)]
900+
///
896901
/// let a = [-3_i32, 0, 1, 5, -10];
897902
/// assert_eq!(*a.iter().max_by(|x| x.abs()).unwrap(), -10);
898903
/// ```
@@ -921,6 +926,7 @@ pub trait Iterator {
921926
///
922927
/// ```
923928
/// # #![feature(core)]
929+
///
924930
/// let a = [-3_i32, 0, 1, 5, -10];
925931
/// assert_eq!(*a.iter().min_by(|x| x.abs()).unwrap(), 0);
926932
/// ```
@@ -965,6 +971,7 @@ pub trait Iterator {
965971
/// # Examples
966972
///
967973
/// ```
974+
/// # #![feature(core)]
968975
/// let a = [(1, 2), (3, 4)];
969976
/// let (left, right): (Vec<_>, Vec<_>) = a.iter().cloned().unzip();
970977
/// assert_eq!(left, [1, 3]);
@@ -1058,6 +1065,7 @@ pub trait Iterator {
10581065
///
10591066
/// ```
10601067
/// # #![feature(core)]
1068+
///
10611069
/// let a = [1, 2, 3, 4, 5];
10621070
/// let it = a.iter();
10631071
/// assert_eq!(it.sum::<i32>(), 15);
@@ -1076,6 +1084,7 @@ pub trait Iterator {
10761084
///
10771085
/// ```
10781086
/// # #![feature(core)]
1087+
///
10791088
/// fn factorial(n: u32) -> u32 {
10801089
/// (1..).take_while(|&i| i <= n).product()
10811090
/// }
@@ -2721,7 +2730,7 @@ impl<A: Step> ops::Range<A> {
27212730
/// # Examples
27222731
///
27232732
/// ```
2724-
/// # #![feature(step_by)]
2733+
/// # #![feature(step_by, core)]
27252734
/// for i in (0..10).step_by(2) {
27262735
/// println!("{}", i);
27272736
/// }

branches/auto/src/libcore/macros.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,12 @@ macro_rules! try {
173173
/// # Examples
174174
///
175175
/// ```
176+
/// # #![allow(unused_must_use)]
176177
/// use std::io::Write;
177178
///
178179
/// let mut w = Vec::new();
179-
/// write!(&mut w, "test").unwrap();
180-
/// write!(&mut w, "formatted {}", "arguments").unwrap();
180+
/// write!(&mut w, "test");
181+
/// write!(&mut w, "formatted {}", "arguments");
181182
/// ```
182183
#[macro_export]
183184
macro_rules! write {

branches/auto/src/libcore/option.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ impl<T> Option<T> {
474474
/// # Examples
475475
///
476476
/// ```
477+
/// # #![feature(core)]
477478
/// let x = Some("foo");
478479
/// assert_eq!(x.ok_or(0), Ok("foo"));
479480
///
@@ -495,6 +496,7 @@ impl<T> Option<T> {
495496
/// # Examples
496497
///
497498
/// ```
499+
/// # #![feature(core)]
498500
/// let x = Some("foo");
499501
/// assert_eq!(x.ok_or_else(|| 0), Ok("foo"));
500502
///
@@ -536,6 +538,7 @@ impl<T> Option<T> {
536538
/// # Examples
537539
///
538540
/// ```
541+
/// # #![feature(core)]
539542
/// let mut x = Some(4);
540543
/// match x.iter_mut().next() {
541544
/// Some(&mut ref mut v) => *v = 42,

branches/auto/src/test/debuginfo/gdb-pretty-struct-and-enums.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-test also broken on nightly linux distcheck. it's just broken!
1112
// ignore-windows failing on win32 bot
1213
// ignore-freebsd: output doesn't match
1314
// ignore-tidy-linelength

0 commit comments

Comments
 (0)