diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-12-22 16:37:35 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-06-30 10:47:01 +0900 |
commit | 8118d435d000adec3023a0ff509baa11cc73fabb (patch) | |
tree | 6da87e4fddc90d6d27f00815f8dcbf4069c42c97 /string.c | |
parent | d1998d8767affe58be0bd09ec536dae9198a7fbd (diff) |
rb_warn_deprecated_to_remove_at [Feature #17432]
At compilation time with RUBY_DEBUG enabled, check if the removal
version has been reached.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3972
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -944,14 +944,14 @@ rb_enc_str_new_static(const char *ptr, long len, rb_encoding *enc) VALUE rb_tainted_str_new(const char *ptr, long len) { - rb_warn_deprecated_to_remove("rb_tainted_str_new", "3.2"); + rb_warn_deprecated_to_remove_at("3.2", "rb_tainted_str_new", NULL); return rb_str_new(ptr, len); } VALUE rb_tainted_str_new_cstr(const char *ptr) { - rb_warn_deprecated_to_remove("rb_tainted_str_new_cstr", "3.2"); + rb_warn_deprecated_to_remove_at("3.2", "rb_tainted_str_new_cstr", NULL); return rb_str_new_cstr(ptr); } |