about summary refs log tree commit diff
path: root/src/liballoc/sync.rs
diff options
context:
space:
mode:
authorTim Diekmann <tim.diekmann@3dvision.de>2020-03-03 00:08:24 +0100
committerTim Diekmann <tim.diekmann@3dvision.de>2020-03-03 00:08:24 +0100
commitd8e3557dbae23283f81d7bc45200413dd93ced4a (patch)
treea1131d53f204443a6ab0cdf12f51b52b0f48a361 /src/liballoc/sync.rs
parentcd5441faf4e56d136d7c05d5eb55b4a41396edaf (diff)
downloadrust-d8e3557dbae23283f81d7bc45200413dd93ced4a.tar.gz
rust-d8e3557dbae23283f81d7bc45200413dd93ced4a.zip
Remove `usable_size` APIs
Diffstat (limited to 'src/liballoc/sync.rs')
-rw-r--r--src/liballoc/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs
index fd285242d5b..fced5e680ea 100644
--- a/src/liballoc/sync.rs
+++ b/src/liballoc/sync.rs
@@ -784,7 +784,7 @@ impl<T: ?Sized> Arc<T> {
         // reference (see #54908).
         let layout = Layout::new::<ArcInner<()>>().extend(value_layout).unwrap().0.pad_to_align();
 
-        let mem = Global.alloc(layout).unwrap_or_else(|_| handle_alloc_error(layout));
+        let (mem, _) = Global.alloc(layout).unwrap_or_else(|_| handle_alloc_error(layout));
 
         // Initialize the ArcInner
         let inner = mem_to_arcinner(mem.as_ptr());