-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
With allow(const_err)
, diagnostics are not very helpful
#65597
Comments
We could add a rust/src/librustc/mir/interpret/error.rs Line 126 in e5b8c11
Then we can add a note to the |
I met this issue when I try to write for embedded devices, for example we need to generate PLL configurations from frequencies set and there could be no solution in some situations where a panic should be fired. After this issue being solved we can write more abstract in embedded rust crates. |
@luojia65 the issue only applies when you do |
The "hard error" option in #71800 would solve this. |
Current output:
|
Consider:
This deref's a dangling pointer, but due to
allow(const_err)
the only diagnostic we get isMaking this an allowable lint is not very helpful when later follow-on errors are hard errors.
The text was updated successfully, but these errors were encountered: