Use correct warn method

This commit is contained in:
Kanstantsin Shautsou 2025-04-07 14:02:46 +03:00 committed by Jean Boussier
parent e3abdfbc84
commit 4646ab8917
Notes: git 2025-04-07 14:37:59 +00:00

View File

@ -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