mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Use correct warn method
This commit is contained in:
parent
e3abdfbc84
commit
4646ab8917
Notes:
git
2025-04-07 14:37:59 +00:00
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ class Ractor
|
||||||
b = block # TODO: builtin bug
|
b = block # TODO: builtin bug
|
||||||
raise ArgumentError, "must be called with a block" unless block
|
raise ArgumentError, "must be called with a block" unless block
|
||||||
if __builtin_cexpr!("RBOOL(ruby_single_main_ractor)")
|
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)
|
"Also there are many implementation issues.", uplevel: 0, category: :experimental)
|
||||||
end
|
end
|
||||||
loc = caller_locations(1, 1).first
|
loc = caller_locations(1, 1).first
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue