-
Notifications
You must be signed in to change notification settings - Fork 889
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
config printing enhancements #6256
Comments
This could technically be obtained via the existing However, I would be firmly opposed to modifying the existing behavior of the
One example of the confusing behavior relates to RFC 3338 which dictates that:
which means that, unless a style edition is otherwise explicitly specified, today the output of however, the inclusion of RFC 3338 meaning that the in my opinion, the best path forward to support this would be a new variant on the |
This seems useful as well, though it's also something I'd prefer to see as a net new variant/feature instead of trying to mash it into one of the existing ones |
rustfmt currently provides the ability to print configuration details in various forms:
default
(documented briefly here) which dumps the full set of configuration options with their default values, regardless any existing detected or specified configuration inputscurrent
- dumps the configuration incorporating specified and detected values (e.g. any additionally included command line flags, detected configuration files, etc.)minimal
- the subset of the configurations fromcurrent
that are actively utilized when formatting some specified input code/file (the primary use case for this is to help users locate unused/inoperable options and to be able to remove them from their rustfmt config file)in #6247 there was some discussion about potential enhancements to this current configuration printing feature, and I'd suggest there's two potential (non mutually exclusive) items we could consider:
The text was updated successfully, but these errors were encountered: