libsyntax: De-@mut CodeMap::files

This commit is contained in:
Patrick Walton
2013-12-30 16:30:33 -08:00
parent 39f39ed40b
commit 4c85cf7a40
4 changed files with 47 additions and 21 deletions

View File

@@ -109,7 +109,8 @@ pub fn expand_include_str(cx: &mut ExtCtxt, sp: Span, tts: &[ast::token_tree])
let s = s.to_managed();
// Add this input file to the code map to make it available as
// dependency information
cx.parse_sess.cm.files.push(@codemap::FileMap {
let mut files = cx.parse_sess.cm.files.borrow_mut();
files.get().push(@codemap::FileMap {
name: file.display().to_str().to_managed(),
substr: codemap::FssNone,
src: s,