about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorCAD97 <cad97@cad97.com>2021-01-06 16:34:13 -0500
committerCAD97 <cad97@cad97.com>2021-01-06 19:30:22 -0500
commit6bc772cdc0a9021a6286ebd550c2f6221179f21d (patch)
treeb03462ef0b4fa2fd53a5e209603e326b04024a57 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent8fec6c7bb9f2a549b6f424b3dd1c2c257286bc6d (diff)
downloadrust-6bc772cdc0a9021a6286ebd550c2f6221179f21d.tar.gz
rust-6bc772cdc0a9021a6286ebd550c2f6221179f21d.zip
Re-stabilize Weak::as_ptr &friends for unsized T
As per T-lang consensus, this uses a branch to handle the dangling case.
The discussed optimization of only doing the branch in the T: ?Sized
case is left for a followup patch, as doing so is not trivial
(as it requires specialization for correctness, not just optimization).
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions