about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBastian Kauschke <bastian_kauschke@hotmail.de>2020-04-07 00:19:36 +0200
committerBastian Kauschke <bastian_kauschke@hotmail.de>2020-04-08 23:34:09 +0200
commitfca7d165be9df4e6febaa849482a696a5d2e12af (patch)
tree55a5667ccbcb816bcd1e23e83911f4b39625c38d /src
parent03d66a06e452ee9ef6392d138cdf347dc92aa312 (diff)
downloadrust-fca7d165be9df4e6febaa849482a696a5d2e12af.tar.gz
rust-fca7d165be9df4e6febaa849482a696a5d2e12af.zip
do_normalize_predicates: add delay_span_bug
Diffstat (limited to 'src')
-rw-r--r--src/librustc_trait_selection/traits/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_trait_selection/traits/mod.rs b/src/librustc_trait_selection/traits/mod.rs
index b8028a19c8f..193ca36e0fd 100644
--- a/src/librustc_trait_selection/traits/mod.rs
+++ b/src/librustc_trait_selection/traits/mod.rs
@@ -260,7 +260,7 @@ fn do_normalize_predicates<'tcx>(
             }
         };
         if predicates.needs_infer() {
-            // FIXME: shouldn't we, you know, actually report an error here? or an ICE?
+            tcx.sess.delay_span_bug(span, "encountered inference variables after `fully_resolve`");
             Err(ErrorReported)
         } else {
             Ok(predicates)