From 537297d1cbcd2ed97488774e67c4fc001282a658 Mon Sep 17 00:00:00 2001
From: shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Fri, 7 Dec 2012 15:49:21 +0000
Subject: * vm_eval.c (yield_under, eval_under): do not activate refinements  
 of the receiver in module_eval and instance_eval.

* eval.c (ruby_Init_refinement): undef Class#refine.

* eval.c (ruby_Init_refinement): remove Module#using.

* eval.c (ruby_Init_refinement): main.using should be private.

* eval.c (rb_mod_refine): the argument of Module#refine should not
  be a module.

* insns.def (defineclass): do not activate refinements in a class or
  module.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
---
 insns.def | 1 -
 1 file changed, 1 deletion(-)

(limited to 'insns.def')

diff --git a/insns.def b/insns.def
index ea099060c7..8a0f91f6c1 100644
--- a/insns.def
+++ b/insns.def
@@ -967,7 +967,6 @@ defineclass
 		  klass, 0, VM_ENVVAL_BLOCK_PTR(GET_BLOCK_PTR()),
 		  class_iseq->iseq_encoded, GET_SP(),
 		  class_iseq->local_size, 0);
-    rb_vm_using_modules(class_iseq->cref_stack, klass);
     RESTORE_REGS();
 
     INC_VM_STATE_VERSION();
-- 
cgit v1.2.3

