mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
Update Ractor warning message
Although the Ractor API is still experimental and may change, and there may be some implementation issues, we should no longer say that there are many. Hopefully we can remove this warning entirely for Ruby 4.1
This commit is contained in:
parent
b208f46f48
commit
5828872ec4
Notes:
git
2025-12-11 00:01:54 +00:00
@ -1661,7 +1661,7 @@ assert_equal 'true', %q{
|
||||
}
|
||||
|
||||
# check experimental warning
|
||||
assert_match /\Atest_ractor\.rb:1:\s+warning:\s+Ractor is experimental/, %q{
|
||||
assert_match /\Atest_ractor\.rb:1:\s+warning:\s+Ractor API is experimental/, %q{
|
||||
Warning[:experimental] = $VERBOSE = true
|
||||
STDERR.reopen(STDOUT)
|
||||
eval("Ractor.new{}.value", nil, "test_ractor.rb", 1)
|
||||
|
||||
@ -230,8 +230,8 @@ 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)")
|
||||
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)
|
||||
Kernel.warn("Ractor API is experimental and may change in future versions of Ruby.",
|
||||
uplevel: 0, category: :experimental)
|
||||
end
|
||||
loc = caller_locations(1, 1).first
|
||||
loc = "#{loc.path}:#{loc.lineno}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user