}
}
-/// Details of premature program termination.
-pub enum TerminationInfo {
- Exit(i64),
- Abort(Option<String>),
-}
-
/// Returns a freshly created `InterpCx`, along with an `MPlaceTy` representing
/// the location where the return value of the `start` lang item will be
/// written to.
/// Returns `Some(return_code)` if program executed completed.
/// Returns `None` if an evaluation error occured.
pub fn eval_main<'tcx>(tcx: TyCtxt<'tcx>, main_id: DefId, config: MiriConfig) -> Option<i64> {
- // FIXME: We always ignore leaks on some platforms where we do not
+ // FIXME: We always ignore leaks on some OSs where we do not
// correctly implement TLS destructors.
let target_os = tcx.sess.target.target.target_os.as_str();
let ignore_leaks = config.ignore_leaks || target_os == "windows" || target_os == "macos";
}
Some(return_code)
}
- Err(e) => report_diagnostic(&ecx, e),
+ Err(e) => report_error(&ecx, e),
}
}