-
Notifications
You must be signed in to change notification settings - Fork 29
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
Heads-up: const_err lint is going away #68
Comments
The problem is that a false-positive error is triggered with the MSRV 1.38.0, see CI log from draft PR #69. cargo-bisect-rustc tells me that this was fixed in nightly-2020-02-21 (regression = success). So I can remove
|
Oh interesting, I didn't know/remember we had such false positives in the past. I hope they are fixed now (but I assume we would have heard about them otherwise^^). You could also remove the (Anyway your users are fine since all lints are capped to warnings for dependencies. Still AFAIK the usual advice is not to put |
That nightly was the first to ship with rust-lang/rust#69185, which split some things out of Looking at the code, this is indeed an unconditional panic, but inside dead code. This is another instance of the same issue. It is currently by-design and hard to fix but indeed somewhat unfortunate (and might be an argument for making the lint warn-by-default). Anyway I just wanted to make sure there is not some subtle bug in our diagnostics here that I did not know about. :) |
We can just use `.get_unsafe()` here. Drive-by-fix: clippy warning. Drive-by-fix: clippy warning. Fixes #68.
This crate carries a
allow(const_err)
. That lint is going away since it becomes a hard error, which causes a warning due to the removed lint being used, which then triggersdeny(warnings)
.The crate does not actually seem to trigger const_err (according to crater), so the hard error itself should not be a problem. The
allow(const_err)
can likely just be removed.The text was updated successfully, but these errors were encountered: