This behavior is part of [spec](https://github.com/rust-lang/rfcs/blob/master/text/0474-path-reform.md#summary). https://github.com/rust-lang/rust/pull/23229 This makes the following code https://github.com/hyf0/sugar_path/blob/41fce88b6161694b1b533020a49e675ccb0f77d8/src/utils.rs#L29-L31 unreliable for detecting whether the dots are resolved.
This behavior is part of spec.
rust-lang/rust#23229
This makes the following code
sugar_path/src/utils.rs
Lines 29 to 31 in 41fce88
unreliable for detecting whether the dots are resolved.