3
0
Fork 0
forked from mirrors/nixpkgs

rustPlatform.importCargoLock: copy lints from workspace

Rust 1.74 added support for configuring lints with cargo in a new
"lints" table. This also adds a new possible position to reference the
host workspace.

Fixes #273835
This commit is contained in:
Artemis Tosini 2023-12-16 05:27:33 +00:00
parent 08d6cec730
commit 285216aceb
No known key found for this signature in database
GPG key ID: EE5227935FE3FF18

View file

@ -96,6 +96,13 @@ def main() -> None:
workspace_manifest, crate_manifest["target"][key]
)
if (
"lints" in crate_manifest
and "workspace" in crate_manifest["lints"]
and crate_manifest["lints"]["workspace"] is True
):
crate_manifest["lints"] = workspace_manifest["lints"]
if not changed:
return