diff options
author | Jeremy Evans <code@jeremyevans.net> | 2020-12-16 09:02:23 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2020-12-18 09:54:11 -0800 |
commit | 7e2dbbda357b8c509358a3aa10ff6d588ed819e2 (patch) | |
tree | ebeeb8602567a3d7bffe381db269894167811a8f /ractor.c | |
parent | 05313c914b29f7027b27a91021ae2662f0149e54 (diff) |
Use category: :experimental in warnings that are related to experimental features
This adds rb_category_compile_warn in order to emit compiler warnings
with categories. Note that Ripper currently ignores the category
for these warnings, but by default it ignores the warnings completely,
so this shouldn't matter.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3917
Diffstat (limited to 'ractor.c')
-rw-r--r-- | ractor.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1394,8 +1394,9 @@ cancel_single_ractor_mode(void) rb_transient_heap_evacuate(); if (rb_warning_category_enabled_p(RB_WARN_CATEGORY_EXPERIMENTAL)) { - rb_warn("Ractor is experimental, and the behavior may change in future versions of Ruby! " - "Also there are many implementation issues."); + rb_category_warn(RB_WARN_CATEGORY_EXPERIMENTAL, + "Ractor is experimental, and the behavior may change in future versions of Ruby! " + "Also there are many implementation issues."); } ruby_single_main_ractor = NULL; |