From 3a376dca74b4e6351fcd556e53e52cba2ecdfeaa Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Tue, 15 Aug 2023 21:28:39 +0100 Subject: [PATCH 1/3] chore: bump cargo-util to 0.2.5 --- Cargo.lock | 2 +- Cargo.toml | 2 +- crates/cargo-util/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1c345bcbe40..fe365bbcbcb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -417,7 +417,7 @@ dependencies = [ [[package]] name = "cargo-util" -version = "0.2.4" +version = "0.2.5" dependencies = [ "anyhow", "core-foundation", diff --git a/Cargo.toml b/Cargo.toml index 571f372fd56..7e383be696a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ cargo-credential = { version = "0.2.0", path = "credential/cargo-credential" } cargo-platform = { path = "crates/cargo-platform", version = "0.1.3" } cargo-test-macro = { path = "crates/cargo-test-macro" } cargo-test-support = { path = "crates/cargo-test-support" } -cargo-util = { version = "0.2.4", path = "crates/cargo-util" } +cargo-util = { version = "0.2.5", path = "crates/cargo-util" } cargo_metadata = "0.14.0" clap = "4.2.0" core-foundation = { version = "0.9.0", features = ["mac_os_10_7_support"] } diff --git a/crates/cargo-util/Cargo.toml b/crates/cargo-util/Cargo.toml index f01705fcab4..61458103749 100644 --- a/crates/cargo-util/Cargo.toml +++ b/crates/cargo-util/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-util" -version = "0.2.4" +version = "0.2.5" edition = "2021" license = "MIT OR Apache-2.0" homepage = "https://github.com/rust-lang/cargo" From 3561627ee27f7dc0685144dc50a5b79baee74f63 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 5 Aug 2023 12:11:07 -0700 Subject: [PATCH 2/3] Add allow(internal_features) --- tests/testsuite/cargo_features.rs | 1 + tests/testsuite/custom_target.rs | 2 ++ tests/testsuite/doc.rs | 1 + 3 files changed, 4 insertions(+) diff --git a/tests/testsuite/cargo_features.rs b/tests/testsuite/cargo_features.rs index 6e553143174..ed5f53a1e6d 100644 --- a/tests/testsuite/cargo_features.rs +++ b/tests/testsuite/cargo_features.rs @@ -295,6 +295,7 @@ fn allow_features_to_rustc() { .file( "src/lib.rs", r#" + #![allow(internal_features)] #![feature(test_2018_feature)] "#, ) diff --git a/tests/testsuite/custom_target.rs b/tests/testsuite/custom_target.rs index b7ad4d835ec..491d3233ca3 100644 --- a/tests/testsuite/custom_target.rs +++ b/tests/testsuite/custom_target.rs @@ -4,6 +4,7 @@ use cargo_test_support::{basic_manifest, project}; use std::fs; const MINIMAL_LIB: &str = r#" +#![allow(internal_features)] #![feature(no_core)] #![feature(lang_items)] #![no_core] @@ -80,6 +81,7 @@ fn custom_target_dependency() { .file( "src/lib.rs", r#" + #![allow(internal_features)] #![feature(no_core)] #![feature(lang_items)] #![feature(auto_traits)] diff --git a/tests/testsuite/doc.rs b/tests/testsuite/doc.rs index 265457eb9a5..481df859045 100644 --- a/tests/testsuite/doc.rs +++ b/tests/testsuite/doc.rs @@ -756,6 +756,7 @@ fn doc_target() { .file( "src/lib.rs", r#" + #![allow(internal_features)] #![feature(no_core, lang_items)] #![no_core] From bc797515c7ace87c6e5006f64ebea4d146b01018 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Mon, 14 Aug 2023 13:37:43 +0100 Subject: [PATCH 3/3] test: bypass `rustc --test` impl details for `-Zfuture-incompat-test` Switch to an empty `lib.rs` from `main.rs`. See https://github.com/rust-lang/rust/issues/114804#issuecomment-1677233355 --- tests/testsuite/future_incompat_report.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testsuite/future_incompat_report.rs b/tests/testsuite/future_incompat_report.rs index 9f451a64c6b..4d2c66d17f3 100644 --- a/tests/testsuite/future_incompat_report.rs +++ b/tests/testsuite/future_incompat_report.rs @@ -164,7 +164,7 @@ fn test_multi_crate() { second-dep = "*" "#, ) - .file("src/main.rs", "fn main() {}") + .file("src/lib.rs", "") .build(); for command in &["build", "check", "rustc", "test"] {