use a newtype for the variant discriminant instead of u64
This commit is contained in:
parent
8e12365570
commit
6fef118bc0
19 changed files with 173 additions and 101 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue