mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
216be29176
Fix double warnings on `#[no_mangle]` Fixes 2 out of 3 cases in https://github.com/rust-lang/rust/issues/147417 The fix on closures removes the old error and marks closures as an error target. The fix on consts adds `AllowSilent` to to ignore a target, and uses the old error because that one has a nice suggestion. r? ````@jdonszelmann````