diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-25 14:08:44 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-25 14:31:32 -0700 |
| commit | 11bfc60a4b5fa111527a69e5f511cb69ae5325af (patch) | |
| tree | 34d84d062761d997df18c49d4d97265f4d53c0d2 | |
| parent | 61d86fa06ca4d7c93109fc857300abbd25a19a0a (diff) | |
| download | rust-11bfc60a4b5fa111527a69e5f511cb69ae5325af.tar.gz rust-11bfc60a4b5fa111527a69e5f511cb69ae5325af.zip | |
Change error in `fn_queries` to `delay_span_bug`
This should be caught by the new check in `rustc_passes`. At some point, this function will be removed entirely.
| -rw-r--r-- | compiler/rustc_mir/src/const_eval/fn_queries.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/const_eval/fn_queries.rs b/compiler/rustc_mir/src/const_eval/fn_queries.rs index 9ef63b3322d..1db1f6ceeda 100644 --- a/compiler/rustc_mir/src/const_eval/fn_queries.rs +++ b/compiler/rustc_mir/src/const_eval/fn_queries.rs @@ -50,7 +50,7 @@ pub fn is_min_const_fn(tcx: TyCtxt<'_>, def_id: DefId) -> bool { None => { if let Some(stab) = tcx.lookup_stability(def_id) { if stab.level.is_stable() { - tcx.sess.span_err( + tcx.sess.delay_span_bug( tcx.def_span(def_id), "stable const functions must have either `rustc_const_stable` or \ `rustc_const_unstable` attribute", |
