Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 13 pull requests #48577

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b31ff95
Add non-panicking variants of pow to all integer types
milesand Feb 18, 2018
2d3f31d
Change local storage name for rustdoc because of conflicts with mdbook
GuillaumeGomez Feb 20, 2018
5b61b61
Allow to not switch to a theme if it doesn't exist
GuillaumeGomez Feb 20, 2018
8d51c33
Remove theme button outline
GuillaumeGomez Feb 20, 2018
b1a6c8b
Stabilize [T]::rotate_{left,right}
frewsxcv Feb 23, 2018
2985a1a
Report non-standard compile flags on ICE
pietroalbini Feb 16, 2018
70db41c
Handle gdb command failure gracefully in compiletest
varkor Feb 23, 2018
23dc694
Fix auto trait impl rustdoc ice
GuillaumeGomez Feb 23, 2018
e20f7b2
Restrict the Termination impls to simplify stabilization
scottmcm Feb 24, 2018
2466644
Ensure main() always has external linkage
varkor Feb 25, 2018
88de279
bootstrap: Add openssl configuration for powerpc-unknown-linux-gnuspe
glaubitz Feb 23, 2018
a22fbf8
librustc_back: Add support for powerpc-linux-gnuspe
glaubitz Feb 23, 2018
b7683a3
build-manifest: Add powerpc-unknown-linux-gnuspe target
glaubitz Feb 23, 2018
7c84ba4
test: Run atomic-lock-free on powerpc-linux-gnuspe
glaubitz Feb 23, 2018
5db73fc
Encode linker arguments as UTF-16 on MSVC platforms
Mark-Simulacrum Feb 22, 2018
2026453
Add specific target option for returning struct as an integer.
bdrewery Feb 26, 2018
279e5b0
FreeBSD uses Clang which can return small structs as an integer.
bdrewery Feb 26, 2018
9c80019
Fix error-format argument to x.py
Mark-Simulacrum Feb 26, 2018
c133a08
rustc: Rename `bmi` feature to `bmi1`
alexcrichton Feb 26, 2018
0b42c74
Rollup merge of #48266 - pietroalbini:report-compiler-flags-on-ice, r…
kennytm Feb 27, 2018
a6820ce
Rollup merge of #48321 - milesand:no_panic_pow, r=alexcrichton
kennytm Feb 27, 2018
b106016
Rollup merge of #48450 - frewsxcv:frewsxcxv-stabilize-slice-rotatee, …
kennytm Feb 27, 2018
d93440c
Rollup merge of #48473 - GuillaumeGomez:rustdoc-auto-trait-impl-fix, …
kennytm Feb 27, 2018
70f1de1
Rollup merge of #48484 - glaubitz:powerpcspe-linux, r=alexcrichton
kennytm Feb 27, 2018
d678890
Rollup merge of #48488 - varkor:handle-gdb-error-compiletest, r=micha…
kennytm Feb 27, 2018
d5ac422
Rollup merge of #48497 - scottmcm:more-restricted-termination, r=niko…
kennytm Feb 27, 2018
8b3b254
Rollup merge of #48541 - varkor:inlined-main, r=michaelwoerister
kennytm Feb 27, 2018
5805538
Rollup merge of #48558 - Mark-Simulacrum:error-format, r=Manishearth
kennytm Feb 27, 2018
4fcee2b
Rollup merge of #48560 - bdrewery:freebsd-struct-abi, r=estebank
kennytm Feb 27, 2018
5cd8eb2
Rollup merge of #48565 - alexcrichton:rename-bmi, r=cramertj
kennytm Feb 27, 2018
8bdad67
Rollup merge of #48381 - GuillaumeGomez:rustdoc-theme-securities, r=Q…
kennytm Feb 27, 2018
2b114da
Rollup merge of #48548 - alexcrichton:msvc-linker-utf16, r=alexcrichton
kennytm Feb 27, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/bootstrap/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,10 @@ pub fn run_cargo(build: &Build, cargo: &mut Command, stamp: &Path, is_check: boo
continue
};
if json["reason"].as_str() != Some("compiler-artifact") {
if build.config.rustc_error_format.as_ref().map_or(false, |e| e == "json") {
// most likely not a cargo message, so let's send it out as well
println!("{}", line);
}
continue
}
for filename in json["filenames"].as_array().unwrap() {
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`");
opts.optopt("", "src", "path to the root of the rust checkout", "DIR");
opts.optopt("j", "jobs", "number of jobs to run in parallel", "JOBS");
opts.optflag("h", "help", "print this help message");
opts.optflag("", "error-format", "rustc error format");
opts.optopt("", "error-format", "rustc error format", "FORMAT");

// fn usage()
let usage = |exit_code: i32, opts: &Options, subcommand_help: &str, extra_help: &str| -> ! {
Expand Down
1 change: 1 addition & 0 deletions src/bootstrap/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ impl Step for Openssl {
"mips64el-unknown-linux-gnuabi64" => "linux64-mips64",
"mipsel-unknown-linux-gnu" => "linux-mips32",
"powerpc-unknown-linux-gnu" => "linux-ppc",
"powerpc-unknown-linux-gnuspe" => "linux-ppc",
"powerpc-unknown-netbsd" => "BSD-generic32",
"powerpc64-unknown-linux-gnu" => "linux-ppc64",
"powerpc64le-unknown-linux-gnu" => "linux-ppc64le",
Expand Down
1 change: 0 additions & 1 deletion src/liballoc/benches/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#![feature(i128_type)]
#![feature(rand)]
#![feature(repr_simd)]
#![feature(slice_rotate)]
#![feature(test)]

extern crate rand;
Expand Down
1 change: 0 additions & 1 deletion src/liballoc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
#![cfg_attr(test, feature(placement_in))]
#![cfg_attr(not(test), feature(core_float))]
#![cfg_attr(not(test), feature(exact_size_is_empty))]
#![cfg_attr(not(test), feature(slice_rotate))]
#![cfg_attr(not(test), feature(generator_trait))]
#![cfg_attr(test, feature(rand, test))]
#![feature(allow_internal_unstable)]
Expand Down
20 changes: 3 additions & 17 deletions src/liballoc/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1460,8 +1460,6 @@ impl<T> [T] {
/// # Examples
///
/// ```
/// #![feature(slice_rotate)]
///
/// let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
/// a.rotate_left(2);
/// assert_eq!(a, ['c', 'd', 'e', 'f', 'a', 'b']);
Expand All @@ -1470,23 +1468,15 @@ impl<T> [T] {
/// Rotating a subslice:
///
/// ```
/// #![feature(slice_rotate)]
///
/// let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
/// a[1..5].rotate_left(1);
/// assert_eq!(a, ['a', 'c', 'd', 'e', 'b', 'f']);
/// ```
#[unstable(feature = "slice_rotate", issue = "41891")]
/// ```
#[stable(feature = "slice_rotate", since = "1.26.0")]
pub fn rotate_left(&mut self, mid: usize) {
core_slice::SliceExt::rotate_left(self, mid);
}

#[unstable(feature = "slice_rotate", issue = "41891")]
#[rustc_deprecated(since = "", reason = "renamed to `rotate_left`")]
pub fn rotate(&mut self, mid: usize) {
core_slice::SliceExt::rotate_left(self, mid);
}

/// Rotates the slice in-place such that the first `self.len() - k`
/// elements of the slice move to the end while the last `k` elements move
/// to the front. After calling `rotate_right`, the element previously at
Expand All @@ -1505,8 +1495,6 @@ impl<T> [T] {
/// # Examples
///
/// ```
/// #![feature(slice_rotate)]
///
/// let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
/// a.rotate_right(2);
/// assert_eq!(a, ['e', 'f', 'a', 'b', 'c', 'd']);
Expand All @@ -1515,13 +1503,11 @@ impl<T> [T] {
/// Rotate a subslice:
///
/// ```
/// #![feature(slice_rotate)]
///
/// let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
/// a[1..5].rotate_right(1);
/// assert_eq!(a, ['a', 'e', 'b', 'c', 'd', 'f']);
/// ```
#[unstable(feature = "slice_rotate", issue = "41891")]
#[stable(feature = "slice_rotate", since = "1.26.0")]
pub fn rotate_right(&mut self, k: usize) {
core_slice::SliceExt::rotate_right(self, k);
}
Expand Down
1 change: 0 additions & 1 deletion src/liballoc/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#![feature(pattern)]
#![feature(placement_in_syntax)]
#![feature(rand)]
#![feature(slice_rotate)]
#![feature(splice)]
#![feature(str_escape)]
#![feature(string_retain)]
Expand Down
Loading