Update type_err_ctxt_ext.rs

Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
This commit is contained in:
Milo 2023-10-27 20:14:49 +01:00 committed by GitHub
parent 991bf752f1
commit a65d99d087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -437,10 +437,10 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
format!(" in `{t}`"),
format!("within `{t}`, "),
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 '{}'",
file.display(),
)))
))
)
})
.unwrap_or_default();