summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKanstantsin Shautsou <kanstantsin.sha@gmail.com>2025-04-07 14:02:46 +0300
committerJean Boussier <jean.boussier@gmail.com>2025-04-07 16:37:39 +0200
commit4646ab89179aa3dac917a16aaa16533548ad33d9 (patch)
tree7762b3be95b4aa27c53902642fd0c5f460cfbb47
parente3abdfbc84fe1da62f309e260e574612a7b13473 (diff)
Use correct warn method
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13079
-rw-r--r--ractor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ractor.rb b/ractor.rb
index caeca88644..b22cb68939 100644
--- a/ractor.rb
+++ b/ractor.rb
@@ -274,7 +274,7 @@ class Ractor
b = block # TODO: builtin bug
raise ArgumentError, "must be called with a block" unless block
if __builtin_cexpr!("RBOOL(ruby_single_main_ractor)")
- warn("Ractor is experimental, and the behavior may change in future versions of Ruby! " \
+ Kernel.warn("Ractor is experimental, and the behavior may change in future versions of Ruby! " \
"Also there are many implementation issues.", uplevel: 0, category: :experimental)
end
loc = caller_locations(1, 1).first