From 6acc7f64936c0fe41a80c49cb84f9ec9af463495 Mon Sep 17 00:00:00 2001 From: ksss Date: Sat, 16 May 2026 14:15:29 +0900 Subject: [PATCH] Deprecate prototype runtime --- README.md | 2 +- lib/rbs/prototype/runtime.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 29caedb78b..21f69cfa85 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ This is only a starting point, and you should edit the output to match your sign - `rb` generates from just the available Ruby code - `rbi` generates from Sorbet RBI -- `runtime` generates from runtime API +- `runtime` generates from runtime API (**deprecated**; see [#2841](https://github.com/ruby/rbs/issues/2841)) ## Library diff --git a/lib/rbs/prototype/runtime.rb b/lib/rbs/prototype/runtime.rb index 45114ec2ef..c209f9ad01 100644 --- a/lib/rbs/prototype/runtime.rb +++ b/lib/rbs/prototype/runtime.rb @@ -77,6 +77,8 @@ def mixin_decls(type_name) attr_accessor :outline def initialize(patterns:, env:, merge:, todo: false, owners_included: []) + Kernel.warn("RBS::Prototype::Runtime is deprecated. See https://github.com/ruby/rbs/issues/2841") + @patterns = patterns @decls = nil @modules = {}