From 24ace1665a38f575d8bf478fbfadef29ed9f17a9 Mon Sep 17 00:00:00 2001 From: mdinger Date: Tue, 6 Jan 2015 21:27:21 -0500 Subject: [PATCH] Backtick nits --- src/librustc/middle/ty.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/middle/ty.rs b/src/librustc/middle/ty.rs index 0089fd08c51..cf30969ebef 100644 --- a/src/librustc/middle/ty.rs +++ b/src/librustc/middle/ty.rs @@ -4702,7 +4702,7 @@ pub fn ty_sort_string<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> String { } ty_tup(ref tys) if tys.is_empty() => ::util::ppaux::ty_to_string(cx, ty), - ty_enum(id, _) => format!("enum {}", item_path_str(cx, id)), + ty_enum(id, _) => format!("enum `{}`", item_path_str(cx, id)), ty_uniq(_) => "box".to_string(), ty_vec(_, Some(n)) => format!("array of {} elements", n), ty_vec(_, None) => "slice".to_string(), @@ -4714,7 +4714,7 @@ pub fn ty_sort_string<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> String { format!("trait {}", item_path_str(cx, inner.principal_def_id())) } ty_struct(id, _) => { - format!("struct {}", item_path_str(cx, id)) + format!("struct `{}`", item_path_str(cx, id)) } ty_unboxed_closure(..) => "closure".to_string(), ty_tup(_) => "tuple".to_string(),