mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
530c0a81d5
Don't overwrite CodegenFnAttrs when adding used compiler/linker Pointed out by `@tmiasko` in https://github.com/rust-lang/rust/pull/93718#discussion_r928259163. Probably a better fix than https://github.com/rust-lang/rust/pull/99674 for https://github.com/rust-lang/rust/issues/99596, assuming it does fix the latter. I don't have the ability to write a regression test for this at the moment, and am quite surprised this didn't cause other failures. The old code is clearly wrong though, but I'm not picky as to which of these is better to go with.