-
Notifications
You must be signed in to change notification settings - Fork 913
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
[unstable option] report_todo #3393
Comments
I'm unsure if this is the right place for these comments, but I love |
@tangmi Sorry for the late reply, but actually, this option is something that I would like to remove from rustfmt. This option is not related to formatting and can be replaced with other tools like |
@topecongiro Makes sense, based on rustfmt's scope, but sad to see it go. Being able to use |
Note that it has some eager behaviors today and catches structures and variables named |
I wonder if something changed (I haven't followed the history pre-crate split)? Here is where rustfmt matches on the "todo" string: rustfmt/rustfmt-core/rustfmt-lib/src/issues.rs Lines 123 to 137 in 1e9af9f
... and where it calls into that code:
It seems like in |
Reopening, 2.0 is not happening and current docs are still pointing to this issue. This has been implemented by clippy in the meantime: https://rust-lang.github.io/rust-clippy/master/#todo |
Thanks @karyon. Couple minor additions/tweaks, I don't want to convey that 2.0 will never happen, it's just increasingly unlikely that it will happen outside an entire Rust ecosystem 2.0, and certainly going to happen any time soon, refs #5018 Additionally, this option and the associated behavior is a bit different from the clippy lint, as rustfmt actually looks for textual I think there's still a strong argument for us to drop this from rustfmt (it's quite orthogonal to formatting of code) and we may still do so |
Going to close this because stabilization doesn't make sense given our intent to deprecate and remove the option, refs #5101 |
Tracking issue for report_todo
The text was updated successfully, but these errors were encountered: