about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-10-30 19:06:43 +0000
committerbors <bors@rust-lang.org>2015-10-30 19:06:43 +0000
commitcc8d398e28b6b1918ef85479c2d040dfd0fe582d (patch)
treeb509827a80ff356e37cf103d1af204eca809edfe /src/libstd/thread
parent2aa9f7d3916dcff36a5b8b4978981c056ceb8398 (diff)
parente351595c61614c41be08f7508422d5f8a02d1a0e (diff)
downloadrust-cc8d398e28b6b1918ef85479c2d040dfd0fe582d.tar.gz
rust-cc8d398e28b6b1918ef85479c2d040dfd0fe582d.zip
Auto merge of #29475 - apasel422:drop-in, r=alexcrichton
This is a rebase of #27204.

r? @alexcrichton 
CC @Gankro 
Diffstat (limited to 'src/libstd/thread')
-rw-r--r--src/libstd/thread/local.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs
index c204f79614a..119429cc584 100644
--- a/src/libstd/thread/local.rs
+++ b/src/libstd/thread/local.rs
@@ -411,7 +411,7 @@ mod imp {
         if cfg!(target_os = "macos") {
             ptr::read((*ptr).inner.get());
         } else {
-            intrinsics::drop_in_place((*ptr).inner.get());
+            ptr::drop_in_place((*ptr).inner.get());
         }
     }
 }