Skip to content

Commit cdd48a3

Browse files
committed
---
yaml --- r: 207694 b: refs/heads/tmp c: e161d5c h: refs/heads/master v: v3
1 parent a1cc934 commit cdd48a3

Some content is hidden

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

53 files changed

+724
-921
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3232
refs/heads/beta: cd7d89af9169885642d43597302af69f842bbd78
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35-
refs/heads/tmp: 38a97becdf3e6a6157f6f7ec2d98ade8d8edc193
35+
refs/heads/tmp: e161d5cf736f1340f299268163a677c5871af313
3636
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3737
refs/tags/homu-tmp: 704c2ee730d2e948d11a2edd77e3f35de8329a6e
3838
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/RELEASES.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Language
1919

2020
* Several [restrictions have been added to trait coherence][coh] in
2121
order to make it easier for upstream authors to change traits
22-
without breaking downstream code.
22+
without breaking downsteam code.
2323
* Digits of binary and octal literals are [lexed more eagerly][lex] to
2424
improve error messages and macro behavior. For example, `0b1234` is
2525
now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
@@ -169,10 +169,10 @@ Version 1.0.0-alpha.2 (February 2015)
169169
* Highlights
170170

171171
* The various I/O modules were [overhauled][io-rfc] to reduce
172-
unnecessary abstractions and provide better interoperation with
172+
unncessary abstractions and provide better interoperation with
173173
the underlying platform. The old `io` module remains temporarily
174174
at `std::old_io`.
175-
* The standard library now [participates in feature gating][feat],
175+
* The standard library now [partipates in feature gating][feat],
176176
so use of unstable libraries now requires a `#![feature(...)]`
177177
attribute. The impact of this change is [described on the
178178
forum][feat-forum]. [RFC][feat-rfc].
@@ -385,7 +385,7 @@ Version 1.0.0-alpha (January 2015)
385385
syscall when available.
386386
* The 'serialize' crate has been renamed 'rustc-serialize' and
387387
moved out of the distribution to Cargo. Although it is widely
388-
used now, it is expected to be superseded in the near future.
388+
used now, it is expected to be superceded in the near future.
389389
* The `Show` formatter, typically implemented with
390390
`#[derive(Show)]` is [now requested with the `{:?}`
391391
specifier][show] and is intended for use by all types, for uses

branches/tmp/configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,10 @@ probe CFG_MD5 md5
717717
probe CFG_MD5SUM md5sum
718718
if [ -n "$CFG_MD5" ]
719719
then
720-
CFG_HASH_COMMAND="$CFG_MD5 -q | cut -c 1-8"
720+
CFG_HASH_COMMAND="$CFG_MD5 -q | head -c 8"
721721
elif [ -n "$CFG_MD5SUM" ]
722722
then
723-
CFG_HASH_COMMAND="$CFG_MD5SUM | cut -c 1-8"
723+
CFG_HASH_COMMAND="$CFG_MD5SUM | head -c 8"
724724
else
725725
err 'could not find one of: md5 md5sum'
726726
fi

branches/tmp/mk/docs.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ ERR_IDX_GEN = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(ERR_IDX_GEN_EXE)
7777

7878
D := $(S)src/doc
7979

80-
# FIXME (#25705) eventually may want to put error-index target back here.
81-
DOC_TARGETS := trpl style
80+
DOC_TARGETS := trpl style error-index
8281
COMPILER_DOC_TARGETS :=
8382
DOC_L10N_TARGETS :=
8483

branches/tmp/mk/main.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)
3232
CFG_DISABLE_UNSTABLE_FEATURES=1
3333
endif
3434
ifeq ($(CFG_RELEASE_CHANNEL),beta)
35-
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
35+
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta
3636
# When building beta distributables just reuse the same "beta" name
3737
# so when we upload we'll always override the previous beta. This
3838
# doesn't actually impact the version reported by rustc - it's just

