]> git.lizzy.rs Git - rust.git/commit
Auto merge of #99676 - thomcc:dont-overwrite, r=tmiasko
authorbors <bors@rust-lang.org>
Mon, 25 Jul 2022 02:46:36 +0000 (02:46 +0000)
committerbors <bors@rust-lang.org>
Mon, 25 Jul 2022 02:46:36 +0000 (02:46 +0000)
commit530c0a81d50c6e1c9b1bdee0970d27af02ca49be
tree21573187b262f43717e8b6bfcfed02ae9d079042
parentbabff2211e3ae9ef52852dc1b01f3eacdd94c12e
parent6cfd471ffe997c56848d27e688dd8bd30f18412a
Auto merge of #99676 - thomcc:dont-overwrite, r=tmiasko

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.