Skip to content

Commit a6fd806

Browse files
committed
---
yaml --- r: 208882 b: refs/heads/master c: 945c50d h: refs/heads/master v: v3
1 parent 17abae3 commit a6fd806

File tree

32 files changed

+94
-278
lines changed

32 files changed

+94
-278
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: 88e6976acf2e7ea3b13598bbc42fa543107eddcd
2+
refs/heads/master: 945c50d9748d0ddb497ff1bf68742c96ed3ae4ca
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
55
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f

trunk/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

trunk/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

trunk/mk/dist.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ dist-install-dir-$(1): PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
123123
dist-install-dir-$(1): PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
124124
dist-install-dir-$(1): PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
125125
dist-install-dir-$(1): PREPARE_CLEAN=true
126-
dist-install-dir-$(1): prepare-base-dir-$(1) docs
126+
dist-install-dir-$(1): prepare-base-dir-$(1) docs compiler-docs
127127
$$(Q)mkdir -p $$(PREPARE_DEST_DIR)/share/doc/rust
128128
$$(Q)$$(PREPARE_MAN_CMD) $$(S)COPYRIGHT $$(PREPARE_DEST_DIR)/share/doc/rust
129129
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-APACHE $$(PREPARE_DEST_DIR)/share/doc/rust
@@ -163,7 +163,7 @@ endif
163163
--legacy-manifest-dirs=rustlib,cargo
164164
$$(Q)rm -R tmp/dist/$$(PKG_NAME)-$(1)-image
165165

166-
dist-doc-install-dir-$(1): docs
166+
dist-doc-install-dir-$(1): docs compiler-docs
167167
$$(Q)mkdir -p tmp/dist/$$(DOC_PKG_NAME)-$(1)-image/share/doc/rust
168168
$$(Q)cp -r doc tmp/dist/$$(DOC_PKG_NAME)-$(1)-image/share/doc/rust/html
169169

@@ -251,7 +251,7 @@ distcheck-tar-bins: dist-tar-bins
251251

252252
# Just copy the docs to a folder under dist with the appropriate name
253253
# for uploading to S3
254-
dist-docs: docs
254+
dist-docs: docs compiler-docs
255255
$(Q) rm -Rf dist/doc
256256
$(Q) mkdir -p dist/doc/
257257
$(Q) cp -r doc dist/doc/$(CFG_PACKAGE_VERS)

trunk/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

trunk/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*.

trunk/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

trunk/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.

trunk/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

trunk/src/doc/trpl/macros.md

Lines changed: 3 additions & 3 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

trunk/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

trunk/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.

trunk/src/libcollections/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#![feature(str_char)]
4040
#![feature(str_words)]
4141
#![feature(slice_patterns)]
42+
#![feature(debug_builders)]
4243
#![feature(utf8_error)]
4344
#![cfg_attr(test, feature(rand, rustc_private, test, hash, collections,
4445
collections_drain, collections_range))]

trunk/src/libcore/fmt/builders.rs

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ impl<'a, 'b: 'a> fmt::Write for PadAdapter<'a, 'b> {
5454
///
5555
/// Constructed by the `Formatter::debug_struct` method.
5656
#[must_use]
57-
#[stable(feature = "debug_builders", since = "1.2.0")]
5857
pub struct DebugStruct<'a, 'b: 'a> {
5958
fmt: &'a mut fmt::Formatter<'b>,
6059
result: fmt::Result,
@@ -73,7 +72,7 @@ pub fn debug_struct_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>, name: &str)
7372

