mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
22f4587586
When reuing a definition across codegen units, we obviously cannot use internal linkage, but using external linkage means that we can end up with multiple conflicting definitions of a single symbol across multiple crates. Since the definitions should all be equal semantically, we can use weak_odr linkage to resolve the situation. Fixes #32518