@@ -173,9 +173,6 @@ pub struct Session {
173
173
/// Tracks fuel info if `-zfuel=crate=n` is specified.
174
174
optimization_fuel : Lock < OptimizationFuel > ,
175
175
176
- // The next two are public because the driver needs to read them.
177
- /// If `-zprint-fuel=crate`, `Some(crate)`.
178
- pub print_fuel_crate : Option < String > ,
179
176
/// Always set to zero and incremented so that we can print fuel expended by a crate.
180
177
pub print_fuel : AtomicU64 ,
181
178
@@ -900,7 +897,7 @@ impl Session {
900
897
}
901
898
}
902
899
}
903
- if let Some ( ref c) = self . print_fuel_crate {
900
+ if let Some ( ref c) = self . opts . debugging_opts . print_fuel {
904
901
if c == crate_name {
905
902
assert_eq ! ( self . threads( ) , 1 ) ;
906
903
self . print_fuel . fetch_add ( 1 , SeqCst ) ;
@@ -1262,7 +1259,6 @@ pub fn build_session(
1262
1259
remaining : sopts. debugging_opts . fuel . as_ref ( ) . map_or ( 0 , |i| i. 1 ) ,
1263
1260
out_of_fuel : false ,
1264
1261
} ) ;
1265
- let print_fuel_crate = sopts. debugging_opts . print_fuel . clone ( ) ;
1266
1262
let print_fuel = AtomicU64 :: new ( 0 ) ;
1267
1263
1268
1264
let cgu_reuse_tracker = if sopts. debugging_opts . query_dep_graph {
@@ -1311,7 +1307,6 @@ pub fn build_session(
1311
1307
} ,
1312
1308
code_stats : Default :: default ( ) ,
1313
1309
optimization_fuel,
1314
- print_fuel_crate,
1315
1310
print_fuel,
1316
1311
jobserver : jobserver:: client ( ) ,
1317
1312
driver_lint_caps,
0 commit comments