7473
impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
7574
/// Adds a new field to the generated struct output.
76-
#[stable(feature = "debug_builders", since = "1.2.0")]
75+
#[unstable(feature = "debug_builders", reason = "method was just created")]
7776
pub fn field(&mut self, name: &str, value: &fmt::Debug) -> &mut DebugStruct<'a, 'b> {
7877
self.result = self.result.and_then(|_| {
7978
let prefix = if self.has_fields {
@@ -95,7 +94,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
9594
}
9695

9796
/// Finishes output and returns any error encountered.
98-
#[stable(feature = "debug_builders", since = "1.2.0")]
97+
#[unstable(feature = "debug_builders", reason = "method was just created")]
9998
pub fn finish(&mut self) -> fmt::Result {
10099
if self.has_fields {
101100
self.result = self.result.and_then(|_| {
@@ -118,7 +117,6 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
118117
///
119118
/// Constructed by the `Formatter::debug_tuple` method.
120119
#[must_use]
121-
#[stable(feature = "debug_builders", since = "1.2.0")]
122120
pub struct DebugTuple<'a, 'b: 'a> {
123121
fmt: &'a mut fmt::Formatter<'b>,
124122
result: fmt::Result,
@@ -136,7 +134,7 @@ pub fn debug_tuple_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>, name: &str) -> D
136134

137135
impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
138136
/// Adds a new field to the generated tuple struct output.
139-
#[stable(feature = "debug_builders", since = "1.2.0")]
137+
#[unstable(feature = "debug_builders", reason = "method was just created")]
140138
pub fn field(&mut self, value: &fmt::Debug) -> &mut DebugTuple<'a, 'b> {
141139
self.result = self.result.and_then(|_| {
142140
let (prefix, space) = if self.has_fields {
@@ -158,7 +156,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
158156
}
159157

160158
/// Finishes output and returns any error encountered.
161-
#[stable(feature = "debug_builders", since = "1.2.0")]
159+
#[unstable(feature = "debug_builders", reason = "method was just created")]
162160
pub fn finish(&mut self) -> fmt::Result {
163161
if self.has_fields {
164162
self.result = self.result.and_then(|_| {
@@ -213,7 +211,6 @@ impl<'a, 'b: 'a> DebugInner<'a, 'b> {
213211
///
214212
/// Constructed by the `Formatter::debug_set` method.
215213
#[must_use]
216-
#[stable(feature = "debug_builders", since = "1.2.0")]
217214
pub struct DebugSet<'a, 'b: 'a> {
218215
inner: DebugInner<'a, 'b>,
219216
}
@@ -231,14 +228,14 @@ pub fn debug_set_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>) -> DebugSet<'a, 'b
231228

232229
impl<'a, 'b: 'a> DebugSet<'a, 'b> {
233230
/// Adds a new entry to the set output.
234-
#[stable(feature = "debug_builders", since = "1.2.0")]
231+
#[unstable(feature = "debug_builders", reason = "method was just created")]
235232
pub fn entry(&mut self, entry: &fmt::Debug) -> &mut DebugSet<'a, 'b> {
236233
self.inner.entry(entry);
237234
self
238235
}
239236

240237
/// Adds the contents of an iterator of entries to the set output.
241-
#[stable(feature = "debug_builders", since = "1.2.0")]
238+
#[unstable(feature = "debug_builders", reason = "method was just created")]
242239
pub fn entries<D, I>(&mut self, entries: I) -> &mut DebugSet<'a, 'b>
243240
where D: fmt::Debug, I: IntoIterator<Item=D> {
244241
for entry in entries {
@@ -248,7 +245,7 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
248245
}
249246

250247
/// Finishes output and returns any error encountered.
251-
#[stable(feature = "debug_builders", since = "1.2.0")]
248+
#[unstable(feature = "debug_builders", reason = "method was just created")]
252249
pub fn finish(&mut self) -> fmt::Result {
253250
self.inner.finish();
254251
self.inner.result.and_then(|_| self.inner.fmt.write_str("}"))
@@ -259,7 +256,6 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
259256
///
260257
/// Constructed by the `Formatter::debug_list` method.
261258
#[must_use]
262-
#[stable(feature = "debug_builders", since = "1.2.0")]
263259
pub struct DebugList<'a, 'b: 'a> {
264260
inner: DebugInner<'a, 'b>,
265261
}
@@ -277,14 +273,14 @@ pub fn debug_list_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>) -> DebugList<'a,
277273

278274
impl<'a, 'b: 'a> DebugList<'a, 'b> {
279275
/// Adds a new entry to the list output.
280-
#[stable(feature = "debug_builders", since = "1.2.0")]
276+
#[unstable(feature = "debug_builders", reason = "method was just created")]
281277
pub fn entry(&mut self, entry: &fmt::Debug) -> &mut DebugList<'a, 'b> {
282278
self.inner.entry(entry);
283279
self
284280
}
285281

286282
/// Adds the contents of an iterator of entries to the list output.
287-
#[stable(feature = "debug_builders", since = "1.2.0")]
283+
#[unstable(feature = "debug_builders", reason = "method was just created")]
288284
pub fn entries<D, I>(&mut self, entries: I) -> &mut DebugList<'a, 'b>
289285
where D: fmt::Debug, I: IntoIterator<Item=D> {
290286
for entry in entries {
@@ -294,7 +290,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
294290
}
295291

296292
/// Finishes output and returns any error encountered.
297-
#[stable(feature = "debug_builders", since = "1.2.0")]
293+
#[unstable(feature = "debug_builders", reason = "method was just created")]
298294
pub fn finish(&mut self) -> fmt::Result {
299295
self.inner.finish();
300296
self.inner.result.and_then(|_| self.inner.fmt.write_str("]"))
@@ -305,7 +301,6 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
305301
///
306302
/// Constructed by the `Formatter::debug_map` method.
307303
#[must_use]
308-
#[stable(feature = "debug_builders", since = "1.2.0")]
309304
pub struct DebugMap<'a, 'b: 'a> {
310305
fmt: &'a mut fmt::Formatter<'b>,
311306
result: fmt::Result,
@@ -323,7 +318,7 @@ pub fn debug_map_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>) -> DebugMap<'a, 'b
323318

324319
impl<'a, 'b: 'a> DebugMap<'a, 'b> {
325320
/// Adds a new entry to the map output.
326-
#[stable(feature = "debug_builders", since = "1.2.0")]
321+
#[unstable(feature = "debug_builders", reason = "method was just created")]
327322
pub fn entry(&mut self, key: &fmt::Debug, value: &fmt::Debug) -> &mut DebugMap<'a, 'b> {
328323
self.result = self.result.and_then(|_| {
329324
if self.is_pretty() {
@@ -341,7 +336,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
341336
}
342337

343338
/// Adds the contents of an iterator of entries to the map output.
344-
#[stable(feature = "debug_builders", since = "1.2.0")]
339+
#[unstable(feature = "debug_builders", reason = "method was just created")]
345340
pub fn entries<K, V, I>(&mut self, entries: I) -> &mut DebugMap<'a, 'b>
346341
where K: fmt::Debug, V: fmt::Debug, I: IntoIterator<Item=(K, V)> {
347342
for (k, v) in entries {
@@ -351,7 +346,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
351346
}
352347

353348
/// Finishes output and returns any error encountered.
354-
#[stable(feature = "debug_builders", since = "1.2.0")]
349+
#[unstable(feature = "debug_builders", reason = "method was just created")]
355350
pub fn finish(&mut self) -> fmt::Result {
356351
let prefix = if self.is_pretty() && self.has_fields { "\n" } else { "" };
357352
self.result.and_then(|_| write!(self.fmt, "{}}}", prefix))

0 commit comments

Comments
 (0)