@@ -45,14 +45,6 @@ pub struct FnCtxt<'a, 'tcx> {
45
45
/// eventually).
46
46
pub ( super ) param_env : ty:: ParamEnv < ' tcx > ,
47
47
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
-
56
48
/// If `Some`, this stores coercion information for returned
57
49
/// expressions. If `None`, this is in a context where return is
58
50
/// inappropriate, such as a const expression.
@@ -126,7 +118,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
126
118
FnCtxt {
127
119
body_id,
128
120
param_env,
129
- err_count_on_creation : inh. tcx . dcx ( ) . err_count ( ) ,
130
121
ret_coercion : None ,
131
122
ret_coercion_span : Cell :: new ( None ) ,
132
123
coroutine_types : None ,
@@ -195,10 +186,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
195
186
} ) ,
196
187
}
197
188
}
198
-
199
- pub fn errors_reported_since_creation ( & self ) -> bool {
200
- self . dcx ( ) . err_count ( ) > self . err_count_on_creation
201
- }
202
189
}
203
190
204
191
impl < ' a , ' tcx > Deref for FnCtxt < ' a , ' tcx > {
0 commit comments