Skip to content

Commit bebd622

Browse files
qnighynikomatsakis
authored andcommitted
Slightly modify hint messages.
1 parent d49f278 commit bebd622

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/librustc/traits/specialize/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,11 @@ pub(super) fn specialization_graph_provider<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx
342342
for cause in &overlap.intercrate_ambiguity_causes {
343343
match cause {
344344
&IntercrateAmbiguityCause::DownstreamCrate(def_id) => {
345-
err.note(&format!("downstream crates may implement {}",
345+
err.note(&format!("downstream crates may implement `{}`",
346346
tcx.item_path_str(def_id)));
347347
}
348348
&IntercrateAmbiguityCause::UpstreamCrateUpdate(def_id) => {
349-
err.note(&format!("upstream crates may add new impl for {} \
349+
err.note(&format!("upstream crates may add new impl for `{}` \
350350
in future versions",
351351
tcx.item_path_str(def_id)));
352352
}

src/librustc_typeck/coherence/inherent_impls_overlap.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ impl<'a, 'tcx> InherentOverlapChecker<'a, 'tcx> {
6666
for cause in &overlap.intercrate_ambiguity_causes {
6767
match cause {
6868
&IntercrateAmbiguityCause::DownstreamCrate(def_id) => {
69-
err.note(&format!("downstream crates may implement {}",
69+
err.note(&format!("downstream crates may implement `{}`",
7070
self.tcx.item_path_str(def_id)));
7171
}
7272
&IntercrateAmbiguityCause::UpstreamCrateUpdate(def_id) => {
73-
err.note(&format!("upstream crates may add new impl for {} \
73+
err.note(&format!("upstream crates may add new impl for `{}` \
7474
in future versions",
7575
self.tcx.item_path_str(def_id)));
7676
}

0 commit comments

Comments
 (0)