@@ -8,7 +8,7 @@ use rustc_errors::ErrorGuaranteed;
88pub use suggestions:: * ;
99
1010use crate :: coercion:: DynamicCoerceMany ;
11- use crate :: { Diverges , EnclosingBreakables , Inherited , UnsafetyState } ;
11+ use crate :: { Diverges , EnclosingBreakables , Inherited } ;
1212use rustc_hir as hir;
1313use rustc_hir:: def_id:: DefId ;
1414use rustc_hir_analysis:: astconv:: AstConv ;
@@ -74,8 +74,6 @@ pub struct FnCtxt<'a, 'tcx> {
7474
7575 pub ( super ) resume_yield_tys : Option < ( Ty < ' tcx > , Ty < ' tcx > ) > ,
7676
77- pub ( super ) ps : Cell < UnsafetyState > ,
78-
7977 /// Whether the last checked node generates a divergence (e.g.,
8078 /// `return` will set this to `Always`). In general, when entering
8179 /// an expression or other node in the tree, the initial value
@@ -129,7 +127,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
129127 ret_coercion : None ,
130128 ret_coercion_span : Cell :: new ( None ) ,
131129 resume_yield_tys : None ,
132- ps : Cell :: new ( UnsafetyState :: function ( hir:: Unsafety :: Normal , hir:: CRATE_HIR_ID ) ) ,
133130 diverges : Cell :: new ( Diverges :: Maybe ) ,
134131 enclosing_breakables : RefCell :: new ( EnclosingBreakables {
135132 stack : Vec :: new ( ) ,
0 commit comments