ruby-changes:62718
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Thu, 27 Aug 2020 15:03:21 +0900 (JST)
Subject: [ruby-changes:62718] 442525527e (master): improve deprecation warning
https://git.ruby-lang.org/ruby.git/commit/?id=442525527e From 442525527e2fa052e6d8752adffeaa0855b75ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Wed, 22 Jul 2020 13:02:33 +0900 Subject: improve deprecation warning We should not recommend RBIMPL_*. diff --git a/include/ruby/backward/2/attributes.h b/include/ruby/backward/2/attributes.h index 74dca62..eaff9e3 100644 --- a/include/ruby/backward/2/attributes.h +++ b/include/ruby/backward/2/attributes.h @@ -61,21 +61,18 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/2/attributes.h#L61 #undef DEPRECATED_TYPE #if defined(__GNUC__) -# define DEPRECATED_TYPE(mesg, decl) \ - _Pragma("message \"DEPRECATED_TYPE is deprecated, " \ - "use RBIMPL_ATTR_DEPRECATED instead\""); \ +# define DEPRECATED_TYPE(mesg, decl) \ + _Pragma("message \"DEPRECATED_TYPE is deprecated\""); \ decl RBIMPL_ATTR_DEPRECATED(mseg) #elif defined(_MSC_VER) # pragma deprecated(DEPRECATED_TYPE) # define DEPRECATED_TYPE(mesg, decl) \ __pragma(message(__FILE__"("STRINGIZE(__LINE__)"): warning: " \ - "DEPRECATED_TYPE is deprecated, " \ - "use RBIMPL_ATTR_DEPRECATED instead")) \ + "DEPRECATED_TYPE is deprecated")) \ decl RBIMPL_ATTR_DEPRECATED(mseg) #else # define DEPRECATED_TYPE(mesg, decl) \ - <-<-"DEPRECATED_TYPE is deprecated, " \ - "use RBIMPL_ATTR_DEPRECATED instead"->-> + <-<-"DEPRECATED_TYPE is deprecated"->-> #endif #undef RUBY_CXX_DEPRECATED -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/