Skip to content

Commit b42227e

Browse files
committed
Fix docs build
1 parent 5135c4a commit b42227e

File tree

5 files changed

+6
-15
lines changed

5 files changed

+6
-15
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ version = "0.8.8"
88
[deps]
99
MistyClosures = "dbe65cb8-6be2-42dd-bbc5-4196aaced4f4"
1010
Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
11-
ScopedValues = "7e506255-f358-4e82-b7e4-beb19740aa63"
1211
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1312

1413
[compat]
1514
Aqua = "0.8.11"
1615
JuliaFormatter = "1.0.62"
1716
MistyClosures = "2.0.0"
1817
Mooncake = "0.4.99"
19-
ScopedValues = "1.3.0"
2018
Test = "1"
2119
julia = "1.10.8"
2220

docs/src/internals.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ Libtask.might_produce
77
Libtask.stmt_might_produce
88
Libtask.LazyCallable
99
Libtask.inc_args
10+
Libtask.get_type
11+
Libtask._typeof
1012
```

src/Libtask.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ using Mooncake.BasicBlockCode: collect_stmts, characterise_used_ids
99
# We'll emit `MistyClosure`s rather than `OpaqueClosure`s.
1010
using MistyClosures
1111

12-
# ScopedValues only became available as part of `Base` in v1.11. Therefore, on v1.10 we
13-
# need to use the `ScopedValues` package.
14-
@static if VERSION < v"1.11"
15-
using ScopedValues: ScopedValue, with
16-
else
17-
using Base.ScopedValues: ScopedValue, with
18-
end
19-
2012
# Import some names from the compiler.
2113
const CC = Core.Compiler
2214
using Core.Compiler: Argument, IRCode, ReturnNode

src/copyable_task.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ julia> consume(t2)
145145
2
146146
```
147147
148-
## Scoped Values
148+
## TapedTask-Specific Globals
149149
150150
It is often desirable to permit a copy of a task and the original to differ in very specific
151151
ways. For example, in the context of Sequential Monte Carlo, you might want the only
@@ -156,8 +156,8 @@ A generic mechanism is available to achieve this. [`Libtask.get_dynamic_scope`](
156156
to a given [`Libtask.TapedTask`](@ref). The former can be called inside a function:
157157
```jldoctest sv
158158
julia> function f()
159-
produce(get_dynamic_scope())
160-
produce(get_dynamic_scope())
159+
produce(get_dynamic_scope(Int))
160+
produce(get_dynamic_scope(Int))
161161
return nothing
162162
end
163163
f (generic function with 1 method)

test/runtests.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
include("front_matter.jl")
22
@testset "Libtask" begin
33
@testset "quality" begin
4-
# ScopedValues is stale on 1.11.
5-
Aqua.test_all(Libtask; stale_deps=VERSION < v"1.11" ? true : false)
4+
Aqua.test_all(Libtask)
65
@test JuliaFormatter.format(Libtask; verbose=false, overwrite=false)
76
end
87
include("copyable_task.jl")

0 commit comments

Comments
 (0)