Skip to content

Commit 24ace16

Browse files
committed
Backtick nits
1 parent 15a4138 commit 24ace16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/ty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4702,7 +4702,7 @@ pub fn ty_sort_string<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> String {
47024702
}
47034703
ty_tup(ref tys) if tys.is_empty() => ::util::ppaux::ty_to_string(cx, ty),
47044704

4705-
ty_enum(id, _) => format!("enum {}", item_path_str(cx, id)),
4705+
ty_enum(id, _) => format!("enum `{}`", item_path_str(cx, id)),
47064706
ty_uniq(_) => "box".to_string(),
47074707
ty_vec(_, Some(n)) => format!("array of {} elements", n),
47084708
ty_vec(_, None) => "slice".to_string(),
@@ -4714,7 +4714,7 @@ pub fn ty_sort_string<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> String {
47144714
format!("trait {}", item_path_str(cx, inner.principal_def_id()))
47154715
}
47164716
ty_struct(id, _) => {
4717-
format!("struct {}", item_path_str(cx, id))
4717+
format!("struct `{}`", item_path_str(cx, id))
47184718
}
47194719
ty_unboxed_closure(..) => "closure".to_string(),
47204720
ty_tup(_) => "tuple".to_string(),

0 commit comments

Comments
 (0)