Allow unpredictable_function_pointer_comparisons lint in more places
This commit is contained in:
parent
fafc0f249f
commit
14b3e63012
4 changed files with 6 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ impl RawWaker {
|
|||
/// synchronization. This is because [`LocalWaker`] is not thread safe itself, so it cannot
|
||||
/// be sent across threads.
|
||||
#[stable(feature = "futures_api", since = "1.36.0")]
|
||||
#[allow(unpredictable_function_pointer_comparisons)]
|
||||
#[derive(PartialEq, Copy, Clone, Debug)]
|
||||
pub struct RawWakerVTable {
|
||||
/// This function will be called when the [`RawWaker`] gets cloned, e.g. when
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ struct Array<T> {
|
|||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
||||
#[allow(unpredictable_function_pointer_comparisons)]
|
||||
struct Fn<A, B, C, D, E, F, G, H, I, J, K, L> {
|
||||
f00: fn(),
|
||||
f01: fn(A),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
//@ run-pass
|
||||
//@ aux-build:mir_external_refs.rs
|
||||
|
||||
#![allow(unpredictable_function_pointer_comparisons)]
|
||||
|
||||
extern crate mir_external_refs as ext;
|
||||
|
||||
struct S(#[allow(dead_code)] u8);
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
// trying to get assert failure messages that at least identify which case
|
||||
// failed.
|
||||
|
||||
#![allow(unpredictable_function_pointer_comparisons)]
|
||||
|
||||
enum E<T> { Thing(isize, T), #[allow(dead_code)] Nothing((), ((), ()), [i8; 0]) }
|
||||
impl<T> E<T> {
|
||||
fn is_none(&self) -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue