mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-05 02:50:32 +00:00
83 lines
2.5 KiB
Text
83 lines
2.5 KiB
Text
error: comparing trait object pointers compares a non-unique vtable address
|
|
--> $DIR/vtable_address_comparisons.rs:12:13
|
|
|
|
|
LL | let _ = a == b;
|
|
| ^^^^^^
|
|
|
|
|
= note: `-D clippy::vtable-address-comparisons` implied by `-D warnings`
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
|
--> $DIR/vtable_address_comparisons.rs:13:13
|
|
|
|
|
LL | let _ = a != b;
|
|
| ^^^^^^
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
|
--> $DIR/vtable_address_comparisons.rs:14:13
|
|
|
|
|
LL | let _ = a < b;
|
|
| ^^^^^
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
|
--> $DIR/vtable_address_comparisons.rs:15:13
|
|
|
|
|
LL | let _ = a <= b;
|
|
| ^^^^^^
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
|
--> $DIR/vtable_address_comparisons.rs:16:13
|
|
|
|
|
LL | let _ = a > b;
|
|
| ^^^^^
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
|
--> $DIR/vtable_address_comparisons.rs:17:13
|
|
|
|
|
LL | let _ = a >= b;
|
|
| ^^^^^^
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
|
--> $DIR/vtable_address_comparisons.rs:18:5
|
|
|
|
|
LL | ptr::eq(a, b);
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
|
--> $DIR/vtable_address_comparisons.rs:22:5
|
|
|
|
|
LL | ptr::eq(a, b);
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
|
--> $DIR/vtable_address_comparisons.rs:25:5
|
|
|
|
|
LL | Rc::ptr_eq(&a, &a);
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
|
--> $DIR/vtable_address_comparisons.rs:28:5
|
|
|
|
|
LL | Arc::ptr_eq(&a, &a);
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
error: aborting due to 10 previous errors
|
|
|