Skip to content

Commit 4b84ad7

Browse files
folkertdevfbstj
andauthored
Update compiler/rustc_parse/src/parser/cfg_select.rs
Co-authored-by: Joe ST <joe@fbstj.net>
1 parent 5d550b1 commit 4b84ad7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_parse/src/parser/cfg_select.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ pub enum CfgSelectRule {
1414

1515
#[derive(Default)]
1616
pub struct CfgSelectBranches {
17+
/// all the conditional branches
1718
pub reachable: Vec<(MetaItemInner, TokenStream, Span)>,
19+
/// the first wildcard `_ => { ... }` branch
1820
pub wildcard: Option<(Token, TokenStream, Span)>,
21+
/// all branches after the first wildcard, including further wildcards
1922
pub unreachable: Vec<(CfgSelectRule, TokenStream, Span)>,
2023
}
2124

0 commit comments

Comments
 (0)