-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #6259 - ordovicia:user-alias-override, r=ehuss
Allow user aliases to override built-in aliases This PR allows user-defined aliases take precedence over built-in ones, with a warning that tells there exists a built-in alias. This PR does not allow user aliases override built-in subcommands. ```console $ cat .cargo/config [alias] b = "fetch" build = "fetch" $ ./target/debug/cargo b warning: user-defined alias `b` overrides a built-in alias for `build` $ ./target/debug/cargo build warning: user-defined alias `build` is ignored, because it is shadowed by a built-in command Compiling proc-macro2 v0.4.19 Compiling unicode-xid v0.1.0 Compiling cc v1.0.25 (snip) ``` In the current version of Cargo, user aliases cannot override built-in aliases. This behavior is keeping us from safely adding new built-in aliases without interfering existing user config. Merging this PR will allow that. Fixes #6221 Relating to #6218
- Loading branch information
Showing
6 changed files
with
71 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters