We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15a4138 commit 24ace16Copy full SHA for 24ace16
src/librustc/middle/ty.rs
@@ -4702,7 +4702,7 @@ pub fn ty_sort_string<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> String {
4702
}
4703
ty_tup(ref tys) if tys.is_empty() => ::util::ppaux::ty_to_string(cx, ty),
4704
4705
- ty_enum(id, _) => format!("enum {}", item_path_str(cx, id)),
+ ty_enum(id, _) => format!("enum `{}`", item_path_str(cx, id)),
4706
ty_uniq(_) => "box".to_string(),
4707
ty_vec(_, Some(n)) => format!("array of {} elements", n),
4708
ty_vec(_, None) => "slice".to_string(),
@@ -4714,7 +4714,7 @@ pub fn ty_sort_string<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> String {
4714
format!("trait {}", item_path_str(cx, inner.principal_def_id()))
4715
4716
ty_struct(id, _) => {
4717
- format!("struct {}", item_path_str(cx, id))
+ format!("struct `{}`", item_path_str(cx, id))
4718
4719
ty_unboxed_closure(..) => "closure".to_string(),
4720
ty_tup(_) => "tuple".to_string(),
0 commit comments