mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-30 07:35:30 +00:00
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````