[前][次][番号順一覧][スレッド一覧]

ruby-changes:67862

From: Nobuyoshi <ko1@a...>
Date: Fri, 10 Sep 2021 21:26:58 +0900 (JST)
Subject: [ruby-changes:67862] cfbf2bde40 (master): Remove unused argument

https://git.ruby-lang.org/ruby.git/commit/?id=cfbf2bde40

From cfbf2bde4002821d12047b2aba0010739aaf925e Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 10 Sep 2021 21:26:16 +0900
Subject: Remove unused argument

---
 compile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compile.c b/compile.c
index 38a6860..2ee51f8 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) https://github.com/ruby/ruby/blob/trunk/compile.c#L1633
 
     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));
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]