[breaking-change] don't glob export ast::FloatTy variants
This commit is contained in:
parent
80bf9ae18a
commit
ccf48bcd40
14 changed files with 37 additions and 38 deletions
|
|
@ -1314,8 +1314,8 @@ fn cast_const<'tcx>(tcx: &ty::ctxt<'tcx>, val: ConstVal, ty: Ty) -> CastResult {
|
|||
ty::TyUint(ast::TyU32) => convert_val!(u32, Uint, u64),
|
||||
ty::TyUint(ast::TyU64) => convert_val!(u64, Uint, u64),
|
||||
|
||||
ty::TyFloat(ast::TyF32) => convert_val!(f32, Float, f64),
|
||||
ty::TyFloat(ast::TyF64) => convert_val!(f64, Float, f64),
|
||||
ty::TyFloat(ast::FloatTy::F32) => convert_val!(f32, Float, f64),
|
||||
ty::TyFloat(ast::FloatTy::F64) => convert_val!(f64, Float, f64),
|
||||
_ => Err(ErrKind::CannotCast),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -202,8 +202,8 @@ impl<'tcx> CommonTypes<'tcx> {
|
|||
u16: mk(TyUint(ast::TyU16)),
|
||||
u32: mk(TyUint(ast::TyU32)),
|
||||
u64: mk(TyUint(ast::TyU64)),
|
||||
f32: mk(TyFloat(ast::TyF32)),
|
||||
f64: mk(TyFloat(ast::TyF64)),
|
||||
f32: mk(TyFloat(ast::FloatTy::F32)),
|
||||
f64: mk(TyFloat(ast::FloatTy::F64)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -860,8 +860,8 @@ impl<'tcx> ctxt<'tcx> {
|
|||
|
||||
pub fn mk_mach_float(&self, tm: ast::FloatTy) -> Ty<'tcx> {
|
||||
match tm {
|
||||
ast::TyF32 => self.types.f32,
|
||||
ast::TyF64 => self.types.f64,
|
||||
ast::FloatTy::F32 => self.types.f32,
|
||||
ast::FloatTy::F64 => self.types.f64,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue