Compiler crashes on a piece of code that misses some parenthesis around a tuple contained in Result::Ok #94334
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I am doing deep modifications to an existing program that was not raising compilation issues.
It is not yet finished, it is probably not nice rust code, but I am reaching a point where it make crashe the compiler.
You can reproduce it with:
I have to admit that I do not really know how to guide more to find the reason. But I can make specific tests on request.
I would say it is realted to issue #94291
Code
Here is the problematic code:
When trying to reproducing it with this minimal example
The compiler does not crashes, but raises the following error:
If I add the missing pair of parenthesis for the tuple contained in Ok in my project, the compiler does not crashes anymore. (Maybe it means the bug is after the detection of these missing parenthesis).
Meta
rustc --version --verbose
:Error output
Backtrace
Additional Trace
The text was updated successfully, but these errors were encountered: