Skip to content

Commit 7445622

Browse files
committed
Auto merge of #63998 - Centril:rollup-pfuwxz3, r=Centril
Rollup of 7 pull requests Successful merges: - #63867 (resolve: Block expansion of a derive container until all its derives are resolved) - #63880 (Validation: check raw wide pointer metadata) - #63914 (ty: use Align for ReprOptions pack and align.) - #63941 (rustbuild: allow disabling deny(warnings) for bootstrap) - #63949 (Fix build src/libtest) - #63984 (Update rust-installer to limit memory use) - #63992 (Small improvement for Ord implementation of integers) Failed merges: r? @ghost
2 parents 85ed538 + 3f05cf6 commit 7445622

33 files changed

+430
-325
lines changed

src/bootstrap/bin/main.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
//! parent directory, and otherwise documentation can be found throughout the `build`
66
//! directory in each respective module.
77
8-
// NO-RUSTC-WRAPPER
9-
#![deny(warnings, rust_2018_idioms, unused_lifetimes)]
10-
118
use std::env;
129

1310
use bootstrap::{Config, Build};

src/bootstrap/bin/rustc.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
//! switching compilers for the bootstrap and for build scripts will probably
1616
//! never get replaced.
1717
18-
// NO-RUSTC-WRAPPER
19-
#![deny(warnings, rust_2018_idioms, unused_lifetimes)]
20-
2118
use std::env;
2219
use std::ffi::OsString;
2320
use std::io;
@@ -124,8 +121,9 @@ fn main() {
124121

125122
if env::var_os("RUSTC_DENY_WARNINGS").is_some() &&
126123
env::var_os("RUSTC_EXTERNAL_TOOL").is_none() {
127-
// When extending this list, search for `NO-RUSTC-WRAPPER` and add the new lints
128-
// there as well, some code doesn't go through this `rustc` wrapper.
124+
// When extending this list, add the new lints to the RUSTFLAGS of the
125+
// build_bootstrap function of src/bootstrap/bootstrap.py as well as
126+
// some code doesn't go through this `rustc` wrapper.
129127
cmd.arg("-Dwarnings");
130128
cmd.arg("-Drust_2018_idioms");
131129
cmd.arg("-Dunused_lifetimes");

src/bootstrap/bin/rustdoc.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
//!
33
//! See comments in `src/bootstrap/rustc.rs` for more information.
44
5-
// NO-RUSTC-WRAPPER
6-
#![deny(warnings, rust_2018_idioms, unused_lifetimes)]
7-
85
use std::env;
96
use std::process::Command;
107
use std::path::PathBuf;

src/bootstrap/bootstrap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,8 @@ def build_bootstrap(self):
631631
target_linker = self.get_toml("linker", build_section)
632632
if target_linker is not None:
633633
env["RUSTFLAGS"] += "-C linker=" + target_linker + " "
634+
if self.get_toml("deny-warnings", "rust") != "false":
635+
env["RUSTFLAGS"] += "-Dwarnings -Drust_2018_idioms -Dunused_lifetimes "
634636

635637
env["PATH"] = os.path.join(self.bin_root(), "bin") + \
636638
os.pathsep + env["PATH"]

src/bootstrap/check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl Step for Std {
3434
const DEFAULT: bool = true;
3535

3636
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
37-
run.all_krates("std")
37+
run.all_krates("test")
3838
}
3939

4040
fn make_run(run: RunConfig<'_>) {

src/bootstrap/compile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl Step for Std {
3939
const DEFAULT: bool = true;
4040

4141
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
42-
run.all_krates("std")
42+
run.all_krates("test")
4343
}
4444

4545
fn make_run(run: RunConfig<'_>) {

src/bootstrap/doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ impl Step for Std {
413413

414414
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
415415
let builder = run.builder;
416-
run.all_krates("std").default_condition(builder.config.docs)
416+
run.all_krates("test").default_condition(builder.config.docs)
417417
}
418418

419419
fn make_run(run: RunConfig<'_>) {

src/bootstrap/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@
103103
//! More documentation can be found in each respective module below, and you can
104104
//! also check out the `src/bootstrap/README.md` file for more information.
105105
106-
// NO-RUSTC-WRAPPER
107-
#![deny(warnings, rust_2018_idioms, unused_lifetimes)]
108-
109106
#![feature(core_intrinsics)]
110107
#![feature(drain_filter)]
111108

src/build_helper/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// NO-RUSTC-WRAPPER
2-
#![deny(warnings, rust_2018_idioms, unused_lifetimes)]
3-
41
use std::fs::File;
52
use std::path::{Path, PathBuf};
63
use std::process::{Command, Stdio};

src/libcore/cmp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,8 +1015,8 @@ mod impls {
10151015
// The order here is important to generate more optimal assembly.
10161016
// See <https://github.com/rust-lang/rust/issues/63758> for more info.
10171017
if *self < *other { Less }
1018-
else if *self > *other { Greater }
1019-
else { Equal }
1018+
else if *self == *other { Equal }
1019+
else { Greater }
10201020
}
10211021
}
10221022
)*)

0 commit comments

Comments
 (0)