]> git.proxmox.com Git - cargo.git/commitdiff
trigger another failure by using [target.'cfg(…)'.dependencies] syntax
authorSebastian Thiel <sebastian.thiel@icloud.com>
Tue, 1 Mar 2022 03:09:49 +0000 (11:09 +0800)
committerSebastian Thiel <sebastian.thiel@icloud.com>
Tue, 1 Mar 2022 03:09:49 +0000 (11:09 +0800)
tests/testsuite/artifact_dep.rs

index 114259fc19dfcc4110ffbdc3a4396207b065d1b3..fda135f7e79e44c038c15411291e2cf9bb83b7d7 100644 (file)
@@ -426,6 +426,7 @@ fn features_are_not_unified_among_lib_and_bin_dep_of_different_target() {
 }
 
 #[cargo_test]
+#[ignore]
 fn feature_resolution_works_for_cfg_target_specification() {
     if cross_compile::disabled() {
         return;
@@ -465,8 +466,7 @@ fn feature_resolution_works_for_cfg_target_specification() {
                 version = "0.0.1"
                 authors = []
 
-                # [target.'cfg(target_arch = "$ARCH")'.dependencies]
-                [dependencies]
+                [target.'cfg(target_arch = "$ARCH")'.dependencies]
                 d2 = { path = "../d2" }
             "#
             .replace("$ARCH", target_arch),
@@ -481,7 +481,7 @@ fn feature_resolution_works_for_cfg_target_specification() {
         .file(
             "d1/src/lib.rs",
             &r#"pub fn f() {
-                // #[cfg(target_arch = "$ARCH")]
+                #[cfg(target_arch = "$ARCH")]
                 d2::f();
             }
             "#