Remove special cased OUT_DIR for `bench`, `test`, and `dev` profiles
Problem
Today, OUT_DIR for custom user profiles and the pre-included release profile uses the name of the profile. For example, for a custom performance profile, the path might look like this:
/code/core/target/performance/build/my-build-info-9f91ba6f99d7a061/out
But for the included bench profile, the path looks like this:
/code/core/target/performance/release/my-build-info-9f91ba6f99d7a061/out
You'd expect it to contain bench instead of release.
In this page in the Cargo docs, it says this is for historical reasons:
For historical reasons, the dev and test profiles are stored in the debug directory, and the release and bench profiles are stored in the release directory. User-defined profiles are stored in a directory with the same name as the profile.
Proposed Solution
The proposed solution is to remove the special casing and just use the profile name in all cases. This would make it easier to reliably get the profile name as part of the build, which is currently only possible by looking at OUT_DIR (e.g. like in this SO question).
Notes
No response