about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-08-19 12:26:38 +0530
committerGitHub <noreply@github.com>2022-08-19 12:26:38 +0530
commit078844283c8943b34b5b4ed90f6032c042dc4416 (patch)
treec31a6cc068545e1a3f8cd514bd67228906bd0296 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent6c943bad02626dddc5e5135b23c77429b6e4a063 (diff)
parentfd934c99bcf1a930ef44a27129ef24b323d3c54f (diff)
downloadrust-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/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions