From: "hsbt (Hiroshi SHIBATA) via ruby-core" Date: 2026-03-11T08:44:50+00:00 Subject: [ruby-core:124978] [Ruby Bug#21828] An incorrect warning message related to `benchmark` is shown when using `benchmark-ips` Issue #21828 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Open to Closed The additional changes has been merged. I believe they fixed that. * https://github.com/ruby/ruby/pull/15908 * https://github.com/ruby/ruby/pull/16154 Please look the merged commit at stable branch at first. ---------------------------------------- Bug #21828: An incorrect warning message related to `benchmark` is shown when using `benchmark-ips` https://bugs.ruby-lang.org/issues/21828#change-116668 * Author: y-yagi (Yuji Yaginuma) * Status: Closed * Assignee: hsbt (Hiroshi SHIBATA) * ruby -v: ruby 4.0.1 (2026-01-13 revision e04267a14b) +PRISM [x86_64-linux] * Backport: 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONTNEED, 4.0: DONE ---------------------------------------- ## Descrition When using `benchmark-ips` gem with Ruby 4.0.0, the warning related to `benchmark` gem is shown. ## Step to reproduce ```ruby # Gemfile # frozen_string_literal: true source "https://rubygems.org" gem "benchmark-ips" ``` ```ruby # script.rb require "benchmark/ips" ``` ```text $ bundle exec ruby -v script.rb ruby 4.0.0 (2025-12-25 revision 553f1675f3) +PRISM [x86_64-linux] script.rb:1: warning: benchmark/ips is found in benchmark, which is not part of the default gems since Ruby 4.0.0. You can add benchmark to your Gemfile or gemspec to fix this error. ``` ## Expected behavior The warning for `benchmark` isn't shown when using `benchmark-ips`. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/