michaeledgar/laser

Comparable#== will no more rescue exceptions of #<=> in the next release (after 2.2.2).

jdickey opened this issue · 0 comments

laser --help gives the following error when using Ruby 2.2.2. It gives it 3,820 times.

/usr/local/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/laser-0.7.0.pre2/lib/laser/analysis/control_flow/static_single_assignment.rb:174: warning: Comparable#== will no more rescue exceptions of #<=> in the next release.
/usr/local/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/laser-0.7.0.pre2/lib/laser/analysis/control_flow/static_single_assignment.rb:174: warning: Return nil in #<=> if the comparison is inappropriate or avoid such comparison.