Skip to content

Commit 402de5c

Browse files
committed
---
yaml --- r: 275583 b: refs/heads/auto c: 05afa68 h: refs/heads/master i: 275581: 2be404d 275579: 803c893 275575: 2ed9be4 275567: 3b1bbfe 275551: c4d7af5 275519: 1ea4a2f 275455: a9a7111
1 parent 4350985 commit 402de5c

File tree

25 files changed

+231
-553
lines changed

25 files changed

+231
-553
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: aa5888717f48444aac7a3f849b33a2f70feda1d8
11+
refs/heads/auto: 05afa68f7d98ae1e28358428cb077ce9c18d034e
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ are:
307307
[gsearchdocs]: https://www.google.com/search?q=site:doc.rust-lang.org+your+query+here
308308
[rif]: http://internals.rust-lang.org
309309
[rr]: https://doc.rust-lang.org/book/README.html
310-
[tlgba]: http://tomlee.co/2014/04/a-more-detailed-tour-of-the-rust-compiler/
310+
[tlgba]: http://tomlee.co/2014/04/03/a-more-detailed-tour-of-the-rust-compiler/
311311
[ro]: http://www.rustaceans.org/
312312
[rctd]: ./COMPILER_TESTS.md
313313
[cheatsheet]: http://buildbot.rust-lang.org/homu/

branches/auto/src/doc/book/casting-between-types.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,10 @@ Rust lets us:
165165
```rust
166166
use std::mem;
167167

168-
fn main() {
169-
unsafe {
170-
let a = [0u8, 1u8, 0u8, 0u8];
171-
let b = mem::transmute::<[u8; 4], u32>(a);
172-
println!("{}", b); // 256
173-
// or, more concisely:
174-
let c: u32 = mem::transmute(a);
175-
println!("{}", c); // 256
176-
}
168+
unsafe {
169+
let a = [0u8, 0u8, 0u8, 0u8];
170+
171+
let b = mem::transmute::<[u8; 4], u32>(a);
177172
}
178173
```
179174

branches/auto/src/libcollections/binary_heap.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@ impl<'a, T> ExactSizeIterator for Iter<'a, T> {}
919919

920920
/// An iterator that moves out of a `BinaryHeap`.
921921
#[stable(feature = "rust1", since = "1.0.0")]
922+
#[derive(Clone)]
922923
pub struct IntoIter<T> {
923924
iter: vec::IntoIter<T>,
924925
}

branches/auto/src/libcollections/btree/node.rs

Lines changed: 5 additions & 176 deletions
Large diffs are not rendered by default.

branches/auto/src/libcore/iter.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -901,17 +901,12 @@ pub trait Iterator {
901901
Enumerate { iter: self, count: 0 }
902902
}
903903

904-
/// Creates an iterator which can use `peek` to look at the next element of
905-
/// the iterator without consuming it.
904+
/// Creates an iterator which can look at the `next()` element without
905+
/// consuming it.
906906
///
907907
/// Adds a [`peek()`] method to an iterator. See its documentation for
908908
/// more information.
909909
///
910-
/// Note that the underlying iterator is still advanced when `peek` is
911-
/// called for the first time: In order to retrieve the next element,
912-
/// `next` is called on the underlying iterator, hence any side effects of
913-
/// the `next` method will occur.
914-
///
915910
/// [`peek()`]: struct.Peekable.html#method.peek
916911
///
917912
/// # Examples

branches/auto/src/libcore/num/mod.rs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,9 @@ use slice::SliceExt;
3838
/// all standard arithmetic operations on the underlying value are
3939
/// intended to have wrapping semantics.
4040
#[stable(feature = "rust1", since = "1.0.0")]
41-
#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Default, Hash)]
41+
#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Debug, Default)]
4242
pub struct Wrapping<T>(#[stable(feature = "rust1", since = "1.0.0")] pub T);
4343

44-
#[stable(feature = "rust1", since = "1.0.0")]
45-
impl<T: fmt::Debug> fmt::Debug for Wrapping<T> {
46-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
47-
self.0.fmt(f)
48-
}
49-
}
50-
51-
#[stable(feature = "wrapping_display", since = "1.10.0")]
52-
impl<T: fmt::Display> fmt::Display for Wrapping<T> {
53-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
54-
self.0.fmt(f)
55-
}
56-
}
57-
5844
mod wrapping;
5945

6046
// All these modules are technically private and only exposed for libcoretest:

branches/auto/src/libcore/ptr.rs

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,6 @@ pub unsafe fn replace<T>(dest: *mut T, mut src: T) -> T {
119119
/// `src` is not used before the data is overwritten again (e.g. with `write`,
120120
/// `zero_memory`, or `copy_memory`). Note that `*src = foo` counts as a use
121121
/// because it will attempt to drop the value previously at `*src`.
122-
///
123-
/// # Examples
124-
///
125-
/// Basic usage:
126-
///
127-
/// ```
128-
/// let x = 12;
129-
/// let y = &x as *const i32;
130-
///
131-
/// unsafe { println!("{}", std::ptr::read(y)); }
132-
/// ```
133122
#[inline(always)]
134123
#[stable(feature = "rust1", since = "1.0.0")]
135124
pub unsafe fn read<T>(src: *const T) -> T {
@@ -166,21 +155,6 @@ pub unsafe fn read_and_drop<T>(dest: *mut T) -> T {
166155
///
167156
/// This is appropriate for initializing uninitialized memory, or overwriting
168157
/// memory that has previously been `read` from.
169-
///
170-
/// # Examples
171-
///
172-
/// Basic usage:
173-
///
174-
/// ```
175-
/// let mut x = 0;
176-
/// let y = &mut x as *mut i32;
177-
/// let z = 12;
178-
///
179-
/// unsafe {
180-
/// std::ptr::write(y, z);
181-
/// println!("{}", std::ptr::read(y));
182-
/// }
183-
/// ```
184158
#[inline]
185159
#[stable(feature = "rust1", since = "1.0.0")]
186160
pub unsafe fn write<T>(dst: *mut T, src: T) {
@@ -211,17 +185,6 @@ pub unsafe fn write<T>(dst: *mut T, src: T) {
211185
/// `src` is not used before the data is overwritten again (e.g. with `write`,
212186
/// `zero_memory`, or `copy_memory`). Note that `*src = foo` counts as a use
213187
/// because it will attempt to drop the value previously at `*src`.
214-
///
215-
/// # Examples
216-
///
217-
/// Basic usage:
218-
///
219-
/// ```
220-
/// let x = 12;
221-
/// let y = &x as *const i32;
222-
///
223-
/// unsafe { println!("{}", std::ptr::read_volatile(y)); }
224-
/// ```
225188
#[inline]
226189
#[stable(feature = "volatile", since = "1.9.0")]
227190
pub unsafe fn read_volatile<T>(src: *const T) -> T {
@@ -254,21 +217,6 @@ pub unsafe fn read_volatile<T>(src: *const T) -> T {
254217
///
255218
/// This is appropriate for initializing uninitialized memory, or overwriting
256219
/// memory that has previously been `read` from.
257-
///
258-
/// # Examples
259-
///
260-
/// Basic usage:
261-
///
262-
/// ```
263-
/// let mut x = 0;
264-
/// let y = &mut x as *mut i32;
265-
/// let z = 12;
266-
///
267-
/// unsafe {
268-
/// std::ptr::write_volatile(y, z);
269-
/// println!("{}", std::ptr::read_volatile(y));
270-
/// }
271-
/// ```
272220
#[inline]
273221
#[stable(feature = "volatile", since = "1.9.0")]
274222
pub unsafe fn write_volatile<T>(dst: *mut T, src: T) {

branches/auto/src/librustc/session/config.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -888,9 +888,8 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
888888
vec![
889889
opt::flag_s("h", "help", "Display this message"),
890890
opt::multi_s("", "cfg", "Configure the compilation environment", "SPEC"),
891-
opt::multi_s("L", "", "Add a directory to the library search path. The
892-
optional KIND can be one of dependency, crate, native,
893-
framework or all (the default).", "[KIND=]PATH"),
891+
opt::multi_s("L", "", "Add a directory to the library search path",
892+
"[KIND=]PATH"),
894893
opt::multi_s("l", "", "Link the generated crate(s) to the specified native
895894
library NAME. The optional KIND can be one of
896895
static, dylib, or framework. If omitted, dylib is

branches/auto/src/librustc_resolve/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ crate-type = ["dylib"]
1212
log = { path = "../liblog" }
1313
syntax = { path = "../libsyntax" }
1414
rustc = { path = "../librustc" }
15+
rustc_bitflags = { path = "../librustc_bitflags" }
1516
arena = { path = "../libarena" }

0 commit comments

Comments
 (0)