* [ruby-core:119194] [Ruby master Bug#20741] RubyVM::InstructionSequence.compile emits a wrong warning (prism?)
@ 2024-09-15 1:05 mame (Yusuke Endoh) via ruby-core
2024-09-15 9:10 ` [ruby-core:119195] " byroot (Jean Boussier) via ruby-core
2024-09-16 15:04 ` [ruby-core:119222] " kddnewton (Kevin Newton) via ruby-core
0 siblings, 2 replies; 3+ messages in thread
From: mame (Yusuke Endoh) via ruby-core @ 2024-09-15 1:05 UTC (permalink / raw)
To: ruby-core; +Cc: mame (Yusuke Endoh)
Issue #20741 has been reported by mame (Yusuke Endoh).
----------------------------------------
Bug #20741: RubyVM::InstructionSequence.compile emits a wrong warning (prism?)
https://bugs.ruby-lang.org/issues/20741
* Author: mame (Yusuke Endoh)
* Status: Open
* Assignee: kddnewton (Kevin Newton)
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
```
$ ./local/bin/ruby -we 'p RubyVM::InstructionSequence.compile("42").eval'
<compiled>:1: warning: possibly useless use of a literal in void context
42
```
--
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:119195] [Ruby master Bug#20741] RubyVM::InstructionSequence.compile emits a wrong warning (prism?)
2024-09-15 1:05 [ruby-core:119194] [Ruby master Bug#20741] RubyVM::InstructionSequence.compile emits a wrong warning (prism?) mame (Yusuke Endoh) via ruby-core
@ 2024-09-15 9:10 ` byroot (Jean Boussier) via ruby-core
2024-09-16 15:04 ` [ruby-core:119222] " kddnewton (Kevin Newton) via ruby-core
1 sibling, 0 replies; 3+ messages in thread
From: byroot (Jean Boussier) via ruby-core @ 2024-09-15 9:10 UTC (permalink / raw)
To: ruby-core; +Cc: byroot (Jean Boussier)
Issue #20741 has been updated by byroot (Jean Boussier).
> prism?
Yes:
```
$ ./miniruby --parser=parse.y -we 'p RubyVM::InstructionSequence.compile("42").eval'
42
$ ./miniruby --parser=prism -we 'p RubyVM::InstructionSequence.compile("42").eval'
<compiled>:1: warning: possibly useless use of a literal in void context
42
```
----------------------------------------
Bug #20741: RubyVM::InstructionSequence.compile emits a wrong warning (prism?)
https://bugs.ruby-lang.org/issues/20741#change-109779
* Author: mame (Yusuke Endoh)
* Status: Open
* Assignee: kddnewton (Kevin Newton)
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
```
$ ./local/bin/ruby -we 'p RubyVM::InstructionSequence.compile("42").eval'
<compiled>:1: warning: possibly useless use of a literal in void context
42
```
--
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:119222] [Ruby master Bug#20741] RubyVM::InstructionSequence.compile emits a wrong warning (prism?)
2024-09-15 1:05 [ruby-core:119194] [Ruby master Bug#20741] RubyVM::InstructionSequence.compile emits a wrong warning (prism?) mame (Yusuke Endoh) via ruby-core
2024-09-15 9:10 ` [ruby-core:119195] " byroot (Jean Boussier) via ruby-core
@ 2024-09-16 15:04 ` kddnewton (Kevin Newton) via ruby-core
1 sibling, 0 replies; 3+ messages in thread
From: kddnewton (Kevin Newton) via ruby-core @ 2024-09-16 15:04 UTC (permalink / raw)
To: ruby-core; +Cc: kddnewton (Kevin Newton)
Issue #20741 has been updated by kddnewton (Kevin Newton).
I have submitted a PR that will fix this https://github.com/ruby/ruby/pull/11632.
----------------------------------------
Bug #20741: RubyVM::InstructionSequence.compile emits a wrong warning (prism?)
https://bugs.ruby-lang.org/issues/20741#change-109800
* Author: mame (Yusuke Endoh)
* Status: Open
* Assignee: kddnewton (Kevin Newton)
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
```
$ ./local/bin/ruby -we 'p RubyVM::InstructionSequence.compile("42").eval'
<compiled>:1: warning: possibly useless use of a literal in void context
42
```
--
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-16 15:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-15 1:05 [ruby-core:119194] [Ruby master Bug#20741] RubyVM::InstructionSequence.compile emits a wrong warning (prism?) mame (Yusuke Endoh) via ruby-core
2024-09-15 9:10 ` [ruby-core:119195] " byroot (Jean Boussier) via ruby-core
2024-09-16 15:04 ` [ruby-core:119222] " kddnewton (Kevin Newton) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).