diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2023-02-12 15:59:57 +0800 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2023-02-14 01:47:12 +0800 |
| commit | b10d744b87fcaaeea1a2ec2a299dba494c1f3d82 (patch) | |
| tree | 1317a33741507ba44dd8e986d5e4e0e2f2d38480 /tests/rustdoc-js-std/parser-errors.js | |
| parent | b7089e0dd3e988270f34f182d3749ea5fff5a18f (diff) | |
| download | rust-b10d744b87fcaaeea1a2ec2a299dba494c1f3d82.tar.gz | |
Allow shortcuts to directories to be used for `./x.py fmt`
Fixes #107944.
Maximum recursive search depth is 3 and only accepts shortcuts for
directories (single component paths, such as `./x.py fmt std`). If
there are no shortcut candidates but single componenet path(s) are
given, it falls back to the previous behavior to panic with unable to
find directory. If there are multiple shortcut candidates for a given
single component path, the shortcut candidates are considered
ambiguous, are then ignored, and the single component path is accepted
as-is.
After this change, `./x.py fmt std` no longer panics and formats
`library/std` instead.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
