@@ -8,7 +8,7 @@ use rustc_errors::ErrorGuaranteed;
8
8
pub use suggestions:: * ;
9
9
10
10
use crate :: coercion:: DynamicCoerceMany ;
11
- use crate :: { Diverges , EnclosingBreakables , Inherited , UnsafetyState } ;
11
+ use crate :: { Diverges , EnclosingBreakables , Inherited } ;
12
12
use rustc_hir as hir;
13
13
use rustc_hir:: def_id:: DefId ;
14
14
use rustc_hir_analysis:: astconv:: AstConv ;
@@ -74,8 +74,6 @@ pub struct FnCtxt<'a, 'tcx> {
74
74
75
75
pub ( super ) resume_yield_tys : Option < ( Ty < ' tcx > , Ty < ' tcx > ) > ,
76
76
77
- pub ( super ) ps : Cell < UnsafetyState > ,
78
-
79
77
/// Whether the last checked node generates a divergence (e.g.,
80
78
/// `return` will set this to `Always`). In general, when entering
81
79
/// an expression or other node in the tree, the initial value
@@ -129,7 +127,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
129
127
ret_coercion : None ,
130
128
ret_coercion_span : Cell :: new ( None ) ,
131
129
resume_yield_tys : None ,
132
- ps : Cell :: new ( UnsafetyState :: function ( hir:: Unsafety :: Normal , hir:: CRATE_HIR_ID ) ) ,
133
130
diverges : Cell :: new ( Diverges :: Maybe ) ,
134
131
enclosing_breakables : RefCell :: new ( EnclosingBreakables {
135
132
stack : Vec :: new ( ) ,
0 commit comments