-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Suppress dbg! in release build #58383
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
This was discussed in the RFC: rust-lang/rfcs#2361 |
I'm a fan of leaving this as-is -- I used Maybe it would make sense for the |
We already do that, https://doc.rust-lang.org/nightly/std/macro.dbg.html -- but it could use some linkification and elaboration... |
If there are no people that are willing to pick this up, I don't mind picking this up!
If I have a wrong view of this or if anyone else wants to pick this up, please let me know! |
This is already the case.
This remains to be done. |
…ntril Improve the dbg! macro docs # Description As stated has been discussed in rust-lang#58383 the docs do not clearly state why it is useful to have the option to use `dbg!` in release builds as well. This PR should change that. closes rust-lang#58383
I'm hesitant to open this issue, because I suspect it has an obvious answer that I'm missing.
Anyway...
I love the new dbg! macro in 1.32.0. But, given that its purpose is outputting debugging messages, should its output be suppressed in a project's release build? (cargo build --release)
The text was updated successfully, but these errors were encountered: