Skip to content

Commit a066433

Browse files
committed
Simplify mini_core.
1 parent 4a3732b commit a066433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_cranelift/example/mini_core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,11 +717,11 @@ impl<T> Index<usize> for [T] {
717717
}
718718

719719
pub const fn size_of<T>() -> usize {
720-
const { intrinsics::size_of::<T>() }
720+
<T as SizedTypeProperties>::SIZE
721721
}
722722

723723
pub const fn align_of<T>() -> usize {
724-
const { intrinsics::align_of::<T>() }
724+
<T as SizedTypeProperties>::ALIGN
725725
}
726726

727727
trait SizedTypeProperties: Sized {

0 commit comments

Comments
 (0)