Remove Ty prefix from Ty{Foreign|Param}
This commit is contained in:
parent
6f637da50c
commit
04fa5d3adb
68 changed files with 160 additions and 160 deletions
|
|
@ -585,7 +585,7 @@ pub fn type_metadata(
|
|||
trait_pointer_metadata(cx, t, None, unique_type_id),
|
||||
false)
|
||||
}
|
||||
ty::TyForeign(..) => {
|
||||
ty::Foreign(..) => {
|
||||
MetadataCreationResult::new(
|
||||
foreign_type_metadata(cx, t, unique_type_id),
|
||||
false)
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ pub fn push_debuginfo_type_name<'a, 'tcx>(cx: &CodegenCx<'a, 'tcx>,
|
|||
ty::TyInt(int_ty) => output.push_str(int_ty.ty_to_string()),
|
||||
ty::TyUint(uint_ty) => output.push_str(uint_ty.ty_to_string()),
|
||||
ty::TyFloat(float_ty) => output.push_str(float_ty.ty_to_string()),
|
||||
ty::TyForeign(def_id) => push_item_name(cx, def_id, qualified, output),
|
||||
ty::Foreign(def_id) => push_item_name(cx, def_id, qualified, output),
|
||||
ty::Adt(def, substs) => {
|
||||
push_item_name(cx, def.did, qualified, output);
|
||||
push_type_params(cx, substs, output);
|
||||
|
|
@ -176,7 +176,7 @@ pub fn push_debuginfo_type_name<'a, 'tcx>(cx: &CodegenCx<'a, 'tcx>,
|
|||
ty::Projection(..) |
|
||||
ty::Anon(..) |
|
||||
ty::GeneratorWitness(..) |
|
||||
ty::TyParam(_) => {
|
||||
ty::Param(_) => {
|
||||
bug!("debuginfo: Trying to create type name for \
|
||||
unexpected type: {:?}", t);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue