Update type_err_ctxt_ext.rs
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
This commit is contained in:
parent
991bf752f1
commit
a65d99d087
1 changed files with 2 additions and 2 deletions
|
@ -437,10 +437,10 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
|
||||||
format!(" in `{t}`"),
|
format!(" in `{t}`"),
|
||||||
format!("within `{t}`, "),
|
format!("within `{t}`, "),
|
||||||
s.map(|s| (format!("within this `{t}`"), s)),
|
s.map(|s| (format!("within this `{t}`"), s)),
|
||||||
file.and_then(|file| Some(format!(
|
file.map(|file| format!(
|
||||||
"the full trait has been written to '{}'",
|
"the full trait has been written to '{}'",
|
||||||
file.display(),
|
file.display(),
|
||||||
)))
|
))
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue