@@ -169,9 +169,6 @@ pub struct Session {
169169 /// Data about code being compiled, gathered during compilation.
170170 pub code_stats : CodeStats ,
171171
172- /// If `-zfuel=crate=n` is specified, `Some(crate)`.
173- optimization_fuel_crate : Option < String > ,
174-
175172 /// Tracks fuel info if `-zfuel=crate=n` is specified.
176173 optimization_fuel : Lock < OptimizationFuel > ,
177174
@@ -896,7 +893,7 @@ impl Session {
896893 /// This expends fuel if applicable, and records fuel if applicable.
897894 pub fn consider_optimizing < T : Fn ( ) -> String > ( & self , crate_name : & str , msg : T ) -> bool {
898895 let mut ret = true ;
899- if let Some ( ref c) = self . optimization_fuel_crate {
896+ if let Some ( ( ref c, _ ) ) = self . opts . debugging_opts . fuel {
900897 if c == crate_name {
901898 assert_eq ! ( self . threads( ) , 1 ) ;
902899 let mut fuel = self . optimization_fuel . lock ( ) ;
@@ -1274,7 +1271,6 @@ pub fn build_session(
12741271 let local_crate_source_file =
12751272 local_crate_source_file. map ( |path| file_path_mapping. map_prefix ( path) . 0 ) ;
12761273
1277- let optimization_fuel_crate = sopts. debugging_opts . fuel . as_ref ( ) . map ( |i| i. 0 . clone ( ) ) ;
12781274 let optimization_fuel = Lock :: new ( OptimizationFuel {
12791275 remaining : sopts. debugging_opts . fuel . as_ref ( ) . map_or ( 0 , |i| i. 1 ) ,
12801276 out_of_fuel : false ,
@@ -1326,7 +1322,6 @@ pub fn build_session(
13261322 normalize_projection_ty : AtomicUsize :: new ( 0 ) ,
13271323 } ,
13281324 code_stats : Default :: default ( ) ,
1329- optimization_fuel_crate,
13301325 optimization_fuel,
13311326 print_fuel,
13321327 jobserver : jobserver:: client ( ) ,
0 commit comments