diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-30 15:16:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-30 15:16:09 +0000 |
commit | 6b7ed6048e8ff79405a4795f6755ac7661fae1cb (patch) | |
tree | b0b92634720820a9c3adb592005639d8900001bb /parse.y | |
parent | b52233555406f9cad23cac40fcee200ef2b3e5eb (diff) | |
download | ruby-6b7ed6048e8ff79405a4795f6755ac7661fae1cb.tar.gz |
parse.y: use rb_id2str
* parse.y (rb_id_attrset): use rb_id2str to get rid of method call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -8837,7 +8837,8 @@ rb_id_attrset(ID id) case tAREF: case tASET: return tASET; /* only exception */ } - rb_name_error(id, "cannot make operator ID :%s attrset", rb_id2name(id)); + rb_name_error(id, "cannot make operator ID :%"PRIsVALUE" attrset", + rb_id2str(id)); } else { int scope = id_type(id); @@ -8848,8 +8849,8 @@ rb_id_attrset(ID id) case ID_ATTRSET: return id; default: - rb_name_error(id, "cannot make %s ID %+"PRIsVALUE" attrset", - id_type_names[scope], ID2SYM(id)); + rb_name_error(id, "cannot make %s ID :%"PRIsVALUE" attrset", + id_type_names[scope], rb_id2str(id)); } } |