branches/tmp/src/doc/reference.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3622,14 +3622,6 @@ The `Sized` trait indicates that the size of this type is known at compile-time.
36223622
The `Drop` trait provides a destructor, to be run whenever a value of this type
36233623
is to be destroyed.
36243624

3625-
## The `Deref` trait
3626-
3627-
The `Deref<Target = U>` trait allows a type to implicitly implement all the methods
3628-
of the type `U`. When attempting to resolve a method call, the compiler will search
3629-
the top-level type for the implementation of the called method. If no such method is
3630-
found, `.deref()` is called and the compiler continues to search for the method
3631-
implementation in the returned type `U`.
3632-
36333625
# Memory model
36343626

36353627
A Rust program's memory consists of a static set of *items* and a *heap*.

branches/tmp/src/doc/trpl/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ of those times. As the error explains, while we made our binding mutable, we
150150
still cannot call `push`. This is because we already have a reference to an
151151
element of the vector, `y`. Mutating something while another reference exists
152152
is dangerous, because we may invalidate the reference. In this specific case,
153-
when we create the vector, we may have only allocated space for two elements.
154-
Adding a third would mean allocating a new chunk of memory for all those elements,
153+
when we create the vector, we may have only allocated space for three elements.
154+
Adding a fourth would mean allocating a new chunk of memory for all those elements,
155155
copying the old values over, and updating the internal pointer to that memory.
156156
That all works just fine. The problem is that `y` wouldn’t get updated, and so
157157
we’d have a ‘dangling pointer’. That’s bad. Any use of `y` would be an error in

branches/tmp/src/doc/trpl/dining-philosophers.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ called ‘the dining philosophers’. It was originally conceived by Dijkstra in
77
[paper]: http://www.usingcsp.com/cspbook.pdf
88

99
> In ancient times, a wealthy philanthropist endowed a College to accommodate
10-
> five eminent philosophers. Each philosopher had a room in which she could
11-
> engage in her professional activity of thinking; there was also a common
10+
> five eminent philosophers. Each philosopher had a room in which he could
11+
> engage in his professional activity of thinking; there was also a common
1212
> dining room, furnished with a circular table, surrounded by five chairs, each
1313
> labelled by the name of the philosopher who was to sit in it. They sat
1414
> anticlockwise around the table. To the left of each philosopher there was
1515
> laid a golden fork, and in the centre stood a large bowl of spaghetti, which
16-
> was constantly replenished. A philosopher was expected to spend most of her
17-
> time thinking; but when she felt hungry, she went to the dining room, sat down
18-
> in her own chair, picked up her own fork on her left, and plunged it into the
16+
> was constantly replenished. A philosopher was expected to spend most of his
17+
> time thinking; but when he felt hungry, he went to the dining room, sat down
18+
> in his own chair, picked up his own fork on his left, and plunged it into the
1919
> spaghetti. But such is the tangled nature of spaghetti that a second fork is
2020
> required to carry it to the mouth. The philosopher therefore had also to pick
21-
> up the fork on her right. When she was finished she would put down both her
22-
> forks, get up from her chair, and continue thinking. Of course, a fork can be
23-
> used by only one philosopher at a time. If the other philosopher wants it, she
21+
> up the fork on his right. When he was finished he would put down both his
22+
> forks, get up from his chair, and continue thinking. Of course, a fork can be
23+
> used by only one philosopher at a time. If the other philosopher wants it, he
2424
> just has to wait until the fork is available again.
2525
2626
This classic problem shows off a few different elements of concurrency. The

branches/tmp/src/doc/trpl/documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ You can control a few aspects of the HTML that `rustdoc` generates through the
549549
```rust
550550
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
551551
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
552-
html_root_url = "http://doc.rust-lang.org/")]
552+
html_root_url = "http://doc.rust-lang.org/")];
553553
```
554554

555555
This sets a few different options, with a logo, favicon, and a root URL.

