interpret: make typing_env field private
This commit is contained in:
parent
70e814bd9e
commit
d04088fa36
7 changed files with 23 additions and 21 deletions
|
@ -100,7 +100,7 @@ use rustc_middle::bug;
|
|||
use rustc_middle::mir::interpret::GlobalAlloc;
|
||||
use rustc_middle::mir::visit::*;
|
||||
use rustc_middle::mir::*;
|
||||
use rustc_middle::ty::layout::LayoutOf;
|
||||
use rustc_middle::ty::layout::{HasTypingEnv, LayoutOf};
|
||||
use rustc_middle::ty::{self, Ty, TyCtxt};
|
||||
use rustc_span::DUMMY_SP;
|
||||
use rustc_span::def_id::DefId;
|
||||
|
@ -294,7 +294,7 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
|
|||
}
|
||||
|
||||
fn typing_env(&self) -> ty::TypingEnv<'tcx> {
|
||||
self.ecx.typing_env
|
||||
self.ecx.typing_env()
|
||||
}
|
||||
|
||||
#[instrument(level = "trace", skip(self), ret)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue