about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-11-16 20:18:13 +0000
committerMichael Goulet <michael@errs.io>2024-12-10 16:52:20 +0000
commita7fa4cbcb498b80b126a954b5944f19a11e28dec (patch)
tree462d7ced92d08e35a6cae86caeb804c8dbefb635 /compiler/rustc_monomorphize
parent3b057796264e637b31c28809322028a32d22ae6f (diff)
downloadrust-a7fa4cbcb498b80b126a954b5944f19a11e28dec.tar.gz
rust-a7fa4cbcb498b80b126a954b5944f19a11e28dec.zip
Implement projection and shim for AFIDT
Diffstat (limited to 'compiler/rustc_monomorphize')
-rw-r--r--compiler/rustc_monomorphize/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/lib.rs b/compiler/rustc_monomorphize/src/lib.rs
index caae54cd559..714b64b3a23 100644
--- a/compiler/rustc_monomorphize/src/lib.rs
+++ b/compiler/rustc_monomorphize/src/lib.rs
@@ -42,7 +42,10 @@ fn custom_coerce_unsize_info<'tcx>(
             ..
         })) => Ok(tcx.coerce_unsized_info(impl_def_id)?.custom_kind.unwrap()),
         impl_source => {
-            bug!("invalid `CoerceUnsized` impl_source: {:?}", impl_source);
+            bug!(
+                "invalid `CoerceUnsized` from {source_ty} to {target_ty}: impl_source: {:?}",
+                impl_source
+            );
         }
     }
 }