-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix two missing_const_for_fn false positives #3844
Conversation
As reported in rust-lang#3841. Only fixes the part where it triggers on the `derive`.
@bors r+ |
📌 Commit 15cba2e has been approved by |
Fix two missing_const_for_fn false positives Fixes #3841 * Fixes false positive in external macros * Fixes false positive when implement trait methods
☀️ Test successful - checks-travis, status-appveyor |
…1995 Refactor: Extract `trait_ref_of_method` function This pattern was used in three places after rust-lang#3844, so I think it's worth moving it into `utils/mod.rs` and documenting it.
@phansch Any timeline for this fix to go live? Running |
@jhpratt It's currently included in Rusts beta channel and should hit stable with Rust 1.35 on May 23rd. (It's unlikely that it will be included in a possible 1.34.1 release as it's a disabled-by-default lint) |
It's not available on nightly beforehand? I guess that's where my confusion is at. |
Oh I misunderstood the Clippy version. It should be available in nightly after |
[stable] 1.34.1 point release The release date is April 25th. Included in this point release: * #59891: Fix the link to sort_by_cached_key * #59989: Fix links to Atomic* in RELEASES.md * rust-lang/rust-clippy#3805: Fix ICE https://github.com/rust-lang/rust-clippy/issue/3747 * rust-lang/rust-clippy#3821: do not trigger redundant_closure when there is a difference in borrow... * rust-lang/rust-clippy#3844: Fix two missing_const_for_fn false positives
[stable] 1.34.1 point release The release date is April 25th. Included in this point release: * #59891: Fix the link to sort_by_cached_key * #59989: Fix links to Atomic* in RELEASES.md * rust-lang/rust-clippy#3805: Fix ICE https://github.com/rust-lang/rust-clippy/issue/3747 * rust-lang/rust-clippy#3821: do not trigger redundant_closure when there is a difference in borrow... * rust-lang/rust-clippy#3844: Fix two missing_const_for_fn false positives
[stable] 1.34.1 point release The release date is April 25th. Included in this point release: * #59891: Fix the link to sort_by_cached_key * #59989: Fix links to Atomic* in RELEASES.md * rust-lang/rust-clippy#3805: Fix ICE https://github.com/rust-lang/rust-clippy/issue/3747 * rust-lang/rust-clippy#3821: do not trigger redundant_closure when there is a difference in borrow... * rust-lang/rust-clippy#3844: Fix two missing_const_for_fn false positives
Pkgsrc changes: basically none. Build verified on NetBSD 8.0/i386. Upstream changes: Version 1.34.1 (2019-04-25) =========================== * [Fix false positives for the `redundant_closure` Clippy lint][clippy/3821] * [Fix false positives for the `missing_const_for_fn` Clippy lint][clippy/3844] * [Fix Clippy panic when checking some macros][clippy/3805] [clippy/3821]: rust-lang/rust-clippy#3821 [clippy/3844]: rust-lang/rust-clippy#3844 [clippy/3805]: rust-lang/rust-clippy#3805
Pkgsrc changes: basically none. Build verified on NetBSD 8.0/i386. Upstream changes: Version 1.34.1 (2019-04-25) =========================== * [Fix false positives for the `redundant_closure` Clippy lint][clippy/3821] * [Fix false positives for the `missing_const_for_fn` Clippy lint][clippy/3844] * [Fix Clippy panic when checking some macros][clippy/3805] [clippy/3821]: rust-lang/rust-clippy#3821 [clippy/3844]: rust-lang/rust-clippy#3844 [clippy/3805]: rust-lang/rust-clippy#3805
Fixes #3841