Slightly modify hint messages.
This commit is contained in:
parent
d49f278263
commit
bebd622198
2 changed files with 4 additions and 4 deletions
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue