Skip to content

Commit

Permalink
Silence dead code warning for the assertion statics
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Sep 11, 2018
1 parent f3417c5 commit 79f2cc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc/ty/context.rs
Expand Up @@ -830,8 +830,10 @@ impl<'tcx> CommonTypes<'tcx> {
fn new(interners: &CtxtInterners<'tcx>) -> CommonTypes<'tcx> {
// Ensure our type representation does not grow
#[cfg(all(not(stage0), target_pointer_width = "64"))]
#[allow(dead_code)]
static ASSERT_TY_KIND: () = [()][!(::std::mem::size_of::<ty::TyKind>() <= 24) as usize];
#[cfg(all(not(stage0), target_pointer_width = "64"))]
#[allow(dead_code)]
static ASSERT_TYS: () = [()][!(::std::mem::size_of::<ty::TyS>() <= 32) as usize];

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

0 comments on commit 79f2cc0

Please sign in to comment.