diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-04-07 00:19:36 +0200 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-04-08 23:34:09 +0200 |
| commit | fca7d165be9df4e6febaa849482a696a5d2e12af (patch) | |
| tree | 55a5667ccbcb816bcd1e23e83911f4b39625c38d /src | |
| parent | 03d66a06e452ee9ef6392d138cdf347dc92aa312 (diff) | |
| download | rust-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.rs | 2 |
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) |
