Files
rust/library/alloc/src
Matthias Krüger 448d2a8417 Rollup merge of #112628 - gootorov:box_alloc_partialeq, r=joshtriplett
Allow comparing `Box`es with different allocators

Currently, comparing `Box`es over different allocators is not allowed:
```Rust
error[E0308]: mismatched types
  --> library/alloc/tests/boxed.rs:22:20
   |
22 |     assert_eq!(b1, b2);
   |                    ^^ expected `Box<{integer}, ConstAllocator>`, found `Box<{integer}, AnotherAllocator>`
   |
   = note: expected struct `Box<{integer}, ConstAllocator>`
              found struct `Box<{integer}, AnotherAllocator>`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `alloc` (test "collectionstests") due to previous error
```
This PR lifts this limitation
2023-06-27 22:10:13 +02:00
..
2023-04-21 16:29:27 -07:00
2023-06-19 12:24:06 -07:00
2023-05-07 00:12:29 +03:00
2023-05-07 00:12:29 +03:00
2023-04-12 19:27:18 +02:00
2023-04-26 02:10:22 -04:00
2023-03-03 17:47:48 +00:00