Skip to content

Commit 03861bb

Browse files
Revert "avoid capturing weak ref in Pass object"
This reverts commit 36b02d4.
1 parent 2dc3db9 commit 03861bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/core.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -2852,15 +2852,15 @@ mutable struct Obj; x; end
28522852
push!(wr, WeakRef(x))
28532853
nothing
28542854
end
2855-
@noinline test_wr(r, wr) = r[1] == wr[1].value
2855+
@noinline test_wr(r, wr) = @test r[1] == wr[1].value
28562856
function test_wr()
28572857
# we need to be very careful here that we never
28582858
# use the value directly in this function, so we aren't dependent
28592859
# on optimizations deleting the root for it before reaching the test
28602860
ref = []
28612861
wref = []
28622862
mk_wr(ref, wref)
2863-
@test test_wr(ref, wref)
2863+
test_wr(ref, wref)
28642864
GC.gc()
28652865
test_wr(ref, wref)
28662866
empty!(ref)

0 commit comments

Comments
 (0)