Skip to content

Commit 3c8dca4

Browse files
committed
syntax: normalize paths when parsing, close #4173.
1 parent 0d59e86 commit 3c8dca4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3023,6 +3023,7 @@ impl Parser {
30233023
} else {
30243024
prefix.push_many(path.components)
30253025
};
3026+
let full_path = full_path.normalize();
30263027
let p0 =
30273028
new_sub_parser_from_file(self.sess, self.cfg,
30283029
&full_path, id_sp);

0 commit comments

Comments
 (0)