Replace most ~exprs with 'box'. #11779
This commit is contained in:
parent
a67307e2a5
commit
a5be12ce7e
117 changed files with 630 additions and 623 deletions
|
@ -247,7 +247,7 @@ pub fn filemap_to_tts(sess: &ParseSess, filemap: Rc<FileMap>)
|
|||
// parsing tt's probably shouldn't require a parser at all.
|
||||
let cfg = Vec::new();
|
||||
let srdr = lexer::new_string_reader(&sess.span_diagnostic, filemap);
|
||||
let mut p1 = Parser(sess, cfg, ~srdr);
|
||||
let mut p1 = Parser(sess, cfg, box srdr);
|
||||
p1.parse_all_token_trees()
|
||||
}
|
||||
|
||||
|
@ -256,7 +256,7 @@ pub fn tts_to_parser<'a>(sess: &'a ParseSess,
|
|||
tts: Vec<ast::TokenTree>,
|
||||
cfg: ast::CrateConfig) -> Parser<'a> {
|
||||
let trdr = lexer::new_tt_reader(&sess.span_diagnostic, None, tts);
|
||||
Parser(sess, cfg, ~trdr)
|
||||
Parser(sess, cfg, box trdr)
|
||||
}
|
||||
|
||||
// abort if necessary
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue