From cd7022a0d72169cafc9b2a4c6eadf839c214835d Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 29 Jun 2022 10:15:19 +0200 Subject: [PATCH] Revert "Use target-applies-to-host to avoid unnecessary cache invalidation" This reverts commit 3d65c1e957f21011ccbed709be449741998caad3. This was breaking our clippy lint configuration in .cargo/config.toml: https://github.com/rust-lang/cargo/issues/10744 --- .cargo/config.toml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index f9c7f2356f..b1727099d2 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,13 +1,3 @@ -# Pass the rustflags specified to host dependencies (build scripts, proc-macros) -# when a `--target` is passed to Cargo. Historically this was not the case, and -# because of that, cross-compilation would not set the rustflags configured -# below in `target.'cfg(all())'` for them, resulting in cache invalidation. -# -# Since this is an unstable feature (enabled at the bottom of the file), this -# setting is unfortunately ignored on stable toolchains, but it's still better -# to have it apply on nightly than using the old behavior for all toolchains. -target-applies-to-host = false - [alias] xtask = "run --package xtask --" @@ -46,8 +36,5 @@ rustflags = [ "-Wclippy::wildcard_imports", ] -# activate the target-applies-to-host feature. -# Required for `target-applies-to-host` at the top to take effect. [unstable] rustdoc-map = true -target-applies-to-host = true