removed confusing message from diagnostics
This commit is contained in:
parent
cddda032d5
commit
97e5cabb91
1 changed files with 0 additions and 4 deletions
|
|
@ -1287,10 +1287,6 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
|
|||
self.tcx.def_span(def.did()),
|
||||
format!("`{self_ty}` needs to implement `From<{ty}>`"),
|
||||
);
|
||||
err.span_note(
|
||||
self.tcx.def_span(found.did()),
|
||||
format!("alternatively, `{ty}` needs to implement `Into<{self_ty}>`"),
|
||||
);
|
||||
}
|
||||
(ty::Adt(def, _), None) if def.did().is_local() => {
|
||||
let trait_path = self.tcx.short_string(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue