Skip to content

Commit 836b3bb

Browse files
committed
fix lockcell
1 parent ab84fd9 commit 836b3bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/session/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ impl Session {
900900
/// This expends fuel if applicable, and records fuel if applicable.
901901
#[inline(always)]
902902
pub fn consider_optimizing<T: Fn() -> String>(&self, crate_name: &str, msg: T) -> bool {
903-
if likely!(self.optimization_fuel_crate.is_none()) {
903+
if likely!(self.optimization_fuel_crate.is_none() && self.print_fuel_crate.is_none()) {
904904
true
905905
} else {
906906
self.consider_optimizing_cold(crate_name, msg)

0 commit comments

Comments
 (0)