Skip to content

Commit a583f6f

Browse files
committed
Auto merge of #39260 - steveklabnik:rollup, r=steveklabnik
Rollup of 7 pull requests - Successful merges: #38794, #38956, #38993, #39191, #39200, #39233, #39258 - Failed merges:
2 parents 7bfe5c0 + d7c5f0d commit a583f6f

File tree

7 files changed

+45
-11
lines changed

7 files changed

+45
-11
lines changed

Makefile.in

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
# most intimate workings of the compiler itself, you've come to the
1818
# right place. Let's see what's on the menu.
1919
#
20+
# Please note that most of these options only work if configure was
21+
# run with --disable-rustbuild. For documentation on the new build
22+
# system, see CONTRIBUTING.md.
23+
#
2024
# First, start with one of these build targets:
2125
#
2226
# * all - The default. Build a complete, bootstrapped compiler.

src/doc/book/match.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn process_message(msg: Message) {
8282
match msg {
8383
Message::Quit => quit(),
8484
Message::ChangeColor(r, g, b) => change_color(r, g, b),
85-
Message::Move { x: x, y: y } => move_cursor(x, y),
85+
Message::Move { x, y: new_name_for_y } => move_cursor(x, new_name_for_y),
8686
Message::Write(s) => println!("{}", s),
8787
};
8888
}

src/doc/book/syntax-index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* `%` (`expr % expr`): arithmetic remainder. Overloadable (`Rem`).
4646
* `%=` (`var %= expr`): arithmetic remainder & assignment. Overloadable (`RemAssign`).
4747
* `&` (`expr & expr`): bitwise and. Overloadable (`BitAnd`).
48-
* `&` (`&expr`): borrow. See [References and Borrowing].
48+
* `&` (`&expr`, `&mut expr`): borrow. See [References and Borrowing].
4949
* `&` (`&type`, `&mut type`, `&'a type`, `&'a mut type`): borrowed pointer type. See [References and Borrowing].
5050
* `&=` (`var &= expr`): bitwise and & assignment. Overloadable (`BitAndAssign`).
5151
* `&&` (`expr && expr`): logical and.

src/doc/book/trait-objects.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,7 @@ any resources of the vtable’s type: for `u8` it is trivial, but for `String` i
263263
will free the memory. This is necessary for owning trait objects like
264264
`Box<Foo>`, which need to clean-up both the `Box` allocation as well as the
265265
internal type when they go out of scope. The `size` and `align` fields store
266-
the size of the erased type, and its alignment requirements; these are
267-
essentially unused at the moment since the information is embedded in the
268-
destructor, but will be used in the future, as trait objects are progressively
269-
made more flexible.
266+
the size of the erased type, and its alignment requirements.
270267

