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 @@ -835,10 +835,10 @@ impl Session {
835
835
/// We want to know if we're allowed to do an optimization for crate foo from -z fuel=foo=n.
836
836
/// This expends fuel if applicable, and records fuel if applicable.
837
837
pub fn consider_optimizing < T : Fn ( ) -> String > ( & self , crate_name : & str , msg : T ) -> bool {
838
- assert ! ( self . query_threads( ) == 1 ) ;
839
838
let mut ret = true ;
840
839
match self . optimization_fuel_crate {
841
840
Some ( ref c) if c == crate_name => {
841
+ assert ! ( self . query_threads( ) == 1 ) ;
842
842
let fuel = self . optimization_fuel_limit . get ( ) ;
843
843
ret = fuel != 0 ;
844
844
if fuel == 0 && !self . out_of_fuel . get ( ) {
@@ -852,6 +852,7 @@ impl Session {
852
852
}
853
853
match self . print_fuel_crate {
854
854
Some ( ref c) if c == crate_name => {
855
+ assert ! ( self . query_threads( ) == 1 ) ;
855
856
self . print_fuel . set ( self . print_fuel . get ( ) + 1 ) ;
856
857
}
857
858
_ => { }
You can’t perform that action at this time.
0 commit comments