Skip to content

Commit fcf2891

Browse files
authored
Merge pull request #2956 from ksss/deprecate-prototype-runtime
Deprecate prototype runtime
2 parents fa84359 + 6acc7f6 commit fcf2891

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ This is only a starting point, and you should edit the output to match your sign
122122

123123
- `rb` generates from just the available Ruby code
124124
- `rbi` generates from Sorbet RBI
125-
- `runtime` generates from runtime API
125+
- `runtime` generates from runtime API (**deprecated**; see [#2841](https://github.com/ruby/rbs/issues/2841))
126126

127127
## Library
128128

lib/rbs/prototype/runtime.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ def mixin_decls(type_name)
7777
attr_accessor :outline
7878

7979
def initialize(patterns:, env:, merge:, todo: false, owners_included: [])
80+
Kernel.warn("RBS::Prototype::Runtime is deprecated. See https://github.com/ruby/rbs/issues/2841")
81+
8082
@patterns = patterns
8183
@decls = nil
8284
@modules = {}

0 commit comments

Comments
 (0)