Fix path parsing
auto merge of #10420 : sanxiyn/rust/path, r=cmr

Fix #10283.