Kernel#warn: don't call Warning.warn unless the category is enabled
Warning.warn
[Bug #20573]
Followup: https://github.com/ruby/ruby/pull/10960
I believe Kernel#warn should behave in the same way than internal `rb_warning_* APIs
Kernel#warn
Kernel#warn: don't call
Warning.warn
unless the category is enabled[Bug #20573]
Followup: https://github.com/ruby/ruby/pull/10960
I believe
Kernel#warn
should behave in the same way than internal`rb_warning_* APIs