@@ -66,11 +66,11 @@ pub struct FnCtxt<'a, 'tcx> {
66
66
pub ( super ) in_tail_expr : bool ,
67
67
68
68
/// First span of a return site that we find. Used in error messages.
69
- pub ( super ) ret_coercion_span : RefCell < Option < Span > > ,
69
+ pub ( super ) ret_coercion_span : Cell < Option < Span > > ,
70
70
71
71
pub ( super ) resume_yield_tys : Option < ( Ty < ' tcx > , Ty < ' tcx > ) > ,
72
72
73
- pub ( super ) ps : RefCell < UnsafetyState > ,
73
+ pub ( super ) ps : Cell < UnsafetyState > ,
74
74
75
75
/// Whether the last checked node generates a divergence (e.g.,
76
76
/// `return` will set this to `Always`). In general, when entering
@@ -127,9 +127,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
127
127
ret_coercion_impl_trait : None ,
128
128
ret_type_span : None ,
129
129
in_tail_expr : false ,
130
- ret_coercion_span : RefCell :: new ( None ) ,
130
+ ret_coercion_span : Cell :: new ( None ) ,
131
131
resume_yield_tys : None ,
132
- ps : RefCell :: new ( UnsafetyState :: function ( hir:: Unsafety :: Normal , hir:: CRATE_HIR_ID ) ) ,
132
+ ps : Cell :: new ( UnsafetyState :: function ( hir:: Unsafety :: Normal , hir:: CRATE_HIR_ID ) ) ,
133
133
diverges : Cell :: new ( Diverges :: Maybe ) ,
134
134
has_errors : Cell :: new ( false ) ,
135
135
enclosing_breakables : RefCell :: new ( EnclosingBreakables {
0 commit comments