Unnamed repository; edit this file 'description' to name the repository.
Rollup merge of #154624 - theemathas:deref-pure-dyn-incompat, r=jackh726
Make `DerefPure` dyn-incompatible Fixes https://github.com/rust-lang/rust/issues/154619. If `DerefPure` were dyn-compatible, a trait object of a subtrait of `DerefPure` could be created by unsize-coercing an existing type that implements `DerefPure`. But then the trait object could have its own non-pure impl of `Deref`/`DerefMut`, which is unsound, since the trait object would implement `DerefPure`. Thus, we make `DerefPure` dyn-incompatible. r? types
Jonathan Brouwer 5 weeks ago
parent 17374c0 · parent 9fcc59a · commit c833dcc
0 files changed, 0 insertions, 0 deletions