syntax: use distinct FloatTy from rustc_target.
We also sever syntax's dependency on rustc_target as a result. This should slightly improve pipe-lining. Moreover, some cleanup is done in related code.
This commit is contained in:
parent
bffc3d8073
commit
55f76cdb2f
19 changed files with 123 additions and 158 deletions
|
|
@ -37,9 +37,9 @@ pub fn push_debuginfo_type_name<'tcx>(
|
|||
ty::Char => output.push_str("char"),
|
||||
ty::Str => output.push_str("str"),
|
||||
ty::Never => output.push_str("!"),
|
||||
ty::Int(int_ty) => output.push_str(int_ty.ty_to_string()),
|
||||
ty::Uint(uint_ty) => output.push_str(uint_ty.ty_to_string()),
|
||||
ty::Float(float_ty) => output.push_str(float_ty.ty_to_string()),
|
||||
ty::Int(int_ty) => output.push_str(int_ty.name_str()),
|
||||
ty::Uint(uint_ty) => output.push_str(uint_ty.name_str()),
|
||||
ty::Float(float_ty) => output.push_str(float_ty.name_str()),
|
||||
ty::Foreign(def_id) => push_item_name(tcx, def_id, qualified, output),
|
||||
ty::Adt(def, substs) => {
|
||||
push_item_name(tcx, def.did, qualified, output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue