Bless run-make-fulldeps test.
This commit is contained in:
parent
ddf8ebef32
commit
6e4971d96f
@ -20,13 +20,13 @@
|
||||
|
||||
use rustc_borrowck::consumers::BodyWithBorrowckFacts;
|
||||
use rustc_driver::Compilation;
|
||||
use rustc_hir::def_id::LocalDefId;
|
||||
use rustc_hir::def::DefKind;
|
||||
use rustc_hir::def_id::LocalDefId;
|
||||
use rustc_interface::interface::Compiler;
|
||||
use rustc_interface::{Config, Queries};
|
||||
use rustc_middle::ty::query::query_values::mir_borrowck;
|
||||
use rustc_middle::ty::query::{ExternProviders, Providers};
|
||||
use rustc_middle::ty::{self, TyCtxt};
|
||||
use rustc_middle::ty::TyCtxt;
|
||||
use rustc_session::Session;
|
||||
use std::cell::RefCell;
|
||||
use std::collections::HashMap;
|
||||
@ -127,10 +127,7 @@ fn override_queries(_session: &Session, local: &mut Providers, _external: &mut E
|
||||
}
|
||||
|
||||
fn mir_borrowck<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId) -> mir_borrowck<'tcx> {
|
||||
let body_with_facts = rustc_borrowck::consumers::get_body_with_borrowck_facts(
|
||||
tcx,
|
||||
ty::WithOptConstParam::unknown(def_id),
|
||||
);
|
||||
let body_with_facts = rustc_borrowck::consumers::get_body_with_borrowck_facts(tcx, def_id);
|
||||
// SAFETY: The reader casts the 'static lifetime to 'tcx before using it.
|
||||
let body_with_facts: BodyWithBorrowckFacts<'static> =
|
||||
unsafe { std::mem::transmute(body_with_facts) };
|
||||
|
Loading…
Reference in New Issue
Block a user