Skip to content

Commit 4e622da

Browse files
committed
Update the clippy submodule and enable building edition crates
1 parent 3575be6 commit 4e622da

File tree

8 files changed

+15
-6
lines changed

8 files changed

+15
-6
lines changed

src/Cargo.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,12 @@ dependencies = [
306306

307307
[[package]]
308308
name = "clippy"
309-
version = "0.0.202"
309+
version = "0.0.207"
310310
dependencies = [
311311
"ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
312312
"cargo_metadata 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)",
313313
"clippy-mini-macro-test 0.2.0",
314-
"clippy_lints 0.0.202",
314+
"clippy_lints 0.0.207",
315315
"compiletest_rs 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
316316
"derive-new 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)",
317317
"lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -328,7 +328,8 @@ version = "0.2.0"
328328

329329
[[package]]
330330
name = "clippy_lints"
331-
version = "0.0.202"
331+
version = "0.0.205"
332+
source = "registry+https://github.com/rust-lang/crates.io-index"
332333
dependencies = [
333334
"cargo_metadata 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)",
334335
"if_chain 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -348,8 +349,7 @@ dependencies = [
348349

349350
[[package]]
350351
name = "clippy_lints"
351-
version = "0.0.205"
352-
source = "registry+https://github.com/rust-lang/crates.io-index"
352+
version = "0.0.207"
353353
dependencies = [
354354
"cargo_metadata 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)",
355355
"if_chain 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",

src/bootstrap/bootstrap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ def build_bootstrap(self):
607607
(os.pathsep + env["LIBRARY_PATH"]) \
608608
if "LIBRARY_PATH" in env else ""
609609
env["RUSTFLAGS"] = "-Cdebuginfo=2 "
610+
env["__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS"] = "dev"
610611

611612
build_section = "target.{}".format(self.build_triple())
612613
target_features = []

src/bootstrap/builder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,8 @@ impl<'a> Builder<'a> {
729729
&self.config.channel
730730
};
731731
cargo.env("__CARGO_DEFAULT_LIB_METADATA", &metadata);
732+
// HACK: we do want to be able to compile edition crates, even though that isn't stable yet
733+
cargo.env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "dev");
732734

733735
let stage;
734736
if compiler.stage == 0 && self.local_rebuild {

src/bootstrap/dist.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,7 @@ impl Step for PlainSourceTarball {
947947
// Get cargo-vendor installed, if it isn't already.
948948
let mut has_cargo_vendor = false;
949949
let mut cmd = Command::new(&builder.initial_cargo);
950+
cmd.env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "dev");
950951
for line in output(cmd.arg("install").arg("--list")).lines() {
951952
has_cargo_vendor |= line.starts_with("cargo-vendor ");
952953
}
@@ -973,6 +974,7 @@ impl Step for PlainSourceTarball {
973974
// Vendor all Cargo dependencies
974975
let mut cmd = Command::new(&builder.initial_cargo);
975976
cmd.arg("vendor")
977+
.env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "dev")
976978
.current_dir(&plain_dst_src.join("src"));
977979
builder.run(&mut cmd);
978980
}

src/bootstrap/metadata.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ fn build_krate(build: &mut Build, krate: &str) {
5959
// the dependency graph and what `-p` arguments there are.
6060
let mut cargo = Command::new(&build.initial_cargo);
6161
cargo.arg("metadata")
62+
.env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "dev")
6263
.arg("--format-version").arg("1")
6364
.arg("--manifest-path").arg(build.src.join(krate).join("Cargo.toml"));
6465
let output = output(&mut cargo);

src/bootstrap/test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,6 +1878,7 @@ impl Step for Distcheck {
18781878
let toml = dir.join("rust-src/lib/rustlib/src/rust/src/libstd/Cargo.toml");
18791879
builder.run(
18801880
Command::new(&builder.initial_cargo)
1881+
.env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "dev")
18811882
.arg("generate-lockfile")
18821883
.arg("--manifest-path")
18831884
.arg(&toml)
@@ -1899,6 +1900,7 @@ impl Step for Bootstrap {
18991900
let mut cmd = Command::new(&builder.initial_cargo);
19001901
cmd.arg("test")
19011902
.current_dir(builder.src.join("src/bootstrap"))
1903+
.env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "dev")
19021904
.env("RUSTFLAGS", "-Cdebuginfo=2")
19031905
.env("CARGO_TARGET_DIR", builder.out.join("bootstrap"))
19041906
.env("RUSTC_BOOTSTRAP", "1")

src/tools/clippy

src/tools/tidy/src/deps.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ fn extract_license(line: &str) -> String {
285285
fn get_deps(path: &Path, cargo: &Path) -> Resolve {
286286
// Run `cargo metadata` to get the set of dependencies
287287
let output = Command::new(cargo)
288+
.env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "dev")
288289
.arg("metadata")
289290
.arg("--format-version")
290291
.arg("1")

0 commit comments

Comments
 (0)