Use short_ty_string
This commit is contained in:
parent
c6017badb4
commit
86b5965608
1 changed files with 3 additions and 1 deletions
|
@ -1872,7 +1872,9 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
|
||||||
StringPart::normal(" implemented for `"),
|
StringPart::normal(" implemented for `"),
|
||||||
]);
|
]);
|
||||||
if types_content.0 == types_content.1 {
|
if types_content.0 == types_content.1 {
|
||||||
msg.push(StringPart::normal(obligation_trait_ref.self_ty().to_string()));
|
let ty =
|
||||||
|
self.tcx.short_ty_string(obligation_trait_ref.self_ty(), &mut None);
|
||||||
|
msg.push(StringPart::normal(ty));
|
||||||
} else {
|
} else {
|
||||||
msg.extend(types.0.0);
|
msg.extend(types.0.0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue