From: "mame (Yusuke Endoh)" Date: 2022-03-31T01:14:03+00:00 Subject: [ruby-core:108129] [Ruby master Bug#18669] Warning `flags ignored` is displayed for `Regexp.new(/regexp/)` Issue #18669 has been updated by mame (Yusuke Endoh). Yes, it was my fault. Thank you for your report! ---------------------------------------- Bug #18669: Warning `flags ignored` is displayed for `Regexp.new(/regexp/)` https://bugs.ruby-lang.org/issues/18669#change-97104 * Author: koic (Koichi ITO) * Status: Closed * Priority: Normal * ruby -v: ruby 3.2.0dev (2022-03-30T14:08:13Z master 75efbb98af) [x86_64-darwin19] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- I encountered an unexpected warning in Ruby 3.2.0dev. ## Reproduction code ```ruby Regexp.new(/regexp/) ``` ## Expected Behavior (Ruby 3.1.1) No warnings. ```console % ruby -vwe 'Regexp.new(/regexp/)' ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-darwin19] ``` ## Actual Behavior (Ruby 3.2.0dev) `warning: flags ignored` is displayed. ```console % ruby -vwe 'Regexp.new(/regexp/)' ruby 3.2.0dev (2022-03-30T14:08:13Z master 75efbb98af) [x86_64-darwin19] -e:1: warning: flags ignored ``` I encountered it in a RuboCop build error: https://app.circleci.com/pipelines/github/rubocop/rubocop/5974/workflows/94732274-f302-497a-a6bc-ffbf036c4e0b/jobs/213494 Perhaps https://github.com/ruby/ruby/pull/5703 change is related. -- https://bugs.ruby-lang.org/ Unsubscribe: