Rollup merge of #114363 - RalfJung:interpret-not-miri, r=jackh726
avoid 'miri' when refering to the shared interpreter This is basically the rustc source code version of https://github.com/rust-lang/rustc-dev-guide/pull/1471.
This commit is contained in:
commit
01fdb9d148
6 changed files with 13 additions and 12 deletions
|
@ -155,7 +155,7 @@ impl<'tcx> InterpErrorInfo<'tcx> {
|
|||
}
|
||||
|
||||
fn print_backtrace(backtrace: &Backtrace) {
|
||||
eprintln!("\n\nAn error occurred in miri:\n{backtrace}");
|
||||
eprintln!("\n\nAn error occurred in the MIR interpreter:\n{backtrace}");
|
||||
}
|
||||
|
||||
impl From<ErrorGuaranteed> for InterpErrorInfo<'_> {
|
||||
|
|
|
@ -609,7 +609,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
|||
/// Panics in case the `AllocId` is dangling. Since that is impossible for `AllocId`s in
|
||||
/// constants (as all constants must pass interning and validation that check for dangling
|
||||
/// ids), this function is frequently used throughout rustc, but should not be used within
|
||||
/// the miri engine.
|
||||
/// the interpreter.
|
||||
pub fn global_alloc(self, id: AllocId) -> GlobalAlloc<'tcx> {
|
||||
match self.try_get_global_alloc(id) {
|
||||
Some(alloc) => alloc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue