libsyntax: De-@str pathnames

This commit is contained in:
Patrick Walton 2014-01-15 16:42:51 -08:00 committed by Huon Wilson
parent e68108b3e8
commit 8d6ef2e1b1
8 changed files with 43 additions and 48 deletions

View file

@ -114,7 +114,7 @@ pub fn expand_include_str(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])
Some(src) => {
// Add this input file to the code map to make it available as
// dependency information
let filename = file.display().to_str().to_managed();
let filename = file.display().to_str();
let interned = token::intern_and_get_ident(src);
cx.parse_sess.cm.new_filemap(filename, src);