Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 79f2cc0

Browse files
committedSep 11, 2018
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

Lines changed: 2 additions & 0 deletions
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)
Please sign in to comment.