271268
Suppose we’ve got some values that implement `Foo`. The explicit form of
272269
construction and use of `Foo` trait objects might look a bit like (ignoring the

src/doc/grammar.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,9 @@ unit_expr : "()" ;
510510
### Structure expressions
511511

512512
```antlr
513-
struct_expr : expr_path '{' ident ':' expr
514-
[ ',' ident ':' expr ] *
513+
struct_expr_field_init : ident | ident ':' expr ;
514+
struct_expr : expr_path '{' struct_expr_field_init
515+
[ ',' struct_expr_field_init ] *
515516
[ ".." expr ] '}' |
516517
expr_path '(' expr
517518
[ ',' expr ] * ')' |

src/libcore/sync/atomic.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
//!
2222
//! Each method takes an `Ordering` which represents the strength of
2323
//! the memory barrier for that operation. These orderings are the
24-
//! same as [LLVM atomic orderings][1].
24+
//! same as [LLVM atomic orderings][1]. For more information see the [nomicon][2].
2525
//!
2626
//! [1]: http://llvm.org/docs/LangRef.html#memory-model-for-concurrent-operations
27+
//! [2]: https://doc.rust-lang.org/nomicon/atomics.html
2728
//!
2829
//! Atomic variables are safe to share between threads (they implement `Sync`)
2930
//! but they do not themselves provide the mechanism for sharing and follow the
@@ -141,6 +142,9 @@ unsafe impl<T> Sync for AtomicPtr<T> {}
141142
///
142143
/// Rust's memory orderings are [the same as
143144
/// LLVM's](http://llvm.org/docs/LangRef.html#memory-model-for-concurrent-operations).
145+
///
146+
/// For more information see the [nomicon][1].
147+
/// [1]: https://doc.rust-lang.org/nomicon/atomics.html
144148
#[stable(feature = "rust1", since = "1.0.0")]
145149
#[derive(Copy, Clone, Debug)]
146150
pub enum Ordering {

src/libstd/ascii.rs

+30-2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ pub trait AsciiExt {
6666
/// ASCII letters 'a' to 'z' are mapped to 'A' to 'Z',
6767
/// but non-ASCII letters are unchanged.
6868
///
69+
/// To uppercase the string in-place, use [`make_ascii_uppercase`].
70+
///
71+
/// To uppercase ASCII characters in addition to non-ASCII characters, use
72+
/// [`str::to_uppercase`].
73+
///
6974
/// # Examples
7075
///
7176
/// ```
@@ -77,6 +82,9 @@ pub trait AsciiExt {
7782
/// assert_eq!('A', ascii.to_ascii_uppercase());
7883
/// assert_eq!('❤', utf8.to_ascii_uppercase());
7984
/// ```
85+
///
86+
/// [`make_ascii_uppercase`]: #tymethod.make_ascii_uppercase
87+
/// [`str::to_uppercase`]: ../primitive.str.html#method.to_uppercase
8088
#[stable(feature = "rust1", since = "1.0.0")]
8189
fn to_ascii_uppercase(&self) -> Self::Owned;
8290

@@ -85,6 +93,11 @@ pub trait AsciiExt {
8593
/// ASCII letters 'A' to 'Z' are mapped to 'a' to 'z',
8694
/// but non-ASCII letters are unchanged.
8795
///
96+
/// To lowercase the string in-place, use [`make_ascii_lowercase`].
97+
///
98+
/// To lowercase ASCII characters in addition to non-ASCII characters, use
99+
/// [`str::to_lowercase`].
100+
///
88101
/// # Examples
89102
///
90103
/// ```
@@ -96,6 +109,9 @@ pub trait AsciiExt {
96109
/// assert_eq!('a', ascii.to_ascii_lowercase());
97110
/// assert_eq!('❤', utf8.to_ascii_lowercase());
98111
/// ```
112+
///
113+
/// [`make_ascii_lowercase`]: #tymethod.make_ascii_lowercase
114+
/// [`str::to_lowercase`]: ../primitive.str.html#method.to_lowercase
99115
#[stable(feature = "rust1", since = "1.0.0")]
100116
fn to_ascii_lowercase(&self) -> Self::Owned;
101117

@@ -123,7 +139,11 @@ pub trait AsciiExt {
123139

124140
/// Converts this type to its ASCII upper case equivalent in-place.
125141
///
126-
/// See `to_ascii_uppercase` for more information.
142+
/// ASCII letters 'a' to 'z' are mapped to 'A' to 'Z',
143+
/// but non-ASCII letters are unchanged.
144+
///
145+
/// To return a new uppercased string without modifying the existing one, use
146+
/// [`to_ascii_uppercase`].
127147
///
128148
/// # Examples
129149
///
@@ -136,12 +156,18 @@ pub trait AsciiExt {
136156
///
137157
/// assert_eq!('A', ascii);
138158
/// ```
159+
///
160+
/// [`to_ascii_uppercase`]: #tymethod.to_ascii_uppercase
139161
#[stable(feature = "ascii", since = "1.9.0")]
140162
fn make_ascii_uppercase(&mut self);
141163

142164
/// Converts this type to its ASCII lower case equivalent in-place.
143165
///
144-
/// See `to_ascii_lowercase` for more information.
166+
/// ASCII letters 'A' to 'Z' are mapped to 'a' to 'z',
167+
/// but non-ASCII letters are unchanged.
168+
///
169+
/// To return a new lowercased string without modifying the existing one, use
170+
/// [`to_ascii_lowercase`].
145171
///
146172
/// # Examples
147173
///
@@ -154,6 +180,8 @@ pub trait AsciiExt {
154180
///
155181
/// assert_eq!('a', ascii);
156182
/// ```
183+
///
184+
/// [`to_ascii_lowercase`]: #tymethod.to_ascii_lowercase
157185
#[stable(feature = "ascii", since = "1.9.0")]
158186
fn make_ascii_lowercase(&mut self);
159187
}

0 commit comments

Comments
 (0)