summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-22 16:37:35 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-30 10:47:01 +0900
commit8118d435d000adec3023a0ff509baa11cc73fabb (patch)
tree6da87e4fddc90d6d27f00815f8dcbf4069c42c97 /object.c
parentd1998d8767affe58be0bd09ec536dae9198a7fbd (diff)
downloadruby-8118d435d000adec3023a0ff509baa11cc73fabb.tar.gz
rb_warn_deprecated_to_remove_at [Feature #17432]
At compilation time with RUBY_DEBUG enabled, check if the removal version has been reached.
Diffstat (limited to 'object.c')
-rw-r--r--object.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/object.c b/object.c
index 1994fe9b80..91e348a0cd 100644
--- a/object.c
+++ b/object.c
@@ -1205,7 +1205,7 @@ rb_obj_dummy1(VALUE _x, VALUE _y)
VALUE
rb_obj_tainted(VALUE obj)
{
- rb_warn_deprecated_to_remove("Object#tainted?", "3.2");
+ rb_warn_deprecated_to_remove_at("3.2", "Object#tainted?", NULL);
return Qfalse;
}
@@ -1219,7 +1219,7 @@ rb_obj_tainted(VALUE obj)
VALUE
rb_obj_taint(VALUE obj)
{
- rb_warn_deprecated_to_remove("Object#taint", "3.2");
+ rb_warn_deprecated_to_remove_at("3.2", "Object#taint", NULL);
return obj;
}
@@ -1234,7 +1234,7 @@ rb_obj_taint(VALUE obj)
VALUE
rb_obj_untaint(VALUE obj)
{
- rb_warn_deprecated_to_remove("Object#untaint", "3.2");
+ rb_warn_deprecated_to_remove_at("3.2", "Object#untaint", NULL);
return obj;
}
@@ -1248,7 +1248,7 @@ rb_obj_untaint(VALUE obj)
VALUE
rb_obj_untrusted(VALUE obj)
{
- rb_warn_deprecated_to_remove("Object#untrusted?", "3.2");
+ rb_warn_deprecated_to_remove_at("3.2", "Object#untrusted?", NULL);
return Qfalse;
}
@@ -1262,7 +1262,7 @@ rb_obj_untrusted(VALUE obj)
VALUE
rb_obj_untrust(VALUE obj)
{
- rb_warn_deprecated_to_remove("Object#untrust", "3.2");
+ rb_warn_deprecated_to_remove_at("3.2", "Object#untrust", NULL);
return obj;
}
@@ -1277,7 +1277,7 @@ rb_obj_untrust(VALUE obj)
VALUE
rb_obj_trust(VALUE obj)
{
- rb_warn_deprecated_to_remove("Object#trust", "3.2");
+ rb_warn_deprecated_to_remove_at("3.2", "Object#trust", NULL);
return obj;
}
@@ -1288,7 +1288,7 @@ rb_obj_trust(VALUE obj)
void
rb_obj_infect(VALUE victim, VALUE carrier)
{
- rb_warn_deprecated_to_remove("rb_obj_infect", "3.2");
+ rb_warn_deprecated_to_remove_at("3.2", "rb_obj_infect", NULL);
}
/**