diff options
author | Jeremy Evans <code@jeremyevans.net> | 2021-09-23 12:31:32 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2021-10-02 05:51:29 -0900 |
commit | 3f7da458a77f270d96e6a9f82177d6c90476c34d (patch) | |
tree | 24a13661f2ac94f9c4bf2437c1e7c241c3275b9e /vm_core.h | |
parent | e0ef4899f3ef2561ae32275c2c3d11914e7343c7 (diff) |
Make encoding loading not issue warning
Instead of relying on setting an unsetting ruby_verbose, which is
not thread-safe, restructure require_internal and load_lock to
accept a warn argument for whether to warn, and add
rb_require_internal_silent to require without warnings. Use
rb_require_internal_silent when loading encoding.
Note this does not modify ruby_debug and errinfo handling, those
remain thread-unsafe.
Also silent requires when loading transcoders.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4887
Diffstat (limited to 'vm_core.h')
0 files changed, 0 insertions, 0 deletions