-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
only string and byte strings supported in compare_values #26989
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Minimized: fn main() {
match (0, 0) {
(0, ref _a) => {}
(_, 0) => {}
_ => {}
}
} |
Aatch
added
the
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
label
Jul 13, 2015
Wierd, just swapping the first two arms causes it to start compiling again... fn main() {
match (0, 0) {
(_, 0) => {}
(0, ref _a) => {}
_ => {}
}
} |
eefriedman
added a commit
to eefriedman/rust
that referenced
this issue
Jul 15, 2015
The old code was not well structured, difficult to understand, and buggy. The new implementation is completely naive, so there may be a slight runtime performance loss. That said, adding optimizations on top of a clear and correct implementation seems easier than trying to fix the old mess. Fixes issue rust-lang#19064. Fixes issue rust-lang#26989. Fixes issue rust-lang#26251. Fixes issue rust-lang#18060. Fixes issue rust-lang#24875. Fixes issue rust-lang#23311. Fixes issue rust-lang#20046.
Closed
This ICE seems to be fixed on
I have a hunch that this is due to MIR being turned on, though I'm not sure. Please let me know if this still ICEs for you, but closing for now 🎊 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I try to compile my code, the compiler fails with "only string and byte strings supported in compare_values";.
My code:
I am learning the language, so I don't know if this really is a bug.
Here the backtrace:
The text was updated successfully, but these errors were encountered: