Skip to content

Commit f6b446f

Browse files
committed
Auto merge of #25624 - steveklabnik:rollup, r=steveklabnik
- Successful merges: #25583, #25585, #25602, #25604, #25607, #25611, #25614, #25620 - Failed merges:
2 parents 43cf733 + 395d01c commit f6b446f

File tree

8 files changed

+30
-22
lines changed

8 files changed

+30
-22
lines changed

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
35+
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
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

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 he could
11-
> engage in his professional activity of thinking; there was also a common
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
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 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
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
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 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
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
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

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 just based in
222+
forbidden in item signatures to allow reasoning about the types based on
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

src/doc/trpl/macros.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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, and `assert_eq!`
687-
takes two values and compares them. Truth passes, success `panic!`s. Like
688-
this:
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:
689689

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

src/libcollections/fmt.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,10 @@
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+
//!
356360
//! ## Sign/#/0
357361
//!
358362
//! These can all be interpreted as flags for a particular formatter.

src/libcollections/str.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,8 +1841,12 @@ impl str {
18411841
///
18421842
/// # Examples
18431843
///
1844+
/// ```
1845+
/// #![feature(collections)]
1846+
///
18441847
/// let s = "HELLO";
18451848
/// assert_eq!(s.to_lowercase(), "hello");
1849+
/// ```
18461850
#[unstable(feature = "collections")]
18471851
pub fn to_lowercase(&self) -> String {
18481852
let mut s = String::with_capacity(self.len());
@@ -1854,8 +1858,12 @@ impl str {
18541858
///
18551859
/// # Examples
18561860
///
1861+
/// ```
1862+
/// #![feature(collections)]
1863+
///
18571864
/// let s = "hello";
18581865
/// assert_eq!(s.to_uppercase(), "HELLO");
1866+
/// ```
18591867
#[unstable(feature = "collections")]
18601868
pub fn to_uppercase(&self) -> String {
18611869
let mut s = String::with_capacity(self.len());

src/libcore/num/mod.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,11 @@ macro_rules! int_impl {
132132
///
133133
/// Leading and trailing whitespace represent an error.
134134
///
135-
/// # Arguments
136-
///
137-
/// * src - A string slice
138-
/// * radix - The base to use. Must lie in the range [2 .. 36]
139-
///
140-
/// # Return value
135+
/// # Examples
141136
///
142-
/// `Err(ParseIntError)` if the string did not represent a valid number.
143-
/// Otherwise, `Ok(n)` where `n` is the integer represented by `src`.
137+
/// ```
138+
/// assert_eq!(u32::from_str_radix("A", 16), Ok(10));
139+
/// ```
144140
#[stable(feature = "rust1", since = "1.0.0")]
145141
#[allow(deprecated)]
146142
pub fn from_str_radix(src: &str, radix: u32) -> Result<$T, ParseIntError> {

src/librustc_unicode/char.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ impl char {
429429
///
430430
/// [1]: ftp://ftp.unicode.org/Public/UNIDATA/UnicodeData.txt
431431
///
432-
/// [`SpecialCasing`.txt`]: ftp://ftp.unicode.org/Public/UNIDATA/SpecialCasing.txt
432+
/// [`SpecialCasing.txt`]: ftp://ftp.unicode.org/Public/UNIDATA/SpecialCasing.txt
433433
///
434434
/// [2]: http://www.unicode.org/versions/Unicode4.0.0/ch03.pdf#G33992
435435
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)