Style/UnneededInterpolation autocorrect needs to dup after .to_s · Issue #6099 · rubocop/rubocop

there is an implicit dup in "#{str}" which is missing from (str).to_s so Style/UnneededInterpolation's autocorrect may break code which was reliant upon the hidden dup. % pry [1] pry(main)> str = "...