We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example:
#![feature(rustc_attrs)] #[rustc_mir(graphviz="match.dot")] fn main() { let _abc = match Some(101i8) { Some(xyz) if xyz > 100 => xyz, Some(_) => -1, None => -2 }; }
The resulting MIR does not contain the Some(xyz) arm: http://i.imgur.com/EF489mM.png
Some(xyz)
The text was updated successfully, but these errors were encountered:
cc me
Sorry, something went wrong.
match_candidates
Auto merge of #30553 - luqmana:mir-match-arm-guards, r=nikomatsakis
b622891
Fixes #30527. ```Rust fn main() { let _abc = match Some(101i8) { Some(xyz) if xyz > 100 => xyz, Some(_) => -1, None => -2 }; } ``` Resulting MIR now includes the `Some(xyz)` arm, guard and all:  ~~Not quite sure how to write a test for this.~~ Thinking too hard, just tested the end result. r? @nikomatsakis
No branches or pull requests
Example:
The resulting MIR does not contain the
Some(xyz)
arm: http://i.imgur.com/EF489mM.pngThe text was updated successfully, but these errors were encountered: