-
Notifications
You must be signed in to change notification settings - Fork 13.3k
error!()
is too easily conflatable with fail!()
#7386
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
Comments
How about using |
Making log into a macro (...again...) would solve our earlier problem of needing to have Assuming that |
It's a wart yeah. Nominating. |
Sub-bug of #3309. De-nominating |
Going back to |
Nominating for backwards-compatible, error logging is something that while not used often should still be used occasionally. |
Actually, Thinking about this a bit further and looking at 20ab30fc583baeb87bb58bb369e97003a76a8a10 I think Some ideas: |
After doing a bit of research on this, I disagree with renaming
And that was just for an immediate search of "error log level". If at all it seems that we're missing the In my opinion, the stackoverflow answer to what the log levels mean is a good summary of what each one is and specifically why |
I agree with @alexcrichton . In the interest of avoiding gratuitous code churn, I'm closing this. |
Remove rustfmt bug workaround The bug is reportedly fixed. changelog: none
Before they were both macros, the name of this log level was defensible:
Nowadays, this is a wart in the making:
The other log level macros (info, warn, and debug) are fine. I really don't care what we replace error with, though I propose
alert!
if nobody has any sublime suggestions.The text was updated successfully, but these errors were encountered: