-
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
Internal compiler error with lib is built by different rust version. #5833
Comments
Closing this since I have no idea how to reproduce it and the backtrace doesn't seem especially helpful. @sammykim, feel free to reopen if you're still hitting this. |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jul 26, 2020
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jul 26, 2020
…=yaahc Fix FP `useless_conversion` Fix rust-lang#5833. changelog: none
calebcartwright
pushed a commit
to calebcartwright/rust
that referenced
this issue
Oct 23, 2023
Fixes 5730 Previously rustfmt was attempting to slice a string with an invalid range (`start > end`), leading to the ICE. When formatting a macro transcriber snippet consisting of a lone semicolon, the snippet was being formatted into the empty string, leading the enclosing `fn main() {\n}` added by `format_code_block` to be formatted into `fn main() {}`. However, rustfmt was assuming that the enclosing function string's length had been left unchanged. This was leading to an invalid range being constructed when attempting to trim off the enclosing function. The fix is to just clamp the range's start to be less than or equal to the range's end, since if `end < start` there's nothing to iterate over anyway.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error message is
/home/sammy.kim/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f9fccedeea4]
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /home/yichoi/rust_stable4/src/librustc/rustc.rc:359
/home/sammy.kim/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f9fccede65b]
/home/sammy.kim/bin/../lib/librustrt.so(+0x2a249)[0x7f9fcceef249]
/home/sammy.kim/bin/../lib/librustrt.so(upcall_fail+0x198)[0x7f9fccee0458]
/home/sammy.kim/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0x10232b)[0x7f9fce95332b]
/home/sammy.kim/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0x1022d2)[0x7f9fce9532d2]
/home/sammy.kim/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(_ZN3sys12begin_unwind17_7cd364c41f10422f3_06E+0x71)[0x7f9fce89e2e1]
/home/sammy.kim/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so(+0x14c264)[0x7f9fce99d264]
/home/sammy.kim/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN7monitor17_bd76f93fc7c7a02f3_06E+0x2cf5)[0x7f9fcd94be45]
/home/sammy.kim/bin/../lib/librustc-c84825241471686d-0.6.so(+0x837004)[0x7f9fcd958004]
/home/sammy.kim/bin/../lib/librustc-c84825241471686d-0.6.so(_ZN4main16_706f4ee7413ae583_06E+0x7e)[0x7f9fcd957c1e]
/home/sammy.kim/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f9fccedeea4]
rust: domain main @0x1d00c20 root task failed
The text was updated successfully, but these errors were encountered: