about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMasaki Hara <ackie.h.gmai@gmail.com>2017-07-25 12:17:51 +0900
committerNiko Matsakis <niko@alum.mit.edu>2017-09-05 12:19:35 -0400
commitbebd6221986764d4e98488a5a7b9730edacbc07a (patch)
treeccd741b04a42fa36ab61bde1f04c2ca3d50715ea
parentd49f27826388ae62467d2111f9e82a828c3e2ea8 (diff)
downloadrust-bebd6221986764d4e98488a5a7b9730edacbc07a.tar.gz
rust-bebd6221986764d4e98488a5a7b9730edacbc07a.zip
Slightly modify hint messages.
-rw-r--r--src/librustc/traits/specialize/mod.rs4
-rw-r--r--src/librustc_typeck/coherence/inherent_impls_overlap.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc/traits/specialize/mod.rs b/src/librustc/traits/specialize/mod.rs
index 50518d36e61..1c79190fd93 100644
--- a/src/librustc/traits/specialize/mod.rs
+++ b/src/librustc/traits/specialize/mod.rs
@@ -342,11 +342,11 @@ pub(super) fn specialization_graph_provider<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx
                 for cause in &overlap.intercrate_ambiguity_causes {
                     match cause {
                         &IntercrateAmbiguityCause::DownstreamCrate(def_id) => {
-                            err.note(&format!("downstream crates may implement {}",
+                            err.note(&format!("downstream crates may implement `{}`",
                                               tcx.item_path_str(def_id)));
                         }
                         &IntercrateAmbiguityCause::UpstreamCrateUpdate(def_id) => {
-                            err.note(&format!("upstream crates may add new impl for {} \
+                            err.note(&format!("upstream crates may add new impl for `{}` \
                                               in future versions",
                                               tcx.item_path_str(def_id)));
                         }
diff --git a/src/librustc_typeck/coherence/inherent_impls_overlap.rs b/src/librustc_typeck/coherence/inherent_impls_overlap.rs
index 07de5423304..e733b5328d3 100644
--- a/src/librustc_typeck/coherence/inherent_impls_overlap.rs
+++ b/src/librustc_typeck/coherence/inherent_impls_overlap.rs
@@ -66,11 +66,11 @@ impl<'a, 'tcx> InherentOverlapChecker<'a, 'tcx> {
                     for cause in &overlap.intercrate_ambiguity_causes {
                         match cause {
                             &IntercrateAmbiguityCause::DownstreamCrate(def_id) => {
-                                err.note(&format!("downstream crates may implement {}",
+                                err.note(&format!("downstream crates may implement `{}`",
                                                   self.tcx.item_path_str(def_id)));
                             }
                             &IntercrateAmbiguityCause::UpstreamCrateUpdate(def_id) => {
-                                err.note(&format!("upstream crates may add new impl for {} \
+                                err.note(&format!("upstream crates may add new impl for `{}` \
                                                   in future versions",
                                                   self.tcx.item_path_str(def_id)));
                             }