Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiny fixes: enum style, typo and --pretty flowgraph errors #14326

Merged
merged 3 commits into from
May 21, 2014

Conversation

huonw
Copy link
Member

@huonw huonw commented May 21, 2014

The changes to flowgraph make invalid invocations slightly more forgiving by (trying to) provide slightly more information and by avoiding the ICE message.

huonw added 3 commits May 21, 2014 21:50
This defers to .fatal and .span_fatal for errors (rather than `fail!`
which prints the ICE message). It also adds the span lookup when an id
doesn't correspond to a block, to show what it is pointing at.

It also makes the argument parser slightly looser, so that passing
`--pretty flowgraph` recognises the `flowgraph` part and suggests to use
an integer.
bors added a commit that referenced this pull request May 21, 2014
The changes to flowgraph make invalid invocations slightly more forgiving by (trying to) provide slightly more information and by avoiding the ICE message.
@bors bors closed this May 21, 2014
@bors bors merged commit feb91f3 into rust-lang:master May 21, 2014
@huonw huonw deleted the tiny-fixes branch June 27, 2014 06:47
lnicola pushed a commit to lnicola/rust that referenced this pull request Mar 13, 2023
internal: Rename `hir::diagnostics::MissingMatchArms.match_expr` field

`hir::diagnostics::MissingMatchArms.match_expr` had confusing name: it is pointing to scrutinee expression. Renamed to `scrutinee_expr` and used better fitting type for it.

Also small refactorings/cleanup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants