Conversation
|
This PR modifies cc @jieyouxu |
|
I'd rather not implement this in a way that only works with doctests. We can see the same problem with the regular compiler. Can't this be implemented in a way that applies everywhere? |
| for component in path.components().filter(|c| !matches!(c, Component::CurDir)) { | ||
| if matches!(component, Component::ParentDir) { | ||
| if beautiful_path.parent().is_none() { | ||
| return path.canonicalize().unwrap_or_else(|_| path.to_path_buf()); |
There was a problem hiding this comment.
Note for myself: remove this canonicalize.
I suppose I can. I'll move my |
|
☔ The latest upstream changes (presumably #143363) made this pull request unmergeable. Please resolve the merge conflicts. |
Fixes #130626.
r? @notriddle