libsyntax: add some more explicit copies

This commit is contained in:
Erick Tryzelaar 2013-02-26 20:18:01 -08:00
parent da7aedc230
commit ea36a0dee1
6 changed files with 160 additions and 91 deletions

View file

@ -3492,7 +3492,7 @@ pub impl Parser {
};
let full_path = full_path.normalize();
let p0 =
new_sub_parser_from_file(self.sess, self.cfg,
new_sub_parser_from_file(self.sess, copy self.cfg,
&full_path, id_sp);
let (inner, next) = p0.parse_inner_attrs_and_next();
let mod_attrs = vec::append(