From 9f3888d6a3387773c8707b7971ce64c60df33d36 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 3 Jun 2021 13:26:11 +0900 Subject: Warn more duplicate literal hash keys Following non-special_const literals: * T_REGEXP --- re.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 're.c') diff --git a/re.c b/re.c index 5809d26bf3..64078aefd2 100644 --- a/re.c +++ b/re.c @@ -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; -- cgit v1.2.3