about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits/codegen.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-10-23 12:51:06 -0700
committerEsteban Küber <esteban@kuber.com.ar>2020-10-23 12:51:06 -0700
commitf71e9ed7f1b88f303519dcd7c2cc69117ff95094 (patch)
treee486557aeb2ed52041b9a0c80ae36fe477166f19 /compiler/rustc_trait_selection/src/traits/codegen.rs
parentb334eef162ba9c10faa97c9d5c5d249f25afc7df (diff)
downloadrust-f71e9ed7f1b88f303519dcd7c2cc69117ff95094.tar.gz
rust-f71e9ed7f1b88f303519dcd7c2cc69117ff95094.zip
review comments
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/codegen.rs')
-rw-r--r--compiler/rustc_trait_selection/src/traits/codegen.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/codegen.rs b/compiler/rustc_trait_selection/src/traits/codegen.rs
index 05e6c4804ff..3cb6ec86261 100644
--- a/compiler/rustc_trait_selection/src/traits/codegen.rs
+++ b/compiler/rustc_trait_selection/src/traits/codegen.rs
@@ -121,7 +121,10 @@ where
     // contains unbound type parameters. It could be a slight
     // optimization to stop iterating early.
     if let Err(errors) = fulfill_cx.select_all_or_error(infcx) {
-        bug!("Encountered errors `{:?}` resolving bounds after type-checking", errors);
+        infcx.tcx.sess.delay_span_bug(
+            rustc_span::DUMMY_SP,
+            &format!("Encountered errors `{:?}` resolving bounds after type-checking", errors),
+        );
     }
 
     let result = infcx.resolve_vars_if_possible(result);