You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Urgau
added
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Dec 19, 2024
…er-errors
Also lint on option of function pointer comparisons
This PR is the first part of rust-lang#134536, ie. the linting on `Option<{fn ptr}>` in the `unpredictable_function_pointer_comparisons` lint, which isn't part of the lang nomination that the second part is going trough, and so should be able to be approved independently.
Related to rust-lang#134527
r? `@compiler-errors`
Rollup merge of rust-lang#134586 - Urgau:fn-ptr-lint-option, r=compiler-errors
Also lint on option of function pointer comparisons
This PR is the first part of rust-lang#134536, ie. the linting on `Option<{fn ptr}>` in the `unpredictable_function_pointer_comparisons` lint, which isn't part of the lang nomination that the second part is going trough, and so should be able to be approved independently.
Related to rust-lang#134527
r? `@compiler-errors`
In C FFI it's very common to use
Option<fn()>
for callbacks, but the lint #118833 doesn't fire whenOption
s of function pointers are compared:This pattern is used in: https://github.com/ImageOptim/mozjpeg-rust/blob/cff5aad77c726c11f460baefc348c7279d0ee647/src/readsrc.rs#L136
The text was updated successfully, but these errors were encountered: