Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow shortcuts to directories to be used for ./x.py fmt #107948

Merged
merged 1 commit into from
Feb 14, 2023

Commits on Feb 13, 2023

  1. Allow shortcuts to directories to be used for ./x.py fmt

    Fixes rust-lang#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.
    jieyouxu committed Feb 13, 2023
    Configuration menu
    Copy the full SHA
    b10d744 View commit details
    Browse the repository at this point in the history