Skip to content

Commit 3c8e095

Browse files
committed
Revert b9e165b
see discussion in JuliaLang#16561, deprecations should be flagged, found, and removed in base - if you need to include code with deprecations in userimg.jl, then add --depwarn=no manually when building that custom image
1 parent f76a93c commit 3c8e095

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ast.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,7 @@ static void jl_init_ast_ctx(jl_ast_context_t *ast_ctx)
219219
jl_ast_ctx(fl_ctx)->slot_sym = symbol(fl_ctx, "slot");
220220

221221
// Enable / disable syntax deprecation warnings
222-
// Disable in imaging mode to avoid i/o errors (#10727)
223-
if (jl_generating_output())
224-
jl_parse_depwarn_(fl_ctx, 0);
225-
else if (jl_options.depwarn == JL_OPTIONS_DEPWARN_ERROR)
222+
if (jl_options.depwarn == JL_OPTIONS_DEPWARN_ERROR)
226223
jl_parse_deperror(fl_ctx, 1);
227224
else
228225
jl_parse_depwarn_(fl_ctx, (int)jl_options.depwarn);

0 commit comments

Comments
 (0)