diff --git a/src/exports.jl b/src/exports.jl index 8095b6e2..d8f3d690 100644 --- a/src/exports.jl +++ b/src/exports.jl @@ -1,7 +1,9 @@ function walkmodules(f, x::Module) f(x) - for n in names(x; all=true) - if isdefined(x, n) + for n in names(x; all = true) + # `isdefined` and `getproperty` can trigger deprecation warnings + if Base.isbindingresolved(x, n) && !Base.isdeprecated(x, n) + isdefined(x, n) || continue y = getproperty(x, n) if y isa Module && y !== x && parentmodule(y) === x walkmodules(f, y)