summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-10 21:26:16 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-10 21:26:16 +0900
commitcfbf2bde4002821d12047b2aba0010739aaf925e (patch)
tree35a1cfc7228a2cef8733602fda023a9132c704ff /compile.c
parentcb4e2cb55a59833fc4f1f6db2f3082d1ffcafc80 (diff)
Remove unused argument
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 38a6860ea0..2ee51f8ca6 100644
--- a/compile.c
+++ b/compile.c
@@ -1633,7 +1633,7 @@ access_outer_variables(const rb_iseq_t *iseq, int level, ID id, bool write)
if (isolated_depth && level >= isolated_depth) {
if (id == rb_intern("yield")) {
- COMPILE_ERROR(iseq, ISEQ_LAST_LINE(iseq), "can not yield from isolated Proc", rb_id2name(id));
+ COMPILE_ERROR(iseq, ISEQ_LAST_LINE(iseq), "can not yield from isolated Proc");
}
else {
COMPILE_ERROR(iseq, ISEQ_LAST_LINE(iseq), "can not access variable `%s' from isolated Proc", rb_id2name(id));