Switched to Box::new in many places.
Many of the modifications putting in `Box::new` calls also include a pointer to Issue 22405, which tracks going back to `box <expr>` if possible in the future. (Still tried to use `Box<_>` where it sufficed; thus some tests still have `box_syntax` enabled, as they use a mix of `box` and `Box::new`.) Precursor for overloaded-`box` and placement-`in`; see Issue 22181.
This commit is contained in:
parent
b03279aaa2
commit
0d5bcb14ad
118 changed files with 349 additions and 373 deletions
|
@ -479,7 +479,7 @@ pub fn parse(sess: &ParseSess,
|
|||
}
|
||||
rdr.next_token();
|
||||
} else /* bb_eis.len() == 1 */ {
|
||||
let mut rust_parser = Parser::new(sess, cfg.clone(), box rdr.clone());
|
||||
let mut rust_parser = Parser::new(sess, cfg.clone(), Box::new(rdr.clone()));
|
||||
|
||||
let mut ei = bb_eis.pop().unwrap();
|
||||
match ei.top_elts.get_tt(ei.idx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue