]> git.proxmox.com Git - cargo.git/commitdiff
further simplify the reproduction code
authorSebastian Thiel <sebastian.thiel@icloud.com>
Tue, 1 Mar 2022 02:19:10 +0000 (10:19 +0800)
committerSebastian Thiel <sebastian.thiel@icloud.com>
Tue, 1 Mar 2022 02:20:31 +0000 (10:20 +0800)
This is a hacky way of making changes while leaving everything else,
despite it being deactivated for now, in the hopes to not forget
to put additional difficulties back in once this particular issue
is fixed.

tests/testsuite/artifact_dep.rs

index 8ed7dbbb40bb5737cf0dcd281f06f092838074c3..2aea043b69c72385d07a91597b7bf27a0765f83c 100644 (file)
@@ -466,8 +466,9 @@ fn feature_resolution_works_for_cfg_target_specification() {
                 version = "0.0.1"
                 authors = []
 
-                [target.'cfg(target_arch = "$ARCH")'.dependencies]
-                d2 = { path = "../d2" }
+                # [target.'cfg(target_arch = "$ARCH")'.dependencies]
+                # [dependencies]
+                # d2 = { path = "../d2" }
             "#
             .replace("$ARCH", target_arch),
         )
@@ -481,8 +482,8 @@ fn feature_resolution_works_for_cfg_target_specification() {
         .file(
             "d1/src/lib.rs",
             &r#"pub fn f() {
-                #[cfg(target_arch = "$ARCH")]
-                d2::f();
+                // #[cfg(target_arch = "$ARCH")]
+                // d2::f();
             }
             "#
             .replace("$ARCH", target_arch),
@@ -496,6 +497,7 @@ fn feature_resolution_works_for_cfg_target_specification() {
                 authors = []
             "#,
         )
+        .file("d2/build.rs", r#"fn main() { }"#)
         .file("d2/src/lib.rs", "pub fn f() {}")
         .build();