Skip to content

Commit bbd7932

Browse files
committed
Auto merge of #46225 - GuillaumeGomez:rollup, r=GuillaumeGomez
Rollup of 5 pull requests - Successful merges: #45635, #46177, #46190, #46218, #46220 - Failed merges:
2 parents 246a6d1 + e6968df commit bbd7932

File tree

9 files changed

+67
-13
lines changed

9 files changed

+67
-13
lines changed

RELEASES.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
Version 1.22.0 (2017-11-23)
1+
Version 1.22.1 (2017-11-22)
2+
==========================
3+
4+
- [Update Cargo to fix an issue with macOS 10.13 "High Sierra"][46183]
5+
6+
[46183]: https://github.com/rust-lang/rust/pull/46183
7+
8+
Version 1.22.0 (2017-11-22)
29
==========================
310

411
Language

src/liballoc/slice.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -1468,9 +1468,9 @@ impl<T> [T] {
14681468
core_slice::SliceExt::copy_from_slice(self, src)
14691469
}
14701470

1471-
/// Swaps all elements in `self` with those in `src`.
1471+
/// Swaps all elements in `self` with those in `other`.
14721472
///
1473-
/// The length of `src` must be the same as `self`.
1473+
/// The length of `other` must be the same as `self`.
14741474
///
14751475
/// # Panics
14761476
///
@@ -1481,16 +1481,16 @@ impl<T> [T] {
14811481
/// ```
14821482
/// #![feature(swap_with_slice)]
14831483
///
1484-
/// let mut src = [1, 2, 3];
1485-
/// let mut dst = [7, 8, 9];
1484+
/// let mut slice1 = [1, 2, 3];
1485+
/// let mut slice2 = [7, 8, 9];
14861486
///
1487-
/// src.swap_with_slice(&mut dst);
1488-
/// assert_eq!(src, [7, 8, 9]);
1489-
/// assert_eq!(dst, [1, 2, 3]);
1487+
/// slice1.swap_with_slice(&mut slice2);
1488+
/// assert_eq!(slice1, [7, 8, 9]);
1489+
/// assert_eq!(slice2, [1, 2, 3]);
14901490
/// ```
14911491
#[unstable(feature = "swap_with_slice", issue = "44030")]
1492-
pub fn swap_with_slice(&mut self, src: &mut [T]) {
1493-
core_slice::SliceExt::swap_with_slice(self, src)
1492+
pub fn swap_with_slice(&mut self, other: &mut [T]) {
1493+
core_slice::SliceExt::swap_with_slice(self, other)
14941494
}
14951495

14961496
/// Copies `self` into a new `Vec`.

src/libstd/process.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,10 @@ impl Command {
712712
/// Executes the command as a child process, waiting for it to finish and
713713
/// collecting all of its output.
714714
///
715-
/// By default, stdin, stdout and stderr are captured (and used to
716-
/// provide the resulting output).
715+
/// By default, stdout and stderr are captured (and used to provide the
716+
/// resulting output). Stdin is not inherited from the parent and any
717+
/// attempt by the child process to read from the stdin stream will result
718+
/// in the stream immediately closing.
717719
///
718720
/// # Examples
719721
///

src/libstd_unicode/char.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ pub use tables::{UnicodeVersion, UNICODE_VERSION};
5757
/// [`to_lowercase`]: ../../std/primitive.char.html#method.to_lowercase
5858
/// [`char`]: ../../std/primitive.char.html
5959
#[stable(feature = "rust1", since = "1.0.0")]
60+
#[derive(Debug)]
6061
pub struct ToLowercase(CaseMappingIter);
6162

6263
#[stable(feature = "rust1", since = "1.0.0")]
@@ -78,6 +79,7 @@ impl FusedIterator for ToLowercase {}
7879
/// [`to_uppercase`]: ../../std/primitive.char.html#method.to_uppercase
7980
/// [`char`]: ../../std/primitive.char.html
8081
#[stable(feature = "rust1", since = "1.0.0")]
82+
#[derive(Debug)]
8183
pub struct ToUppercase(CaseMappingIter);
8284

8385
#[stable(feature = "rust1", since = "1.0.0")]
@@ -91,6 +93,7 @@ impl Iterator for ToUppercase {
9193
#[unstable(feature = "fused", issue = "35602")]
9294
impl FusedIterator for ToUppercase {}
9395

96+
#[derive(Debug)]
9497
enum CaseMappingIter {
9598
Three(char, char, char),
9699
Two(char, char),
@@ -1450,7 +1453,7 @@ impl char {
14501453

14511454
/// An iterator that decodes UTF-16 encoded code points from an iterator of `u16`s.
14521455
#[stable(feature = "decode_utf16", since = "1.9.0")]
1453-
#[derive(Clone)]
1456+
#[derive(Clone, Debug)]
14541457
pub struct DecodeUtf16<I>
14551458
where I: Iterator<Item = u16>
14561459
{

src/libstd_unicode/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
2929
test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
3030
#![deny(warnings)]
31+
#![deny(missing_debug_implementations)]
3132
#![no_std]
3233

3334
#![feature(ascii_ctype)]

src/libstd_unicode/lossy.rs

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ impl Utf8Lossy {
3838

3939
/// Iterator over lossy UTF-8 string
4040
#[unstable(feature = "str_internals", issue = "0")]
41+
#[allow(missing_debug_implementations)]
4142
pub struct Utf8LossyChunksIter<'a> {
4243
source: &'a [u8],
4344
}

src/libstd_unicode/u_str.rs

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ impl UnicodeStr for str {
7676

7777
/// Iterator adaptor for encoding `char`s to UTF-16.
7878
#[derive(Clone)]
79+
#[allow(missing_debug_implementations)]
7980
pub struct Utf16Encoder<I> {
8081
chars: I,
8182
extra: u16,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright 2016 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.
10+
//
11+
12+
13+
#![feature(proc_macro)]
14+
#![allow(unused_macros)]
15+
16+
#[macro_use] extern crate log;
17+
18+
pub fn main() {
19+
info!("This is a log message.");
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
error: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? (see issue #27812)
2+
--> $DIR/issue-44953.rs:16:14
3+
|
4+
16 | #[macro_use] extern crate log;
5+
| ^^^^^^^^^^^^^^^^^
6+
|
7+
= help: add #![feature(rustc_private)] to the crate attributes to enable
8+
9+
error: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? (see issue #27812)
10+
--> $DIR/issue-44953.rs:19:5
11+
|
12+
19 | info!("This is a log message.");
13+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14+
|
15+
= help: add #![feature(rustc_private)] to the crate attributes to enable
16+
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
17+
18+
error: aborting due to 2 previous errors
19+

0 commit comments

Comments
 (0)