use field init shorthand EVERYWHERE

Like #43008 (f668999), but _much more aggressive_.
This commit is contained in:
Zack M. Davis 2017-08-06 22:54:09 -07:00
parent 82be83cf74
commit 1b6c9605e4
281 changed files with 1376 additions and 1376 deletions

View file

@ -178,7 +178,7 @@ fn initial_matcher_pos(ms: Vec<TokenTree>, lo: BytePos) -> Box<MatcherPos> {
sep: None,
idx: 0,
up: None,
matches: matches,
matches,
match_lo: 0,
match_cur: 0,
match_hi: match_idx_hi,
@ -374,7 +374,7 @@ fn inner_parse_loop(sess: &ParseSess,
stack: vec![],
sep: seq.separator.clone(),
idx: 0,
matches: matches,
matches,
match_lo: item.match_cur,
match_cur: item.match_cur,
match_hi: item.match_cur + seq.num_captures,
@ -400,7 +400,7 @@ fn inner_parse_loop(sess: &ParseSess,
let idx = item.idx;
item.stack.push(MatcherTtFrame {
elts: lower_elts,
idx: idx,
idx,
});
item.idx = 0;
cur_items.push(item);