diff options
| author | Konrad Borowski <konrad@borowski.pw> | 2019-12-05 00:01:03 +0100 |
|---|---|---|
| committer | Konrad Borowski <konrad@borowski.pw> | 2019-12-05 13:44:03 +0100 |
| commit | 1cf0db19d45ca9fb4a3a10999dc116c37e06adf8 (patch) | |
| tree | c7ed4b8448ae906090cb7c042af688a50754d599 /src/test/debuginfo/enum-thinlto.rs | |
| parent | d825e35ee8325146e6c175a4c61bcb645b347d5e (diff) | |
| download | rust-1cf0db19d45ca9fb4a3a10999dc116c37e06adf8.tar.gz rust-1cf0db19d45ca9fb4a3a10999dc116c37e06adf8.zip | |
Use deref target in Pin trait implementations
Using deref target instead of pointer itself avoids providing access to `&Rc<T>` for malicious implementations, which would allow calling `Rc::get_mut`. This is a breaking change necessary due to unsoundness, however the impact of it should be minimal. This only fixes the issue with malicious `PartialEq` implementations, other `Pin` soundness issues are still here. See <https://internals.rust-lang.org/t/unsoundness-in-pin/11311/73> for more details.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
