message: Move compiler input and ouput paths into session
diff: @@ -56,12 +56,12 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
  fn after_analysis<'tcx>(
  &mut self,
  - compiler: &rustc_interface::interface::Compiler,
  + _: &rustc_interface::interface::Compiler,
  queries: &'tcx rustc_interface::Queries<'tcx>,
  ) -> Compilation {
  - compiler.session().abort_if_errors();
  -
  queries.global_ctxt().unwrap().enter(|tcx| {
  + tcx.sess.abort_if_errors();
  +
  init_late_loggers(tcx);
  if !tcx.sess.crate_types().contains(&CrateType::Executable) {
  tcx.sess.fatal("miri only makes sense on bin crates");
  @@ -75,7 +75,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
  let mut config = self.miri_config.clone();
  // Add filename to `miri` arguments.
  - config.args.insert(0, compiler.io().input.filestem().to_string());
  + config.args.insert(0, tcx.sess.io.input.filestem().to_string());
  // Adjust working directory for interpretation.
  if let Some(cwd) = env::var_os("MIRI_CWD") {
  @@ -87,10 +87,9 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
  i32::try_from(return_code).expect("Return value was too large!"),
  );
  }
  + tcx.sess.abort_if_errors();
  });
  - compiler.session().abort_if_errors();
  -
  Compilation::Stop
  }
  }
  