Skip to content

Commit 9373612

Browse files
committed
---
yaml --- r: 212870 b: refs/heads/master c: 6e7fcc4 h: refs/heads/master v: v3
1 parent 3b3205c commit 9373612

File tree

8 files changed

+41
-81
lines changed

8 files changed

+41
-81
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: 7f04b8ff07ba0c27c2aef957d7aa3ed4404fc877
2+
refs/heads/master: 6e7fcc44aef7b457f3be3a1971d9f026957678d5
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
55
refs/heads/try: 1864973ae17213c5a58c4dd3f9af6d1b6c7d2e05

trunk/mk/prepare.mk

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,34 @@ DEFAULT_PREPARE_MAN_CMD = install -m644
2929

3030
# Create a directory
3131
# $(1) is the directory
32+
#
33+
# XXX: These defines are called to generate make steps.
34+
# Adding blank lines means two steps from different defines will not end up on
35+
# the same line.
3236
define PREPARE_DIR
33-
@$(Q)$(call E, prepare: $(1))
37+
38+
@$(call E, prepare: $(1))
3439
$(Q)$(PREPARE_DIR_CMD) $(1)
40+
3541
endef
3642

3743
# Copy an executable
3844
# $(1) is the filename/libname-glob
3945
#
40-
# Gee, what's up with that $(nop)? See comment below.
46+
# See above for an explanation on the surrounding blank lines
4147
define PREPARE_BIN
42-
$(nop)
48+
4349
@$(call E, prepare: $(PREPARE_DEST_BIN_DIR)/$(1))
4450
$(Q)$(PREPARE_BIN_CMD) $(PREPARE_SOURCE_BIN_DIR)/$(1) $(PREPARE_DEST_BIN_DIR)/$(1)
51+
4552
endef
4653

4754
# Copy a dylib or rlib
4855
# $(1) is the filename/libname-glob
4956
#
50-
# XXX: Don't remove the $(nop) command below!
51-
# Yeah, that's right, it's voodoo. Something in the way this macro is being expanded
52-
# causes it to parse incorrectly. Throwing in that empty command seems to fix the
53-
# problem. I'm sorry, just don't remove the $(nop), alright?
57+
# See above for an explanation on the surrounding blank lines
5458
define PREPARE_LIB
55-
$(nop)
59+
5660
@$(call E, prepare: $(PREPARE_WORKING_DEST_LIB_DIR)/$(1))
5761
$(Q)LIB_NAME="$(notdir $(lastword $(wildcard $(PREPARE_WORKING_SOURCE_LIB_DIR)/$(1))))"; \
5862
MATCHES="$(filter-out %$(notdir $(lastword $(wildcard $(PREPARE_WORKING_SOURCE_LIB_DIR)/$(1)))), \
@@ -64,13 +68,18 @@ define PREPARE_LIB
6468
echo $$MATCHES ; \
6569
fi
6670
$(Q)$(PREPARE_LIB_CMD) `ls -drt1 $(PREPARE_WORKING_SOURCE_LIB_DIR)/$(1)` $(PREPARE_WORKING_DEST_LIB_DIR)/
71+
6772
endef
6873

6974
# Copy a man page
7075
# $(1) - source dir
76+
#
77+
# See above for an explanation on the surrounding blank lines
7178
define PREPARE_MAN
79+
7280
@$(call E, prepare: $(PREPARE_DEST_MAN_DIR)/$(1))
7381
$(Q)$(PREPARE_MAN_CMD) $(PREPARE_SOURCE_MAN_DIR)/$(1) $(PREPARE_DEST_MAN_DIR)/$(1)
82+
7483
endef
7584

7685
PREPARE_TOOLS = $(filter-out compiletest rustbook error-index-generator, $(TOOLS))

