diff options
| author | Philip Craig <philipjcraig@gmail.com> | 2017-10-03 19:44:58 +1000 |
|---|---|---|
| committer | Philip Craig <philipjcraig@gmail.com> | 2017-10-03 19:47:33 +1000 |
| commit | 3a225c77bba8576333924e7435493cb4d4e0cbaf (patch) | |
| tree | 5c2d2bf700d90f2f9f7507997f876937dc9ab805 /src/libsyntax/parse | |
| parent | c27a82f19352f37a6b04d7733d28c84494c3afd4 (diff) | |
| download | rust-3a225c77bba8576333924e7435493cb4d4e0cbaf.tar.gz rust-3a225c77bba8576333924e7435493cb4d4e0cbaf.zip | |
Rename FileMap::path and change to an Option
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index bd1d4241be0..65dabe98a06 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 = sess.codemap().span_to_path(parser.span); + parser.directory.path = sess.codemap().span_to_unmapped_path(parser.span); parser.directory.path.pop(); } |
