Closed
Description
In #2694 it seems that our handling of the env::args()
is problematic in some environments like windows. The first item is skipped which is usually the executable name, but not always:
The first element is traditionally the path of the executable, but it can be set to arbitrary text, and may not even exist. This means this property should not be relied upon for security purposes.
Since this logic is used in the binaries shipped with rustfmt, it could be better to use another library like clap
where that is not needed (I think).