diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-08-19 12:26:38 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-19 12:26:38 +0530 |
| commit | 078844283c8943b34b5b4ed90f6032c042dc4416 (patch) | |
| tree | c31a6cc068545e1a3f8cd514bd67228906bd0296 /src/test/codegen/src-hash-algorithm | |
| parent | 6c943bad02626dddc5e5135b23c77429b6e4a063 (diff) | |
| parent | fd934c99bcf1a930ef44a27129ef24b323d3c54f (diff) | |
| download | rust-078844283c8943b34b5b4ed90f6032c042dc4416.tar.gz rust-078844283c8943b34b5b4ed90f6032c042dc4416.zip | |
Rollup merge of #99576 - compiler-errors:foreign-fundamental-drop-is-bad, r=TaKO8Ki
Do not allow `Drop` impl on foreign fundamental types `Drop` should not be implemented on `Pin<T>` even if `T` is local. This does not trigger regular orphan rules is because `Pin` is `#[fundamental]`... but we don't allow specialized `Drop` impls anyways, so these rules are not sufficient to prevent this impl on stable. Let's just choose even stricter rules, since we shouldn't be implementing `Drop` on a foreign ADT ever. Fixes #99575
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
