summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hash.c b/hash.c
index dda685012c..0b863bd637 100644
--- a/hash.c
+++ b/hash.c
@@ -1096,9 +1096,6 @@ rb_hash_aset(VALUE hash, VALUE key, VALUE val)
{
rb_hash_modify(hash);
hash_update(hash, key);
- if (hash == key) {
- rb_raise(rb_eArgError, "recursive key for hash");
- }
if (RHASH(hash)->ntbl->type == &identhash || rb_obj_class(key) != rb_cString) {
st_insert(RHASH(hash)->ntbl, key, val);
}