Closed ShoyuVanilla closed 1 month ago
I'll try bisect some hours later this happens between debug
and release
profiles 🤔
We panic on some errors in development builds.
Oh, I see. I'll dig into this more. @rustbot claim
The code that calls bug
is in rustc_pattern_analysis
, which isn't robust to type errors. In other places we try to ignore them, see https://github.com/rust-lang/rust-analyzer/pull/17534.
The code that calls bug is in rustc_pattern_analysis, which isn't robust to type errors.
That's sad 😢
We are already doing mismatch checks for match exhaustiveness checking, we are probably not doing the same for checking let
statements?
Edit: At first, I thought that this was regression between lastest release and
HEAD
, but this happensdebug
but not onrelease
profile 🤔rust-analyzer version:
HEAD
ofmaster
branch,ffbc5ad993d5cd2f3b8bcf9a511165470944ab91
rustc version:
rustc 1.79.0 (129f3b996 2024-06-10)
code snippet to reproduce:
Running
rust-analyzer diagnostics
on the following code inffbc5ad993d5cd2f3b8bcf9a511165470944ab91
with debug profile panics with following;while running it on the same revision with release profile works just fine;