Skip to content

Commit

Permalink
Make all Prism warnings $VERBOSE=true warnings
Browse files Browse the repository at this point in the history
* Until ruby/prism#2082 is resolved.
  • Loading branch information
eregon committed Jan 23, 2024
1 parent 099956f commit a0740d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/truffle/parsing/fixtures/warnings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ast: |
EmitWarningsNode
attributes:
flags = 0
warnings = RubyDeferredWarnings(WarningMessage(message = 'ambiguous `*` has been interpreted as an argument prefix', verbosity = NON_VERBOSE, fileName = '<parse_ast>', lineNumber = 1))
warnings = RubyDeferredWarnings(WarningMessage(message = 'ambiguous `*` has been interpreted as an argument prefix', verbosity = VERBOSE, fileName = '<parse_ast>', lineNumber = 1))
WriteLocalVariableNode
attributes:
flags = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public static org.prism.ParseResult parseToYARPAST(RubyContext context, RubyLang
SourceSection section = rubySource.getSource().createSection(location.startOffset, location.length);
int lineNumber = RubySource.getStartLineAdjusted(context, section);

rubyWarnings.warn(filename, lineNumber, warning.message);
rubyWarnings.warning(filename, lineNumber, warning.message);
}

if (errors.length != 0) {
Expand Down

0 comments on commit a0740d8

Please sign in to comment.