Skip to content

Commit 2141bf1

Browse files
authored
Fix warning about collect_delay during precompile (#4484)
1 parent ebb5004 commit 2141bf1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/REPLMode/command_declarations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ compound_declarations = [
512512
:name => "gc",
513513
:api => API.gc,
514514
:option_spec => [
515-
PSA[:name => "all", :api => :collect_delay => Hour(0)],
515+
PSA[:name => "all", :api => :collect_delay => nothing],
516516
PSA[:name => "verbose", :short_name => "v", :api => :verbose => true],
517517
],
518518
:description => "garbage collect packages not used for a significant time",

test/new.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2765,7 +2765,7 @@ end
27652765
@test isempty(opts)
27662766
api, opts = first(Pkg.pkg"gc --all")
27672767
@test api == Pkg.gc
2768-
@test opts[:collect_delay] == Hour(0)
2768+
# N.B.: `--all` is now a no-op, but is retained for now for compatibility.
27692769
end
27702770
end
27712771

0 commit comments

Comments
 (0)