From 3292957d5f0e9d1632dca7f5ef32c06010d5cd5e Mon Sep 17 00:00:00 2001 From: Philipp Gabler Date: Mon, 23 Aug 2021 11:20:14 +0200 Subject: [PATCH 1/2] Remove __rng__ and __sampler__ from INTERNALNAMES; derive deprecated names automatically --- src/compiler.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler.jl b/src/compiler.jl index 4e32b7d5a..e90b38e6a 100644 --- a/src/compiler.jl +++ b/src/compiler.jl @@ -1,5 +1,5 @@ -const INTERNALNAMES = (:__model__, :__sampler__, :__context__, :__varinfo__, :__rng__) -const DEPRECATED_INTERNALNAMES = (:_model, :_sampler, :_context, :_varinfo, :_rng) +const INTERNALNAMES = (:__model__, :__context__, :__varinfo__) +const DEPRECATED_INTERNALNAMES = Tuple(Symbol(string(name)[2:end-2]) for name in INTERNALNAMES) """ isassumption(expr) From 7fa8d3b0750a6f1bd63c1cad13bcc501776784a8 Mon Sep 17 00:00:00 2001 From: Philipp Gabler Date: Mon, 23 Aug 2021 11:39:56 +0200 Subject: [PATCH 2/2] Revert automatic deprecations derivation Co-authored-by: David Widmann --- src/compiler.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.jl b/src/compiler.jl index e90b38e6a..dc779b17c 100644 --- a/src/compiler.jl +++ b/src/compiler.jl @@ -1,5 +1,5 @@ const INTERNALNAMES = (:__model__, :__context__, :__varinfo__) -const DEPRECATED_INTERNALNAMES = Tuple(Symbol(string(name)[2:end-2]) for name in INTERNALNAMES) +const DEPRECATED_INTERNALNAMES = (:_model, :_context, :_varinfo) """ isassumption(expr)