From d9511e9e0989b032c79aad6e80c5640eb40ea464 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 27 Sep 2026 11:41:07 +0200 Subject: [PATCH] go.mod: parser v0.7.0 -> v0.8.0, the release that makes a keyword parameter legal in a paren-less lambda list Measured on this tree, ruby/spec `language`+`core` (2206 `*_spec.rb`, corpus pinned 87b1631, TIMEOUT=25): 23249 -> 23292 passing examples, +43, with no file moving down. The payoff the parser release could not measure, because it has no rbgo build: `core/proc/parameters_spec.rb` went from a plain parse error at line 65 ("expected {, got x (LABEL)"), and therefore 0 of its 29 examples, to pass=25 fail=4. MRI 4.0.5 read through the same shim scores 27, and two of the four remaining failures are the two MRI also fails, so the file is now 25 of a 27 ceiling. The residue is `Proc#parameters` semantics, not parsing. Every file that moved: | file | before | after | |---|---|---| | `core/proc/parameters_spec.rb` | parse error, 0 | 25 | | `language/numbers_spec.rb` | 10 | 21 | | `language/BEGIN_spec.rb` | 1 | 6 | | `core/kernel/eval_spec.rb` | 38 | 39 | | `language/return_spec.rb` | 36 | 37 | The release both accepts more and refuses more, so it was gated in both directions: 99 shapes, each judged by `ruby -c` (prism) AND `ruby --parser=parse.y -c` on ruby 4.0.5, and by an rbgo build on each side of the bump. 15 over-acceptances removed, 44 refusals fixed, and **0 shapes where MRI accepts and we refuse**. The standing controls do not move. Co-Authored-By: Claude Opus 5 --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 2a576db0..561861c0 100644 --- a/go.mod +++ b/go.mod @@ -129,7 +129,7 @@ require ( github.com/go-ruby-pagy/pagy v0.0.0-20260717071719-997d15eee011 github.com/go-ruby-paper-trail/paper-trail v0.0.0-20260717071745-42a249656e5a github.com/go-ruby-parquet/parquet v0.0.0-20260923211642-bc75bcb9031e - github.com/go-ruby-parser/parser v0.7.0 + github.com/go-ruby-parser/parser v0.8.0 github.com/go-ruby-pathname/pathname v0.0.0-20260916100446-0824484b665f github.com/go-ruby-pg/pg v0.0.0-20260916100523-3831ec811a67 github.com/go-ruby-prawn/prawn v0.0.0-20260829111617-4a543d91acca diff --git a/go.sum b/go.sum index 1ccab8b6..27e5e87f 100644 --- a/go.sum +++ b/go.sum @@ -527,8 +527,8 @@ github.com/go-ruby-paper-trail/paper-trail v0.0.0-20260717071745-42a249656e5a h1 github.com/go-ruby-paper-trail/paper-trail v0.0.0-20260717071745-42a249656e5a/go.mod h1:z370KNJcUH8n39yLdlT0Y1QvHukxjsq1XjGpIzvfqWE= github.com/go-ruby-parquet/parquet v0.0.0-20260923211642-bc75bcb9031e h1:pxhP3nIRxTpj99e74JAVpGj7JQtRSNqLb+B5x2WT5N4= github.com/go-ruby-parquet/parquet v0.0.0-20260923211642-bc75bcb9031e/go.mod h1:wC+J6qfQ8C0aKgi5qsbR03DYrLLuXXezUBHl967am/E= -github.com/go-ruby-parser/parser v0.7.0 h1:H6U35coD7hNDY7kSayX4IdtG+sMk1AP9c6D6uJKu/i0= -github.com/go-ruby-parser/parser v0.7.0/go.mod h1:NRbX4dYcQ6CgcaSaMmu1dh95QuKGq+RdenUoWU73214= +github.com/go-ruby-parser/parser v0.8.0 h1:QV+7YJqlWreeNjWgeg06jNaxI0awlWwerhzAhpwSzQk= +github.com/go-ruby-parser/parser v0.8.0/go.mod h1:NRbX4dYcQ6CgcaSaMmu1dh95QuKGq+RdenUoWU73214= github.com/go-ruby-pathname/pathname v0.0.0-20260916100446-0824484b665f h1:9pt89wlAp12vbCNGFYmbSqp/PJTHRwUx1yNDXW5hWRI= github.com/go-ruby-pathname/pathname v0.0.0-20260916100446-0824484b665f/go.mod h1:IvW5q5Kyl5l3hrYwiHylOEmk5hpGSo7XqcmUXBHF5H0= github.com/go-ruby-pg/pg v0.0.0-20260916100523-3831ec811a67 h1:X9MKhEAV60oYoL94tqb11lfLw3yW097mVqfjDdy5PK0=