branches/tmp/src/doc/trpl/guessing-game.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ a few tricks up their sleeves.
148148
For example, they’re [immutable][immutable] by default. That’s why our example
149149
uses `mut`: it makes a binding mutable, rather than immutable. `let` doesn’t
150150
take a name on the left hand side, it actually accepts a
151-
[pattern][patterns]’. We’ll use patterns later. It’s easy enough
151+
[pattern][patterns]’. We’ll use patterns more later. It’s easy enough
152152
to use for now:
153153

154154
```rust

branches/tmp/src/doc/trpl/lifetimes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ to it.
219219
## Lifetime Elision
220220

221221
Rust supports powerful local type inference in function bodies, but it’s
222-
forbidden in item signatures to allow reasoning about the types based on
222+
forbidden in item signatures to allow reasoning about the types just based in
223223
the item signature alone. However, for ergonomic reasons a very restricted
224224
secondary inference algorithm called “lifetime elision” applies in function
225225
signatures. It infers only based on the signature components themselves and not

branches/tmp/src/doc/trpl/macros.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,9 @@ which syntactic form it matches.
476476

477477
There are additional rules regarding the next token after a metavariable:
478478

479-
* `expr` variables may only be followed by one of: `=> , ;`
480-
* `ty` and `path` variables may only be followed by one of: `=> , : = > as`
481-
* `pat` variables may only be followed by one of: `=> , =`
479+
* `expr` variables must be followed by one of: `=> , ;`
480+
* `ty` and `path` variables must be followed by one of: `=> , : = > as`
481+
* `pat` variables must be followed by one of: `=> , =`
482482
* Other variables may be followed by any token.
483483

484484
These rules provide some flexibility for Rust’s syntax to evolve without
@@ -683,9 +683,9 @@ let v = vec![0; 100];
683683

684684
## assert! and assert_eq!
685685

686-
These two macros are used in tests. `assert!` takes a boolean. `assert_eq!`
687-
takes two values and checks them for equality. `true` passes, `false` `panic!`s.
688-
Like this:
686+
These two macros are used in tests. `assert!` takes a boolean, and `assert_eq!`
687+
takes two values and compares them. Truth passes, success `panic!`s. Like
688+
this:
689689

690690
```rust,no_run
691691
// A-ok!

branches/tmp/src/doc/trpl/strings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ let world = "world!".to_string();
123123
let hello_world = hello + &world;
124124
```
125125

126-
This is because `&String` can automatically coerce to a `&str`. This is a
126+
This is because `&String` can automatically coerece to a `&str`. This is a
127127
feature called ‘[`Deref` coercions][dc]’.
128128

129129
[dc]: deref-coercions.html

branches/tmp/src/doc/trpl/the-stack-and-the-heap.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ allocated on the heap:
277277
| 0 | x | ?????? |
278278

279279
[drop]: drop.html
280-
[^moving]: We can make the memory live longer by transferring ownership,
281-
sometimes called ‘moving out of the box’. More complex examples will
282-
be covered later.
280+
[moving]: We can make the memory live longer by transferring ownership,
281+
sometimes called ‘moving out of the box’. More complex examples will
282+
be covered later.
283283

284284

285285
And then the stack frame goes away, freeing all of our memory.

branches/tmp/src/liballoc/rc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
//! and have the `Owner` remain allocated as long as any `Gadget` points at it.
3333
//!
3434
//! ```rust
35-
//! # #![feature(alloc)]
35+
//! # #![feature(alloc, collections)]
3636
//! use std::rc::Rc;
3737
//!
3838
//! struct Owner {
@@ -49,7 +49,7 @@
4949
//! fn main() {
5050
//! // Create a reference counted Owner.
5151
//! let gadget_owner : Rc<Owner> = Rc::new(
52-
//! Owner { name: String::from("Gadget Man") }
52+
//! Owner { name: String::from_str("Gadget Man") }
5353
//! );
5454
//!
5555
//! // Create Gadgets belonging to gadget_owner. To increment the reference

