зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
b522335554
Коммит
6b7ed6048e
7
parse.y
7
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));
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче