We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am getting an ICE when trying to use a generic extern function (tested with the toolchain at a9247e0):
rust: task failed at 'assertion failed: !ty::type_has_params(t)', /home/siege/src/rust2/src/librustc/middle/trans/common.rs:1372
Sample code to trigger the error:
extern fn RustCallback<T>() { let t : T; } fn main() { }
Stacktrace:
/usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f85875f9c8b] /usr/local/bin/../lib/librustrt.so(+0x2aa79)[0x7f858760aa79] /usr/local/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x7f85875fba78] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0x10911b)[0x7f85891cf11b] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0x1090c2)[0x7f85891cf0c2] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(_ZN3sys12begin_unwind17_61fe198059b9e3fc6_07preE+0x71)[0x7f8589115601] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(_ZN3sys11fail_assert17_10b61817f19c764b6_07preE+0x21d)[0x7f858911ec8d] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6common17monomorphize_type17_17576497a9b53f186_07preE+0x1c9)[0x7f8587a62ca9] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans6common12node_id_type17_c6b9ecdeff5b38ec6_07preE+0x79)[0x7f8587a2b689] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base11alloc_local17_e51928963deee6fa6_07preE+0xb8)[0x7f85879a8778] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x16c5e1)[0x7f85879a85e1] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x2770d0)[0x7f8587ab30d0] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans11controlflow11trans_block17_a07ed9488587816c6_07preE+0x12e)[0x7f85879a75ee] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base13trans_closure16_e3ba18151419fb26_07preE+0x744)[0x7f8587ab9c24] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base8trans_fn15_f3bb06a593a3536_07preE+0x536)[0x7f858795d6e6] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans7foreign16trans_foreign_fn17_e229b3339a411ada6_07preE+0x2d4)[0x7f8587abf484] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base10trans_item17_e83b64764568c7be6_07preE+0x810)[0x7f8587954c80] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base9trans_mod17_d740d055c716f9476_07preE+0xa3)[0x7f8587ac03d3] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6middle5trans4base11trans_crate15_4f38ab124cab2e6_07preE+0x13c4)[0x7f8587ae03e4] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x8ddce4)[0x7f8588119ce4] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x89b8b0)[0x7f85880d78b0] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6driver6driver12compile_rest15_58068714615f2b6_07preE+0x336a)[0x7f85880d490a] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x8ddce4)[0x7f8588119ce4] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6driver6driver12compile_upto17_3ccd839185751c4f6_07preE+0x108)[0x7f85880d7ac8] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN6driver6driver13compile_input17_7bc345e59d22cba06_07preE+0xca)[0x7f85880d7f0a] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(_ZN12run_compiler16_aa88c3dc13843746_07preE+0x20a0)[0x7f858810a720] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x8db691)[0x7f8588117691] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x8d7bba)[0x7f8588113bba] /usr/local/bin/../lib/librustc-c84825241471686d-0.7-pre.so(+0x8ddce4)[0x7f8588119ce4] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0xd0fbf)[0x7f8589196fbf] /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.7-pre.so(+0x152264)[0x7f8589218264] /usr/local/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f85875fa4d4]
The text was updated successfully, but these errors were encountered:
Same as #3171.
Sorry, something went wrong.
Lint push_str with a single-character string literal
push_str
72d2c2e
Fixes rust-lang#5875
Auto merge of rust-lang#5881 - wiomoc:feature/single-char-push_str, r…
c8e05fc
…=ebroto,flip1995 Lint `push_str` with a single-character string literal Fixes rust-lang#5875 changelog: `* [single_char_push_str]`
No branches or pull requests
I am getting an ICE when trying to use a generic extern function (tested with the toolchain at a9247e0):
rust: task failed at 'assertion failed: !ty::type_has_params(t)', /home/siege/src/rust2/src/librustc/middle/trans/common.rs:1372
Sample code to trigger the error:
Stacktrace:
The text was updated successfully, but these errors were encountered: