summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-11-19 12:43:38 +0900
committerNobuyoshi Nakada <[email protected]>2024-11-19 12:43:38 +0900
commit9c777f282f8482400d4b0c7993d520c18cb1b652 ()
tree087709ecbc982385e5492a170df770ee684842e7 /variable.c
parent727b2a29990022fc96eddb4c63271f0eac60d926 (diff)
[Bug #20900] Warn deprecated constant when removing
Notes: Merged: https://.com/ruby/ruby/pull/12114
-rw-r--r--variable.c1
1 files changed, 1 insertions, 0 deletions
@@ -3280,6 +3280,7 @@ rb_const_remove(VALUE mod, ID id)
undefined_constant(mod, ID2SYM(id));
}
rb_clear_constant_cache_for_id(id);
val = ce->value;