Auto merge of #1888 - hyd-dev:rustup, r=RalfJung

`rustc_mir` -> `rustc_const_eval`

This should fix the "[can't find crate for `rustc_mir`](https://github.com/rust-lang/rust/issues/88768)" build failure.
This commit is contained in:
bors 2021-09-09 18:38:56 +00:00
commit 0359331869
5 changed files with 12 additions and 9 deletions

View File

@ -1 +1 @@
1c858ba5bf7bd06c1a970efbf77053c8380b3151 c5cbf7852a7692c7c51df64c09a59e7838b55202

View File

@ -164,11 +164,14 @@ fn init_late_loggers(tcx: TyCtxt<'_>) {
// used for everything, we only apply it to the parts of rustc that are // used for everything, we only apply it to the parts of rustc that are
// CTFE-related. Otherwise, we use it verbatim for `RUSTC_LOG`. // CTFE-related. Otherwise, we use it verbatim for `RUSTC_LOG`.
// This way, if you set `MIRI_LOG=trace`, you get only the right parts of // This way, if you set `MIRI_LOG=trace`, you get only the right parts of
// rustc traced, but you can also do `MIRI_LOG=miri=trace,rustc_mir::interpret=debug`. // rustc traced, but you can also do `MIRI_LOG=miri=trace,rustc_const_eval::interpret=debug`.
if log::Level::from_str(&var).is_ok() { if log::Level::from_str(&var).is_ok() {
env::set_var( env::set_var(
"RUSTC_LOG", "RUSTC_LOG",
&format!("rustc_middle::mir::interpret={0},rustc_mir::interpret={0}", var), &format!(
"rustc_middle::mir::interpret={0},rustc_const_eval::interpret={0}",
var
),
); );
} else { } else {
env::set_var("RUSTC_LOG", &var); env::set_var("RUSTC_LOG", &var);

View File

@ -11,10 +11,10 @@
extern crate rustc_ast; extern crate rustc_ast;
#[macro_use] #[macro_use]
extern crate rustc_middle; extern crate rustc_middle;
extern crate rustc_const_eval;
extern crate rustc_data_structures; extern crate rustc_data_structures;
extern crate rustc_hir; extern crate rustc_hir;
extern crate rustc_index; extern crate rustc_index;
extern crate rustc_mir;
extern crate rustc_session; extern crate rustc_session;
extern crate rustc_span; extern crate rustc_span;
extern crate rustc_target; extern crate rustc_target;
@ -37,9 +37,9 @@
// Establish a "crate-wide prelude": we often import `crate::*`. // Establish a "crate-wide prelude": we often import `crate::*`.
// Make all those symbols available in the same place as our own. // Make all those symbols available in the same place as our own.
pub use rustc_mir::interpret::*; pub use rustc_const_eval::interpret::*;
// Resolve ambiguity. // Resolve ambiguity.
pub use rustc_mir::interpret::{self, AllocMap, PlaceTy}; pub use rustc_const_eval::interpret::{self, AllocMap, PlaceTy};
pub use crate::shims::dlsym::{Dlsym, EvalContextExt as _}; pub use crate::shims::dlsym::{Dlsym, EvalContextExt as _};
pub use crate::shims::env::{EnvVars, EvalContextExt as _}; pub use crate::shims::env::{EnvVars, EvalContextExt as _};

View File

@ -457,7 +457,7 @@ fn call_extra_fn(
#[inline(always)] #[inline(always)]
fn call_intrinsic( fn call_intrinsic(
ecx: &mut rustc_mir::interpret::InterpCx<'mir, 'tcx, Self>, ecx: &mut rustc_const_eval::interpret::InterpCx<'mir, 'tcx, Self>,
instance: ty::Instance<'tcx>, instance: ty::Instance<'tcx>,
args: &[OpTy<'tcx, Tag>], args: &[OpTy<'tcx, Tag>],
ret: Option<(&PlaceTy<'tcx, Tag>, mir::BasicBlock)>, ret: Option<(&PlaceTy<'tcx, Tag>, mir::BasicBlock)>,
@ -482,7 +482,7 @@ fn abort(_ecx: &mut InterpCx<'mir, 'tcx, Self>, msg: String) -> InterpResult<'tc
#[inline(always)] #[inline(always)]
fn binary_ptr_op( fn binary_ptr_op(
ecx: &rustc_mir::interpret::InterpCx<'mir, 'tcx, Self>, ecx: &rustc_const_eval::interpret::InterpCx<'mir, 'tcx, Self>,
bin_op: mir::BinOp, bin_op: mir::BinOp,
left: &ImmTy<'tcx, Tag>, left: &ImmTy<'tcx, Tag>,
right: &ImmTy<'tcx, Tag>, right: &ImmTy<'tcx, Tag>,

View File

@ -3,9 +3,9 @@
use std::ffi::{OsStr, OsString}; use std::ffi::{OsStr, OsString};
use std::io::ErrorKind; use std::io::ErrorKind;
use rustc_const_eval::interpret::Pointer;
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc_middle::ty::layout::LayoutOf; use rustc_middle::ty::layout::LayoutOf;
use rustc_mir::interpret::Pointer;
use rustc_target::abi::Size; use rustc_target::abi::Size;
use crate::*; use crate::*;