]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/coherence/builtin.rs
Rollup merge of #101165 - ldm0:drain_to_iter, r=cjgillot
[rust.git] / compiler / rustc_typeck / src / coherence / builtin.rs
index 2467a81638f75bfa0828c61473d9cfde368154a3..d08c0d4dbb72a6b5d12db254d92945dbca97d6bb 100644 (file)
@@ -359,7 +359,7 @@ pub fn coerce_unsized_info<'tcx>(tcx: TyCtxt<'tcx>, impl_did: DefId) -> CoerceUn
     let coerce_unsized_trait = tcx.require_lang_item(LangItem::CoerceUnsized, Some(span));
 
     let unsize_trait = tcx.lang_items().require(LangItem::Unsize).unwrap_or_else(|err| {
-        tcx.sess.fatal(&format!("`CoerceUnsized` implementation {}", err));
+        tcx.sess.fatal(&format!("`CoerceUnsized` implementation {}", err.to_string()));
     });
 
     let source = tcx.type_of(impl_did);