2020-03-11 19:00:00 -05:00
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2022-01-13 06:18:19 -06:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:14:13
|
2020-03-11 19:00:00 -05:00
|
|
|
|
|
|
|
|
LL | let _ = a == b;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::vtable-address-comparisons` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::vtable_address_comparisons)]`
|
2020-03-11 19:00:00 -05:00
|
|
|
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:16:13
|
2020-03-11 19:00:00 -05:00
|
|
|
|
|
|
|
|
LL | let _ = a != b;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:18:13
|
2020-03-11 19:00:00 -05:00
|
|
|
|
|
|
|
|
LL | let _ = a < b;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:20:13
|
2020-03-11 19:00:00 -05:00
|
|
|
|
|
|
|
|
LL | let _ = a <= b;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:22:13
|
2020-03-11 19:00:00 -05:00
|
|
|
|
|
|
|
|
LL | let _ = a > b;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:24:13
|
2020-03-11 19:00:00 -05:00
|
|
|
|
|
|
|
|
LL | let _ = a >= b;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:26:5
|
2020-03-11 19:00:00 -05:00
|
|
|
|
|
|
|
|
LL | ptr::eq(a, b);
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:31:5
|
2020-03-11 19:00:00 -05:00
|
|
|
|
|
|
|
|
LL | ptr::eq(a, b);
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
|
2023-01-04 07:16:55 -06:00
|
|
|
error: aborting due to 8 previous errors
|
2020-03-11 19:00:00 -05:00
|
|
|
|