summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-30 15:16:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-30 15:16:09 +0000
commit6b7ed6048e8ff79405a4795f6755ac7661fae1cb (patch)
treeb0b92634720820a9c3adb592005639d8900001bb /parse.y
parentb52233555406f9cad23cac40fcee200ef2b3e5eb (diff)
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.y7
1 files changed, 4 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index a6a3905a9f..26383a45b7 100644
--- a/parse.y
+++ b/parse.y
@@ -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));
}
}