about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorChristopher Durham <cad97@cad97.com>2019-11-09 15:38:53 -0500
committerGitHub <noreply@github.com>2019-11-09 15:38:53 -0500
commit87b8ab3734c9dfebe9ff9037f15b7e54f36f9a56 (patch)
tree5aa702060b6414a5a21318a14b7388d3093580e5 /src/liballoc
parent183e61b66174e76520b38cf5153f8fb6f5cdce94 (diff)
downloadrust-87b8ab3734c9dfebe9ff9037f15b7e54f36f9a56.tar.gz
rust-87b8ab3734c9dfebe9ff9037f15b7e54f36f9a56.zip
Remove Layout::pad_to_unlign unwrap
Diffstat (limited to 'src/liballoc')
-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 4b10f089c29..edd32fe6d41 100644
--- a/src/liballoc/sync.rs
+++ b/src/liballoc/sync.rs
@@ -751,7 +751,7 @@ impl<T: ?Sized> Arc<T> {
         // reference (see #54908).
         let layout = Layout::new::<ArcInner<()>>()
             .extend(value_layout).unwrap().0
-            .pad_to_align().unwrap();
+            .pad_to_align();
 
         let mem = Global.alloc(layout)
             .unwrap_or_else(|_| handle_alloc_error(layout));