projects
/
web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fde9f5b
)
spacing
author
Ralf Jung
<post@ralfj.de>
Sat, 12 Aug 2017 01:20:01 +0000
(18:20 -0700)
committer
Ralf Jung
<post@ralfj.de>
Sat, 12 Aug 2017 01:20:01 +0000
(18:20 -0700)
ralf/_posts/2017-08-11-types-as-contracts-evaluation.md
patch
|
blob
|
history
diff --git
a/ralf/_posts/2017-08-11-types-as-contracts-evaluation.md
b/ralf/_posts/2017-08-11-types-as-contracts-evaluation.md
index b6fe54a618145975a7c237c27da96017d192b390..226d48f9464fe2649280154921e571d69128587b 100644
(file)
--- a/
ralf/_posts/2017-08-11-types-as-contracts-evaluation.md
+++ b/
ralf/_posts/2017-08-11-types-as-contracts-evaluation.md
@@
-78,7
+78,7
@@
However, it turns out that `mem::uninitialized` is causing other problems as wel
This is the most interesting case I found. The `Arc` destructor ends up calling `Arc::drop_slow`, which is implemented as follows:
{% highlight rust %}
-
unsafe fn drop_slow(&mut self) {
+unsafe fn drop_slow(&mut self) {
let ptr = self.ptr.as_ptr();
// Destroy the data at this time, even though we may not free the box