Fix #58101
This commit is contained in:
parent
8ae730a442
commit
526a398c77
1 changed files with 3 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue