Skip to content

Commit 79f2cc0

Browse files
committed
Silence dead code warning for the assertion statics
1 parent f3417c5 commit 79f2cc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc/ty/context.rs

+2
Original file line numberDiff line numberDiff line change
@@ -830,8 +830,10 @@ 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+
#[allow(dead_code)]
833834
static ASSERT_TY_KIND: () = [()][!(::std::mem::size_of::<ty::TyKind>() <= 24) as usize];
834835
#[cfg(all(not(stage0), target_pointer_width = "64"))]
836+
#[allow(dead_code)]
835837
static ASSERT_TYS: () = [()][!(::std::mem::size_of::<ty::TyS>() <= 32) as usize];
836838

837839
let mk = |sty| CtxtInterners::intern_ty(interners, interners, sty);

0 commit comments

Comments
 (0)