ruby-changes:67200
From: Nobuyoshi <ko1@a...>
Date: Fri, 20 Aug 2021 15:59:03 +0900 (JST)
Subject: [ruby-changes:67200] 4c93c124c2 (master): Turned the reminder comment to a compile-time message
https://git.ruby-lang.org/ruby.git/commit/?id=4c93c124c2 From 4c93c124c29465e49343b47c935be99ad67a7d83 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 20 Aug 2021 13:46:19 +0900 Subject: Turned the reminder comment to a compile-time message --- gc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gc.c b/gc.c index c70f8a3..fa4ab44 100644 --- a/gc.c +++ b/gc.c @@ -2754,7 +2754,8 @@ rb_data_object_check(VALUE klass) https://github.com/ruby/ruby/blob/trunk/gc.c#L2754 { if (klass != rb_cObject && (rb_get_alloc_func(klass) == rb_class_allocate_instance)) { rb_undef_alloc_func(klass); -#if 0 /* TODO: enable at the next release */ +#if RUBY_VERSION_SINCE(3, 2) + RBIMPL_TODO("enable the warning at this release"); rb_warn("undefining the allocator of T_DATA class %"PRIsVALUE, klass); #endif } -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/