diff options
author | Noah Gibbs <noah.gibbs@shopify.com> | 2022-06-10 18:52:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 13:52:43 -0400 |
commit | 9ed9cc9852a7cf12c71114c3c65b239c7af1518b (patch) | |
tree | 3aed5cc5ddcbcc7ed98aaf020d96559f001e406c /yjit | |
parent | 46333f59d4266b8a2bc80a5e80cc394a1c7ad9c1 (diff) | |
download | ruby-9ed9cc9852a7cf12c71114c3c65b239c7af1518b.tar.gz |
Add tests for a variety of string-subclass operations (#5999)
This way YJIT has to match CRuby for each of them.
Remove unused string_p() Rust function
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/src/cruby.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/yjit/src/cruby.rs b/yjit/src/cruby.rs index 3a172391f6..da9a84a160 100644 --- a/yjit/src/cruby.rs +++ b/yjit/src/cruby.rs @@ -461,11 +461,6 @@ impl VALUE { self == Qnil } - /// Returns true or false depending whether the value is a string - pub fn string_p(self) -> bool { - unsafe { CLASS_OF(self) == rb_cString } - } - /// Read the flags bits from the RBasic object, then return a Ruby type enum (e.g. RUBY_T_ARRAY) pub fn builtin_type(self) -> ruby_value_type { assert!(!self.special_const_p()); |