We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b44ad9 commit 85978d0Copy full SHA for 85978d0
src/liballoc/rc.rs
@@ -2304,6 +2304,7 @@ fn data_offset_sized<T>() -> isize {
2304
data_offset_align(align_of::<T>())
2305
}
2306
2307
+#[inline]
2308
fn data_offset_align(align: usize) -> isize {
2309
let layout = Layout::new::<RcBox<()>>();
2310
(layout.size() + layout.padding_needed_for(align)) as isize
src/liballoc/sync.rs
@@ -2423,6 +2423,7 @@ fn data_offset_sized<T>() -> isize {
2423
2424
2425
2426
2427
2428
let layout = Layout::new::<ArcInner<()>>();
2429
0 commit comments