We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fn_queries
delay_span_bug
1 parent 61d86fa commit 11bfc60Copy full SHA for 11bfc60
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 {
50
None => {
51
if let Some(stab) = tcx.lookup_stability(def_id) {
52
if stab.level.is_stable() {
53
- tcx.sess.span_err(
+ tcx.sess.delay_span_bug(
54
tcx.def_span(def_id),
55
"stable const functions must have either `rustc_const_stable` or \
56
`rustc_const_unstable` attribute",
0 commit comments