Skip to content

Commit 5d3ff3c

Browse files
committed
Address more PR feedback
1 parent 9dc6454 commit 5d3ff3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/intrinsics.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2791,7 +2791,8 @@ pub unsafe fn vtable_align(_ptr: *const ()) -> usize {
27912791
#[rustc_intrinsic_must_be_overridden]
27922792
#[cfg(not(bootstrap))]
27932793
pub const fn aggregate_raw_ptr<P: AggregateRawPtr<D, Metadata = M>, D, M>(_data: D, _meta: M) -> P {
2794-
// No fallback because `libcore` doesn't want to know the layout
2794+
// To implement a fallback we'd have to assume the layout of the pointer,
2795+
// but the whole point of this intrinsic is that we shouldn't do that.
27952796
unreachable!()
27962797
}
27972798

0 commit comments

Comments
 (0)