Skip to content

Commit 60ac9f4

Browse files
committed
Auto merge of #42573 - frewsxcv:rollup, r=frewsxcv
Rollup of 5 pull requests - Successful merges: #42307, #42385, #42531, #42551, #42558 - Failed merges:
2 parents 3d5b8c6 + 3be7f8b commit 60ac9f4

File tree

6 files changed

+23
-18
lines changed

6 files changed

+23
-18
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ standard library, and documentation.
77

88
## Quick Start
99

10-
Read ["Installing Rust"] from [The Book].
10+
Read ["Installation"] from [The Book].
1111

12-
["Installing Rust"]: https://doc.rust-lang.org/book/getting-started.html#installing-rust
12+
["Installation"]: https://doc.rust-lang.org/book/second-edition/ch01-01-installation.html
1313
[The Book]: https://doc.rust-lang.org/book/index.html
1414

1515
## Building from Source

src/libcollections/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
//! A contiguous growable array type with heap-allocated contents, written
12-
//! `Vec<T>` but pronounced 'vector.'
12+
//! `Vec<T>`.
1313
//!
1414
//! Vectors have `O(1)` indexing, amortized `O(1)` push (to the end) and
1515
//! `O(1)` pop (from the end).

src/libcore/cell.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -391,17 +391,17 @@ impl<T> Cell<T> {
391391
}
392392
}
393393

394-
/// Replaces the contained value.
394+
/// Replaces the contained value, and returns it.
395395
///
396396
/// # Examples
397397
///
398398
/// ```
399399
/// use std::cell::Cell;
400400
///
401-
/// let c = Cell::new(5);
402-
/// let old = c.replace(10);
403-
///
404-
/// assert_eq!(5, old);
401+
/// let cell = Cell::new(5);
402+
/// assert_eq!(cell.get(), 5);
403+
/// assert_eq!(cell.replace(10), 5);
404+
/// assert_eq!(cell.get(), 10);
405405
/// ```
406406
#[stable(feature = "move_cell", since = "1.17.0")]
407407
pub fn replace(&self, val: T) -> T {

src/librustdoc/html/static/main.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
1+
/*!
2+
* Copyright 2014 The Rust Project Developers. See the COPYRIGHT
3+
* file at the top-level directory of this distribution and at
4+
* http://rust-lang.org/COPYRIGHT.
5+
*
6+
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
7+
* http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
8+
* <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
9+
* option. This file may not be copied, modified, or distributed
10+
* except according to those terms.
11+
*/
1012

1113
/*jslint browser: true, es5: true */
1214
/*globals $: true, rootPath: true */

src/test/compile-fail/variadic-ffi.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// ignore-arm stdcall isn't suppported
12+
// ignore-aarch64 stdcall isn't suppported
1213

1314
extern "stdcall" {
1415
fn printf(_: *const u8, ...); //~ ERROR: variadic function must have C or cdecl calling

src/tools/tidy/src/style.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,10 @@ fn licenseck(file: &Path, contents: &str) -> bool {
169169
lines.windows(LICENSE.lines().count()).any(|window| {
170170
let offset = if window.iter().all(|w| w.starts_with("//")) {
171171
2
172-
} else if window.iter().all(|w| w.starts_with("#")) {
172+
} else if window.iter().all(|w| w.starts_with('#')) {
173173
1
174+
} else if window.iter().all(|w| w.starts_with(" *")) {
175+
2
174176
} else {
175177
return false
176178
};

0 commit comments

Comments
 (0)