diff --git a/README.md b/README.md index 29caedb78..21f69cfa8 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 45114ec2e..c209f9ad0 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 = {}