diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-03 13:26:11 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-03 15:11:18 +0900 |
commit | 9f3888d6a3387773c8707b7971ce64c60df33d36 (patch) | |
tree | fae4b74a9d319ec899399d84cb9d6bd43c27a480 /re.c | |
parent | 37eb5e74395f148782f7d67b5218fb2e66b113d7 (diff) |
Warn more duplicate literal hash keys
Following non-special_const literals:
* T_REGEXP
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4548
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3009,7 +3009,7 @@ static st_index_t reg_hash(VALUE re); * See also Object#hash. */ -static VALUE +VALUE rb_reg_hash(VALUE re) { st_index_t hashval = reg_hash(re); @@ -3043,7 +3043,7 @@ reg_hash(VALUE re) * /abc/u == /abc/n #=> false */ -static VALUE +VALUE rb_reg_equal(VALUE re1, VALUE re2) { if (re1 == re2) return Qtrue; |