fallout from removing the errors_will_be_reported flag
This commit is contained in:
parent
2c3f0123e9
commit
20e088c4e2
16 changed files with 47 additions and 42 deletions
|
|
@ -42,7 +42,7 @@ pub fn compare_impl_method<'tcx>(tcx: &ty::ctxt<'tcx>,
|
|||
debug!("compare_impl_method: impl_trait_ref (liberated) = {:?}",
|
||||
impl_trait_ref);
|
||||
|
||||
let mut infcx = infer::new_infer_ctxt(tcx, &tcx.tables, None, true);
|
||||
let mut infcx = infer::new_infer_ctxt(tcx, &tcx.tables, None);
|
||||
let mut fulfillment_cx = infcx.fulfillment_cx.borrow_mut();
|
||||
|
||||
let trait_to_impl_substs = &impl_trait_ref.substs;
|
||||
|
|
@ -416,7 +416,7 @@ pub fn compare_const_impl<'tcx>(tcx: &ty::ctxt<'tcx>,
|
|||
debug!("compare_const_impl(impl_trait_ref={:?})",
|
||||
impl_trait_ref);
|
||||
|
||||
let infcx = infer::new_infer_ctxt(tcx, &tcx.tables, None, true);
|
||||
let infcx = infer::new_infer_ctxt(tcx, &tcx.tables, None);
|
||||
let mut fulfillment_cx = infcx.fulfillment_cx.borrow_mut();
|
||||
|
||||
// The below is for the most part highly similar to the procedure
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ fn ensure_drop_params_and_item_params_correspond<'tcx>(
|
|||
// check that the impl type can be made to match the trait type.
|
||||
|
||||
let impl_param_env = ty::ParameterEnvironment::for_item(tcx, self_type_node_id);
|
||||
let infcx = infer::new_infer_ctxt(tcx, &tcx.tables, Some(impl_param_env), true);
|
||||
let infcx = infer::new_infer_ctxt(tcx, &tcx.tables, Some(impl_param_env));
|
||||
|
||||
let named_type = tcx.lookup_item_type(self_type_did).ty;
|
||||
let named_type = named_type.subst(tcx, &infcx.parameter_environment.free_substs);
|
||||
|
|
|
|||
|
|
@ -305,7 +305,7 @@ impl<'a, 'tcx> Inherited<'a, 'tcx> {
|
|||
-> Inherited<'a, 'tcx> {
|
||||
|
||||
Inherited {
|
||||
infcx: infer::new_infer_ctxt(tcx, tables, Some(param_env), true),
|
||||
infcx: infer::new_infer_ctxt(tcx, tables, Some(param_env)),
|
||||
locals: RefCell::new(NodeMap()),
|
||||
tables: tables,
|
||||
deferred_call_resolutions: RefCell::new(DefIdMap()),
|
||||
|
|
|
|||
|
|
@ -384,7 +384,7 @@ impl<'a, 'tcx> CoherenceChecker<'a, 'tcx> {
|
|||
debug!("check_implementations_of_coerce_unsized: {:?} -> {:?} (free)",
|
||||
source, target);
|
||||
|
||||
let infcx = new_infer_ctxt(tcx, &tcx.tables, Some(param_env), true);
|
||||
let infcx = new_infer_ctxt(tcx, &tcx.tables, Some(param_env));
|
||||
|
||||
let check_mutbl = |mt_a: ty::TypeAndMut<'tcx>, mt_b: ty::TypeAndMut<'tcx>,
|
||||
mk_ptr: &Fn(Ty<'tcx>) -> Ty<'tcx>| {
|
||||
|
|
@ -528,7 +528,7 @@ fn enforce_trait_manually_implementable(tcx: &ty::ctxt, sp: Span, trait_def_id:
|
|||
|
||||
pub fn check_coherence(crate_context: &CrateCtxt) {
|
||||
let _task = crate_context.tcx.dep_graph.in_task(DepNode::Coherence);
|
||||
let infcx = new_infer_ctxt(crate_context.tcx, &crate_context.tcx.tables, None, true);
|
||||
let infcx = new_infer_ctxt(crate_context.tcx, &crate_context.tcx.tables, None);
|
||||
CoherenceChecker {
|
||||
crate_context: crate_context,
|
||||
inference_context: infcx,
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ impl<'cx, 'tcx> OverlapChecker<'cx, 'tcx> {
|
|||
impl1_def_id,
|
||||
impl2_def_id);
|
||||
|
||||
let infcx = infer::new_infer_ctxt(self.tcx, &self.tcx.tables, None, false);
|
||||
let infcx = infer::new_infer_ctxt(self.tcx, &self.tcx.tables, None);
|
||||
if let Some(trait_ref) = traits::overlapping_impls(&infcx, impl1_def_id, impl2_def_id) {
|
||||
self.report_overlap_error(impl1_def_id, impl2_def_id, trait_ref);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ fn require_same_types<'a, 'tcx, M>(tcx: &ty::ctxt<'tcx>,
|
|||
{
|
||||
let result = match maybe_infcx {
|
||||
None => {
|
||||
let infcx = infer::new_infer_ctxt(tcx, &tcx.tables, None, false);
|
||||
let infcx = infer::new_infer_ctxt(tcx, &tcx.tables, None);
|
||||
infer::mk_eqty(&infcx, t1_is_expected, TypeOrigin::Misc(span), t1, t2)
|
||||
}
|
||||
Some(infcx) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue