about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-06-27 22:10:13 +0200
committerGitHub <noreply@github.com>2023-06-27 22:10:13 +0200
commit448d2a84179a65d52ba84b87657c03dc8a4786b8 (patch)
treec965d4520ca13ac52d0e5aaca26f1a32045277db /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parent353dd71d73dcb5d8eff2af70caf1cc32f06006ae (diff)
parent001b081cc1bfd24657e2dccbd9c8289f9a9d67a5 (diff)
downloadrust-448d2a84179a65d52ba84b87657c03dc8a4786b8.tar.gz
rust-448d2a84179a65d52ba84b87657c03dc8a4786b8.zip
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions