refactor ParamEnv::empty(Reveal) into two distinct methods
- `ParamEnv::empty()` -- does not reveal all, good for typeck - `ParamEnv::reveal_all()` -- does, good for trans - `param_env.with_reveal_all()` -- converts an existing parameter environment
This commit is contained in:
parent
1d377d10a1
commit
6d0f9319df
29 changed files with 77 additions and 72 deletions
|
|
@ -18,7 +18,7 @@ use rustc_lint;
|
|||
use rustc_resolve::MakeGlobMap;
|
||||
use rustc::middle::region;
|
||||
use rustc::ty::subst::Subst;
|
||||
use rustc::traits::{ObligationCause, Reveal};
|
||||
use rustc::traits::ObligationCause;
|
||||
use rustc::ty::{self, Ty, TyCtxt, TypeFoldable};
|
||||
use rustc::ty::maps::OnDiskCache;
|
||||
use rustc::infer::{self, InferOk, InferResult};
|
||||
|
|
@ -153,7 +153,7 @@ fn test_env<F>(source_string: &str,
|
|||
|tcx| {
|
||||
tcx.infer_ctxt().enter(|infcx| {
|
||||
let mut region_scope_tree = region::ScopeTree::default();
|
||||
let param_env = ty::ParamEnv::empty(Reveal::UserFacing);
|
||||
let param_env = ty::ParamEnv::empty();
|
||||
body(Env {
|
||||
infcx: &infcx,
|
||||
region_scope_tree: &mut region_scope_tree,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue