-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorcompiler:optimizerOptimization passes (mostly in base/compiler/ssair/)Optimization passes (mostly in base/compiler/ssair/)
Description
I just have a very strange bug that cannot be reproduced locally and replacing === nothing with == nothing (as below) fixes this bug.
diff --git a/examples/primes.jl b/examples/primes.jl
index 7dac9d2f..0f194e7f 100644
--- a/examples/primes.jl
+++ b/examples/primes.jl
@@ -11,7 +11,7 @@ using Transducers
function sieve(xf, x)
@info "sieve(xf, x=$x)"
- if (@show mapfoldl(xf, right, (x,), init=nothing)) === nothing
+ if (@show mapfoldl(xf, right, (x,), init=nothing)) == nothing
@info "$x is NOT prime"
nothing, xf
elseSee: https://travis-ci.com/tkf/Transducers.jl/builds/119090143 (Ref JuliaFolds/Transducers.jl#17)
Maybe it's relevant to #32135?
StefanKarpinski
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorcompiler:optimizerOptimization passes (mostly in base/compiler/ssair/)Optimization passes (mostly in base/compiler/ssair/)