summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-03 13:26:11 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-03 15:11:18 +0900
commit9f3888d6a3387773c8707b7971ce64c60df33d36 (patch)
treefae4b74a9d319ec899399d84cb9d6bd43c27a480 /parse.y
parent37eb5e74395f148782f7d67b5218fb2e66b113d7 (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 'parse.y')
-rw-r--r--parse.y1
1 files changed, 0 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 0b69bc1d7e3..e3337309350 100644
--- a/parse.y
+++ b/parse.y
@@ -12189,7 +12189,6 @@ hash_literal_key_p(VALUE k)
{
switch (OBJ_BUILTIN_TYPE(k)) {
case T_NODE:
- case T_REGEXP:
return false;
default:
return true;