diff options
| author | CAD97 <cad97@cad97.com> | 2021-01-06 16:34:13 -0500 |
|---|---|---|
| committer | CAD97 <cad97@cad97.com> | 2021-01-06 19:30:22 -0500 |
| commit | 6bc772cdc0a9021a6286ebd550c2f6221179f21d (patch) | |
| tree | b03462ef0b4fa2fd53a5e209603e326b04024a57 /src/test/codegen/src-hash-algorithm | |
| parent | 8fec6c7bb9f2a549b6f424b3dd1c2c257286bc6d (diff) | |
| download | rust-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')
0 files changed, 0 insertions, 0 deletions