branches/tmp/src/libcollections/btree/map.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,13 +1291,14 @@ impl<K, V> BTreeMap<K, V> {
12911291
/// # Examples
12921292
///
12931293
/// ```
1294+
/// # #![feature(core)]
12941295
/// use std::collections::BTreeMap;
12951296
///
12961297
/// let mut a = BTreeMap::new();
12971298
/// a.insert(1, "a");
12981299
/// a.insert(2, "b");
12991300
///
1300-
/// let keys: Vec<_> = a.keys().cloned().collect();
1301+
/// let keys: Vec<usize> = a.keys().cloned().collect();
13011302
/// assert_eq!(keys, [1, 2]);
13021303
/// ```
13031304
#[stable(feature = "rust1", since = "1.0.0")]
@@ -1313,6 +1314,7 @@ impl<K, V> BTreeMap<K, V> {
13131314
/// # Examples
13141315
///
13151316
/// ```
1317+
/// # #![feature(core)]
13161318
/// use std::collections::BTreeMap;
13171319
///
13181320
/// let mut a = BTreeMap::new();
@@ -1553,6 +1555,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
15531555
/// # Examples
15541556
///
15551557
/// ```
1558+
/// # #![feature(collections)]
15561559
/// use std::collections::BTreeMap;
15571560
///
15581561
/// let mut count: BTreeMap<&str, usize> = BTreeMap::new();

branches/tmp/src/libcollections/btree/set.rs

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ impl<T> BTreeSet<T> {
115115
/// # Examples
116116
///
117117
/// ```
118+
/// # #![feature(core)]
118119
/// use std::collections::BTreeSet;
119120
///
120121
/// let set: BTreeSet<usize> = [1, 2, 3, 4].iter().cloned().collect();
@@ -123,7 +124,7 @@ impl<T> BTreeSet<T> {
123124
/// println!("{}", x);
124125
/// }
125126
///
126-
/// let v: Vec<_> = set.iter().cloned().collect();
127+
/// let v: Vec<usize> = set.iter().cloned().collect();
127128
/// assert_eq!(v, [1, 2, 3, 4]);
128129
/// ```
129130
#[stable(feature = "rust1", since = "1.0.0")]
@@ -170,6 +171,7 @@ impl<T: Ord> BTreeSet<T> {
170171
/// # Examples
171172
///
172173
/// ```
174+
/// # #![feature(core)]
173175
/// use std::collections::BTreeSet;
174176
///
175177
/// let mut a = BTreeSet::new();
@@ -180,7 +182,7 @@ impl<T: Ord> BTreeSet<T> {
180182
/// b.insert(2);
181183
/// b.insert(3);
182184
///
183-
/// let diff: Vec<_> = a.difference(&b).cloned().collect();
185+
/// let diff: Vec<usize> = a.difference(&b).cloned().collect();
184186
/// assert_eq!(diff, [1]);
185187
/// ```
186188
#[stable(feature = "rust1", since = "1.0.0")]
@@ -193,6 +195,7 @@ impl<T: Ord> BTreeSet<T> {
193195
/// # Examples
194196
///
195197
/// ```
198+
/// # #![feature(core)]
196199
/// use std::collections::BTreeSet;
197200
///
198201
/// let mut a = BTreeSet::new();
@@ -203,7 +206,7 @@ impl<T: Ord> BTreeSet<T> {
203206
/// b.insert(2);
204207
/// b.insert(3);
205208
///
206-
/// let sym_diff: Vec<_> = a.symmetric_difference(&b).cloned().collect();
209+
/// let sym_diff: Vec<usize> = a.symmetric_difference(&b).cloned().collect();
207210
/// assert_eq!(sym_diff, [1, 3]);
208211
/// ```
209212
#[stable(feature = "rust1", since = "1.0.0")]
@@ -217,6 +220,7 @@ impl<T: Ord> BTreeSet<T> {
217220
/// # Examples
218221
///
219222
/// ```
223+
/// # #![feature(core)]
220224
/// use std::collections::BTreeSet;
221225
///
222226
/// let mut a = BTreeSet::new();
@@ -227,7 +231,7 @@ impl<T: Ord> BTreeSet<T> {
227231
/// b.insert(2);
228232
/// b.insert(3);
229233
///
230-
/// let intersection: Vec<_> = a.intersection(&b).cloned().collect();
234+
/// let intersection: Vec<usize> = a.intersection(&b).cloned().collect();
231235
/// assert_eq!(intersection, [2]);
232236
/// ```
233237
#[stable(feature = "rust1", since = "1.0.0")]
@@ -241,6 +245,7 @@ impl<T: Ord> BTreeSet<T> {
241245
/// # Examples
242246
///
243247
/// ```
248+
/// # #![feature(core)]
244249
/// use std::collections::BTreeSet;
245250
///
246251
/// let mut a = BTreeSet::new();
@@ -249,7 +254,7 @@ impl<T: Ord> BTreeSet<T> {
249254
/// let mut b = BTreeSet::new();
250255
/// b.insert(2);
251256
///
252-
/// let union: Vec<_> = a.union(&b).cloned().collect();
257+
/// let union: Vec<usize> = a.union(&b).cloned().collect();
253258
/// assert_eq!(union, [1, 2]);
254259
/// ```
255260
#[stable(feature = "rust1", since = "1.0.0")]
@@ -313,6 +318,7 @@ impl<T: Ord> BTreeSet<T> {
313318
/// # Examples
314319
///
315320
/// ```
321+
/// # #![feature(core)]
316322
/// use std::collections::BTreeSet;
317323
///
318324
/// let set: BTreeSet<_> = [1, 2, 3].iter().cloned().collect();
@@ -330,6 +336,7 @@ impl<T: Ord> BTreeSet<T> {
330336
/// # Examples
331337
///
332338
/// ```
339+
/// # #![feature(core)]
333340
/// use std::collections::BTreeSet;
334341
///
335342
/// let a: BTreeSet<_> = [1, 2, 3].iter().cloned().collect();
@@ -351,6 +358,7 @@ impl<T: Ord> BTreeSet<T> {
351358
/// # Examples
352359
///
353360
/// ```
361+
/// # #![feature(core)]
354362
/// use std::collections::BTreeSet;
355363
///
356364
/// let sup: BTreeSet<_> = [1, 2, 3].iter().cloned().collect();
@@ -393,6 +401,7 @@ impl<T: Ord> BTreeSet<T> {
393401
/// # Examples
394402
///
395403
/// ```
404+
/// # #![feature(core)]
396405
/// use std::collections::BTreeSet;
397406
///
398407
/// let sub: BTreeSet<_> = [1, 2].iter().cloned().collect();
@@ -474,11 +483,12 @@ impl<T> IntoIterator for BTreeSet<T> {
474483
/// # Examples
475484
///
476485
/// ```
486+
/// # #![feature(core)]
477487
/// use std::collections::BTreeSet;
478488
///
479489
/// let set: BTreeSet<usize> = [1, 2, 3, 4].iter().cloned().collect();
480490
///
481-
/// let v: Vec<_> = set.into_iter().collect();
491+
/// let v: Vec<usize> = set.into_iter().collect();
482492
/// assert_eq!(v, [1, 2, 3, 4]);
483493
/// ```
484494
fn into_iter(self) -> IntoIter<T> {

branches/tmp/src/libcollections/fmt.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,6 @@
353353
//! * `^` - the argument is center-aligned in `width` columns
354354
//! * `>` - the argument is right-aligned in `width` columns
355355
//!
356-
//! Note that alignment may not be implemented by some types. A good way
357-
//! to ensure padding is applied is to format your input, then use this
358-
//! resulting string to pad your output.
359-
//!
360356
//! ## Sign/#/0
361357
//!
362358
//! These can all be interpreted as flags for a particular formatter.

0 commit comments

Comments
 (0)