native lib: defer the duplicate check after relevant_lib check.#85554
native lib: defer the duplicate check after relevant_lib check.#85554bors merged 2 commits intorust-lang:masterfrom
Conversation
|
r? @varkor (rust-highfive has picked a reviewer for you, use r? to override) |
|
I don't know how I missed this, I remember specifically considering this case. |
| }; | ||
|
|
||
| // Skip if this library is the same as the last. | ||
| last = if (lib.kind, lib.name) == last { continue } else { (lib.kind, lib.name) }; |
There was a problem hiding this comment.
This change is not strictly necessary for the fix, but let's leave it for consistency.
It also improves deduplication in the (unlikely) case of #[link(name = "foo")] #[link(wasm_import_module = "...")] #[link(name = "foo")].
|
Could you add a test for this? |
|
@rustbot label -S-waiting-on-author +S-waiting-on-review |
|
@bors r+ |
|
📌 Commit 8e42fa5 has been approved by |
|
☀️ Test successful - checks-actions |
#84794 break code using conditional-compilation with
#[link]attributes.