debug ice: E0061 with several fn arguments where 0 are expected #108249
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-debug-assertions
This issue requires a build of rustc or tooling with debug-assertions in some way
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
This triggers a debug assertion due to bad spans when more than one input is given to a function that expects none.
without debug assertions, this results in
I think under the hood rustc might try to generate empty spans for within the
()
where it suggests to remove the fn args..? Just a wild guess though 🤔Meta
rustc --version --verbose
:Error output
ice.log
The text was updated successfully, but these errors were encountered: