diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-12-13 12:04:27 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-12-13 12:04:27 -0800 |
| commit | 3c8dca429a9f8048227449cb9a5c5bb974c9891e (patch) | |
| tree | e0976310cd9e17cd425c4fe37812455e745c1e6d /src/libsyntax/parse | |
| parent | 0d59e86d808b4f01bf4a004941408529b91f7166 (diff) | |
| download | rust-3c8dca429a9f8048227449cb9a5c5bb974c9891e.tar.gz rust-3c8dca429a9f8048227449cb9a5c5bb974c9891e.zip | |
syntax: normalize paths when parsing, close #4173.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 625ff289607..0f1c3467625 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3023,6 +3023,7 @@ impl Parser { } else { prefix.push_many(path.components) }; + let full_path = full_path.normalize(); let p0 = new_sub_parser_from_file(self.sess, self.cfg, &full_path, id_sp); |
