You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #12973 - dimbleby:fix-links-error-message, r=epage
fix error message for duplicate links
Fixing an error message which is both misformatted and contains the wrong text.
Previously it said that only one crate in the tree should use `links ='linking-crate'`; now it says that only one crate should use `links = 'linked-library'`
msg.push_str("\nOnly one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. ");
143
-
msg.push_str("Try to adjust your dependencies so that only one package uses the links ='");
144
-
msg.push_str(&*dep.package_name());
145
-
msg.push_str("' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.");
143
+
msg.push_str("Try to adjust your dependencies so that only one package uses the `links =\"");
144
+
msg.push_str(link);
145
+
msg.push_str("\"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.");
Copy file name to clipboardExpand all lines: tests/testsuite/build_script.rs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1028,7 +1028,7 @@ versions that meet the requirements `*` are: 0.5.0
1028
1028
1029
1029
the package `a-sys` links to the native library `a`, but it conflicts with a previous package which links to `a` as well:
1030
1030
package `foo v0.5.0 ([..])`
1031
-
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='a-sys' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.
1031
+
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the `links =\"a\"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.
1032
1032
1033
1033
failed to select a version for `a-sys` which could resolve this conflict
1034
1034
").run();
@@ -1148,7 +1148,7 @@ versions that meet the requirements `*` are: 0.5.0
1148
1148
1149
1149
the package `a-sys` links to the native library `a`, but it conflicts with a previous package which links to `a` as well:
1150
1150
package `foo v0.5.0 ([..])`
1151
-
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='a-sys' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.
1151
+
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the `links =\"a\"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.
1152
1152
1153
1153
failed to select a version for `a-sys` which could resolve this conflict
1154
1154
").run();
@@ -4382,7 +4382,7 @@ versions that meet the requirements `*` are: 0.5.0
4382
4382
4383
4383
the package `a` links to the native library `a`, but it conflicts with a previous package which links to `a` as well:
4384
4384
package `foo v0.5.0 ([..])`
4385
-
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='a' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.
4385
+
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the `links =\"a\"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.
4386
4386
4387
4387
failed to select a version for `a` which could resolve this conflict
0 commit comments