trunk/src/doc/trpl/associated-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ trait Graph {
4343
Now, our clients can be abstract over a given `Graph`:
4444

4545
```rust,ignore
46-
fn distance<G: Graph>(graph: &G, start: &G::N, end: &G::N) -> usize { ... }
46+
fn distance<G: Graph>(graph: &G, start: &G::N, end: &G::N) -> u32 { ... }
4747
```
4848

4949
No need to deal with the `E`dge type here!

trunk/src/doc/trpl/iterators.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,7 @@ has no side effect on the original iterator. Let's try it out with our infinite
285285
iterator from before:
286286

287287
```rust
288-
# #![feature(step_by)]
289-
for i in (1..).step_by(5).take(5) {
288+
for i in (1..).take(5) {
290289
println!("{}", i);
291290
}
292291
```
@@ -295,10 +294,10 @@ This will print
295294

296295
```text
297296
1
298-
6
299-
11
300-
16
301-
21
297+
2
298+
3
299+
4
300+
5
302301
```
303302

304303
`filter()` is an adapter that takes a closure as an argument. This closure

trunk/src/doc/trpl/lifetimes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ fn substr<'a>(s: &'a str, until: u32) -> &'a str; // expanded
305305
fn get_str() -> &str; // ILLEGAL, no inputs
306306
307307
fn frob(s: &str, t: &str) -> &str; // ILLEGAL, two inputs
308-
fn frob<'a, 'b>(s: &'a str, t: &'b str) -> &str; // Expanded: Output lifetime is unclear
308+
fn frob<'a, 'b>(s: &'a str, t: &'b str) -> &str; // Expanded: Output lifetime is ambiguous
309309
310310
fn get_mut(&mut self) -> &mut T; // elided
311311
fn get_mut<'a>(&'a mut self) -> &'a mut T; // expanded

trunk/src/librustc_unicode/char.rs

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,22 +187,16 @@ impl char {
187187
/// # Examples
188188
///
189189
/// ```
190-
/// for i in '❤'.escape_unicode() {
191-
/// println!("{}", i);
190+
/// for c in '❤'.escape_unicode() {
191+
/// print!("{}", c);
192192
/// }
193+
/// println!("");
193194
/// ```
194195
///
195196
/// This prints:
196197
///
197198
/// ```text
198-
/// \
199-
/// u
200-
/// {
201-
/// 2
202-
/// 7
203-
/// 6
204-
/// 4
205-
/// }
199+
/// \u{2764}
206200
/// ```
207201
///
208202
/// Collecting into a `String`:
@@ -467,6 +461,12 @@ impl char {
467461
/// Returns an iterator which yields the characters corresponding to the
468462
/// lowercase equivalent of the character. If no conversion is possible then
469463
/// an iterator with just the input character is returned.
464+
///
465+
/// # Examples
466+
///
467+
/// ```
468+
/// assert_eq!(Some('c'), 'C'.to_lowercase().next());
469+
/// ```
470470
#[stable(feature = "rust1", since = "1.0.0")]
471471
#[inline]
472472
pub fn to_lowercase(self) -> ToLowercase {
@@ -515,6 +515,12 @@ impl char {
515515
/// [`SpecialCasing.txt`]: ftp://ftp.unicode.org/Public/UNIDATA/SpecialCasing.txt
516516
///
517517
/// [2]: http://www.unicode.org/versions/Unicode7.0.0/ch03.pdf#G33992
518+
///
519+
/// # Examples
520+
///
521+
/// ```
522+
/// assert_eq!(Some('C'), 'c'.to_uppercase().next());
523+
/// ```
518524
#[stable(feature = "rust1", since = "1.0.0")]
519525
#[inline]
520526
pub fn to_uppercase(self) -> ToUppercase {

trunk/src/test/run-fail/extern-panic.rs

Lines changed: 0 additions & 52 deletions
This file was deleted.

trunk/src/test/run-pass/html-literals.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// A test of the macro system. Can we do HTML literals?
1212

13-
// ignore-test FIXME #20673
14-
1513
/*
1614
1715
This is an HTML parser written as a macro. It's all CPS, and we have

0 commit comments

Comments
 (0)