ICE related to non_exhaustive_omitted_patterns lint #89382
Labels
C-bug
Category: This is a bug.
F-non_exhaustive_omitted_patterns_lint
`#![feature(non_exhaustive_omitted_patterns_lint)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Just tried to update my toolchain from
nightly-2021-09-04
tonightly-2021-09-29
, and I now get an ICE in a project of mine when I runcargo check
.Code
I don't have a self-contained reproduction (though I can try to put one together if necessary). I see that the error is originating from the
non_exhaustive_omitted_patterns
lint introduced in 33a06b7 (cc @DevinR528), and the only pattern destructuring happening in theconvert_bulk_write_failure
function mentioned in the error is:In the version of the mongodb crate I am using (2.0.0-beta.3), this struct is defined as:
This makes me wonder if the compiler is getting confused by the
pub(crate)
visibility of the last field?Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: