diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2024-06-04 17:27:29 +0200 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2024-06-04 19:21:01 +0200 |
commit | f7b53a75b648e7156f49c1d5c266e2d85f159fc6 (patch) | |
tree | efa01c825057ff34b8f5c5e5e3b365be7aa475e5 /yjit/bindgen/src/main.rs | |
parent | 86272257047aeac65ae0a5af100093e39c2ee00a (diff) | |
download | ruby-f7b53a75b648e7156f49c1d5c266e2d85f159fc6.tar.gz |
Do not emit shape transition warnings when YJIT is compiling
[Bug #20522]
If `Warning.warn` is redefined in Ruby, emitting a warning would invoke
Ruby code, which can't safely be done when YJIT is compiling.
Diffstat (limited to 'yjit/bindgen/src/main.rs')
-rw-r--r-- | yjit/bindgen/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index 94e821a05f..e76d9b3063 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -100,7 +100,7 @@ fn main() { .allowlist_function("rb_shape_get_shape_by_id") .allowlist_function("rb_shape_id_offset") .allowlist_function("rb_shape_get_iv_index") - .allowlist_function("rb_shape_get_next") + .allowlist_function("rb_shape_get_next_no_warnings") .allowlist_function("rb_shape_id") .allowlist_function("rb_shape_obj_too_complex") .allowlist_var("SHAPE_ID_NUM_BITS") |