This commit is contained in:
Tatsuyuki Ishi 2019-02-04 18:04:33 +09:00 committed by ishitatsuyuki
parent 8ae730a442
commit 526a398c77

View file

@ -765,7 +765,9 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
}
}
EvalResult::Unmarked => {
span_bug!(span, "encountered unmarked API: {:?}", def_id);
// The API could be uncallable for other reasons, for example when a private module
// was referenced.
self.sess.delay_span_bug(span, &format!("encountered unmarked API: {:?}", def_id));
}
}
}