@@ -45,14 +45,6 @@ pub struct FnCtxt<'a, 'tcx> {
4545 /// eventually).
4646 pub ( super ) param_env : ty:: ParamEnv < ' tcx > ,
4747
48- /// Number of errors that had been reported when we started
49- /// checking this function. On exit, if we find that *more* errors
50- /// have been reported, we will skip regionck and other work that
51- /// expects the types within the function to be consistent.
52- // FIXME(matthewjasper) This should not exist, and it's not correct
53- // if type checking is run in parallel.
54- err_count_on_creation : usize ,
55-
5648 /// If `Some`, this stores coercion information for returned
5749 /// expressions. If `None`, this is in a context where return is
5850 /// inappropriate, such as a const expression.
@@ -126,7 +118,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
126118 FnCtxt {
127119 body_id,
128120 param_env,
129- err_count_on_creation : inh. tcx . dcx ( ) . err_count ( ) ,
130121 ret_coercion : None ,
131122 ret_coercion_span : Cell :: new ( None ) ,
132123 coroutine_types : None ,
@@ -195,10 +186,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
195186 } ) ,
196187 }
197188 }
198-
199- pub fn errors_reported_since_creation ( & self ) -> bool {
200- self . dcx ( ) . err_count ( ) > self . err_count_on_creation
201- }
202189}
203190
204191impl < ' a , ' tcx > Deref for FnCtxt < ' a , ' tcx > {
0 commit comments