use a newtype for the variant discriminant instead of u64

This commit is contained in:
Oliver 'ker' Schneider 2016-01-16 16:03:09 +01:00
parent 8e12365570
commit 6fef118bc0
19 changed files with 173 additions and 101 deletions

View file

@ -4178,7 +4178,7 @@ pub fn check_enum_variants<'a,'tcx>(ccx: &CrateCtxt<'a,'tcx>,
sp: Span,
vs: &'tcx [hir::Variant],
id: ast::NodeId) {
// disr_in_range should be removed once we have forced type hints for consts
fn disr_in_range(ccx: &CrateCtxt,
ty: attr::IntType,
disr: ty::Disr) -> bool {