Skip to content

Commit f3417c5

Browse files
committed
Properly access std::mem::size_of
1 parent 5f42a0f commit f3417c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/ty/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,9 +830,9 @@ impl<'tcx> CommonTypes<'tcx> {
830830
fn new(interners: &CtxtInterners<'tcx>) -> CommonTypes<'tcx> {
831831
// Ensure our type representation does not grow
832832
#[cfg(all(not(stage0), target_pointer_width = "64"))]
833-
static ASSERT_TY_KIND: () = [()][!(std::mem::size_of::<ty::TyKind>() <= 24) as usize];
833+
static ASSERT_TY_KIND: () = [()][!(::std::mem::size_of::<ty::TyKind>() <= 24) as usize];
834834
#[cfg(all(not(stage0), target_pointer_width = "64"))]
835-
static ASSERT_TYS: () = [()][!(std::mem::size_of::<ty::TyS>() <= 32) as usize];
835+
static ASSERT_TYS: () = [()][!(::std::mem::size_of::<ty::TyS>() <= 32) as usize];
836836

837837
let mk = |sty| CtxtInterners::intern_ty(interners, interners, sty);
838838
let mk_region = |r| {

0 commit comments

Comments
 (0)