From c27a82f19352f37a6b04d7733d28c84494c3afd4 Mon Sep 17 00:00:00 2001 From: Philip Craig Date: Sat, 30 Sep 2017 16:28:48 +1000 Subject: Don't use remapped path when loading modules and include files --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index d5ba4b54d90..bd1d4241be0 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -525,7 +525,7 @@ impl<'a> Parser<'a> { if let Some(directory) = directory { parser.directory = directory; } else if parser.span != syntax_pos::DUMMY_SP { - parser.directory.path = PathBuf::from(sess.codemap().span_to_filename(parser.span)); + parser.directory.path = sess.codemap().span_to_path(parser.span); parser.directory.path.pop(); } -- cgit 1.4.1-3-g733a5