1
Fork 0

Remove outdated references to librustc_middle.

This commit is contained in:
Alona Enraght-Moony 2024-01-05 02:52:37 +00:00
parent f688dd684f
commit 16e117cf96
7 changed files with 9 additions and 10 deletions

View file

@ -50,9 +50,7 @@ impl MachineStopType for ConstEvalErrKind {
}
}
// The errors become `MachineStop` with plain strings when being raised.
// `ConstEvalErr` (in `librustc_middle/mir/interpret/error.rs`) knows to
// handle these.
/// The errors become [`InterpError::MachineStop`] when being raised.
impl<'tcx> Into<InterpErrorInfo<'tcx>> for ConstEvalErrKind {
fn into(self) -> InterpErrorInfo<'tcx> {
err_machine_stop!(self).into()