2020-03-12 00:00:00 +00:00
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2022-01-13 12:18:19 +00:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:14:13
|
2020-03-12 00:00:00 +00:00
|
|
|
|
|
|
|
|
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
|
2022-01-13 12:18:19 +00:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:15:13
|
2020-03-12 00:00:00 +00:00
|
|
|
|
|
|
|
|
LL | let _ = a != b;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2022-01-13 12:18:19 +00:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:16:13
|
2020-03-12 00:00:00 +00:00
|
|
|
|
|
|
|
|
LL | let _ = a < b;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2022-01-13 12:18:19 +00:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:17:13
|
2020-03-12 00:00:00 +00:00
|
|
|
|
|
|
|
|
LL | let _ = a <= b;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2022-01-13 12:18:19 +00:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:18:13
|
2020-03-12 00:00:00 +00:00
|
|
|
|
|
|
|
|
LL | let _ = a > b;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2022-01-13 12:18:19 +00:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:19:13
|
2020-03-12 00:00:00 +00:00
|
|
|
|
|
|
|
|
LL | let _ = a >= b;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
|
|
|
|
error: comparing trait object pointers compares a non-unique vtable address
|
2022-01-13 12:18:19 +00:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:20:5
|
2020-03-12 00:00:00 +00: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
|
2022-01-13 12:18:19 +00:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:24:5
|
2020-03-12 00:00:00 +00: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
|
2022-01-13 12:18:19 +00:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:27:5
|
2020-03-12 00:00:00 +00:00
|
|
|
|
|
|
|
|
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
|
2022-01-13 12:18:19 +00:00
|
|
|
--> $DIR/vtable_address_comparisons.rs:30:5
|
2020-03-12 00:00:00 +00:00
|
|
|
|
|
|
|
|
LL | Arc::ptr_eq(&a, &a);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider extracting and comparing data pointers only
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
|
|
|
|