diff options
author | Étienne Barrié <etienne.barrie@gmail.com> | 2024-05-27 11:22:39 +0200 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2024-05-28 07:32:33 +0200 |
commit | 1376881e9afe6ff673f64afa791cf30f57147ee2 (patch) | |
tree | a5ad297473381ac00c593ca2ca1ef93381fd3a00 /yjit/bindgen/src/main.rs | |
parent | 2114d0af1e5790da365584a38ea7ee58670dc11b (diff) | |
download | ruby-1376881e9afe6ff673f64afa791cf30f57147ee2.tar.gz |
Stop marking chilled strings as frozen
They were initially made frozen to avoid false positives for cases such
as:
str = str.dup if str.frozen?
But this may cause bugs and is generally confusing for users.
[Feature #20205]
Co-authored-by: Jean Boussier <byroot@ruby-lang.org>
Diffstat (limited to 'yjit/bindgen/src/main.rs')
-rw-r--r-- | yjit/bindgen/src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index a7473c1bf6..94e821a05f 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -223,6 +223,7 @@ fn main() { .allowlist_function("rb_float_div") // From internal/string.h + .allowlist_type("ruby_rstring_private_flags") .allowlist_function("rb_ec_str_resurrect") .allowlist_function("rb_str_concat_literals") .allowlist_function("rb_obj_as_string_result") |