File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -845,10 +845,10 @@ impl Session {
845
845
/// We want to know if we're allowed to do an optimization for crate foo from -z fuel=foo=n.
846
846
/// This expends fuel if applicable, and records fuel if applicable.
847
847
pub fn consider_optimizing < T : Fn ( ) -> String > ( & self , crate_name : & str , msg : T ) -> bool {
848
- assert ! ( self . query_threads( ) == 1 ) ;
849
848
let mut ret = true ;
850
849
match self . optimization_fuel_crate {
851
850
Some ( ref c) if c == crate_name => {
851
+ assert ! ( self . query_threads( ) == 1 ) ;
852
852
let fuel = self . optimization_fuel_limit . get ( ) ;
853
853
ret = fuel != 0 ;
854
854
if fuel == 0 && !self . out_of_fuel . get ( ) {
@@ -862,6 +862,7 @@ impl Session {
862
862
}
863
863
match self . print_fuel_crate {
864
864
Some ( ref c) if c == crate_name => {
865
+ assert ! ( self . query_threads( ) == 1 ) ;
865
866
self . print_fuel . set ( self . print_fuel . get ( ) + 1 ) ;
866
867
}
867
868
_ => { }
You can’t perform that action at this time.
0 commit comments