Skip to content

Commit

Permalink
Manually resolve the type definition
Browse files Browse the repository at this point in the history
This works around
<rust-lang/rust-analyzer#6714>
  • Loading branch information
DJMcNab committed Mar 5, 2021
1 parent af55ff4 commit 779fe88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use std::ops::FnOnce;
use std::path::PathBuf;
use std::sync::{Arc, Mutex};

use miri::Evaluator;
use rustc_driver::Compilation;
use rustc_hir::def_id::LOCAL_CRATE;
use rustc_interface::interface;
Expand All @@ -49,7 +50,7 @@ fn should_hide_stmt(stmt: &mir::Statement<'_>) -> bool {
}
}

type InterpCx<'tcx> = miri::MiriEvalContext<'tcx, 'tcx>;
type InterpCx<'tcx> = rustc_mir::interpret::InterpCx<'tcx, 'tcx, Evaluator<'tcx, 'tcx>>;

pub struct PrirodaContext<'a, 'tcx: 'a> {
ecx: InterpCx<'tcx>,
Expand Down

0 comments on commit 779fe88

Please sign in to comment.