Skip to content
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

ICE: unexpected panic, from using include! #33755

Closed
XAMPPRocky opened this issue May 20, 2016 · 0 comments
Closed

ICE: unexpected panic, from using include! #33755

XAMPPRocky opened this issue May 20, 2016 · 0 comments
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@XAMPPRocky
Copy link
Member

XAMPPRocky commented May 20, 2016

Source & travis

Rust and Cargo versions

rustc

rustc 1.8.0 (db2939409 2016-04-11)
binary: rustc
commit-hash: db2939409db26ab4904372c82492cd3488e4c44e
commit-date: 2016-04-11
host: x86_64-pc-windows-gnu
release: 1.8.0

cargo

cargo 0.9.0-nightly (8fc3fd8 2016-02-29)

Cargo output

       Fresh log v0.3.6
       Fresh strsim v0.4.0
       Fresh bitflags v0.5.0
       Fresh winapi v0.2.5
       Fresh byteorder v0.3.13
       Fresh serde v0.7.5
       Fresh vec_map v0.6.0
       Fresh unicode-width v0.1.3
       Fresh rustc-serialize v0.3.19
       Fresh unicode-xid v0.0.3
       Fresh num-traits v0.1.32
       Fresh winapi-build v0.1.1
       Fresh yaml-rust v0.3.2
       Fresh serde_cbor v0.3.3
       Fresh ansi_term v0.7.2
       Fresh glob v0.2.11
       Fresh maplit v0.1.3
       Fresh libc v0.2.11
       Fresh num-integer v0.1.32
       Fresh serde_yaml v0.2.4
       Fresh num_cpus v0.2.12
       Fresh clap v2.5.1
       Fresh rand v0.3.14
       Fresh num-iter v0.1.32
       Fresh deque v0.3.1
       Fresh num v0.1.32
       Fresh kernel32-sys v0.2.1
       Fresh rayon v0.3.1
       Fresh serde_json v0.7.0
       Fresh term v0.2.14
       Fresh walkdir v0.1.5
       Fresh syntex_syntax v0.32.0
       Fresh quasi v0.10.0
       Fresh syntex v0.32.0
       Fresh aster v0.16.0
       Fresh quasi_codegen v0.10.0
       Fresh serde_codegen v0.7.5
   Compiling tokei v2.0.0 (file:///G:/tokei)
     Running `rustc src\main.rs --crate-name tokei --crate-type bin -g --out-dir G:\tokei\target\debug --emit=dep-info,link -L dependency=G:\tokei\target\debug -L dependency=G:\tokei\target\debug\deps --extern serde_yaml=G:\tokei\target\debug\deps\libserde_yaml-aec1cf0b96372d9b.rlib --extern glob=G:\tokei\target\debug\deps\libglob-56b0dada2447425c.rlib --extern serde_cbor=G:\tokei\target\debug\deps\libserde_cbor-099643e460b70304.rlib --extern maplit=G:\tokei\target\debug\deps\libmaplit-24bbccea47e9bf98.rlib --extern rayon=G:\tokei\target\debug\deps\librayon-f2cc48d422c3d63f.rlib --extern serde_json=G:\tokei\target\debug\deps\libserde_json-68141e3d774cb4f5.rlib --extern clap=G:\tokei\target\debug\deps\libclap-b8a8db4cb0937db3.rlib --extern serde=G:\tokei\target\debug\deps\libserde-96ff8a07d3339467.rlib --extern walkdir=G:\tokei\target\debug\deps\libwalkdir-5df1332c1498b319.rlib`
G:\tokei\target\debug\build\tokei-4ee2578cf16d545b\out/main.rs:3283:54: 3283:65 error: mismatched types:
 expected `&mut collections::string::String`,
    found `&mut collections::vec::Vec<_>`
(expected struct `collections::string::String`,
    found struct `collections::vec::Vec`) [E0308]
G:\tokei\target\debug\build\tokei-4ee2578cf16d545b\out/main.rs:3283                         let _ = stdin.read_to_string(&mut buffer);
                                                                                                                         ^~~~~~~~~~~
src\main.rs:13:1: 13:48 note: in this expansion of include!
G:\tokei\target\debug\build\tokei-4ee2578cf16d545b\out/main.rs:3283:54: 3283:65 help: run `rustc --explain E0308` to see a detailed explanation
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'index out of bounds: the len is 542 but the index is 544', ../src/libcollections\vec.rs:1178
stack backtrace:
   0:         0x61cc34dc - strncmp
   1:         0x61cc2b5c - strncmp
   2:         0x61c84d6f - strncmp
   3:         0x61c855cb - strncmp
   4:         0x61cb8482 - strncmp
   5:         0x61cd8258 - strncmp
   6:         0x61cd845b - strncmp
   7:         0x67f6213e - strncmp
   8:         0x6804d53a - strncmp
   9:         0x6804a86d - strncmp
  10:         0x68046794 - strncmp
  11:         0x6803bb2c - strncmp
  12:          0x12f6a17 - strncmp
  13:          0x1320c6f - strncmp
  14:          0x131ff84 - strncmp
  15:          0x1332114 - strncmp
  16:          0x134785b - strncmp
  17:          0x136d944 - strncmp
  18:          0x136d9ee - strncmp
  19:          0x136dd08 - strncmp
  20:          0x12fcd13 - strncmp
  21:          0x132de3b - strncmp
  22:          0x13509ee - strncmp
  23:          0x12fcfae - strncmp
  24:          0x135089f - strncmp
  25:          0x1375a6d - strncmp
  26:          0x132e731 - strncmp
  27:          0x13476c9 - strncmp
  28:          0x136d944 - strncmp
  29:          0x136d9ee - strncmp
  30:          0x136dd08 - strncmp
  31:          0x12fcd13 - strncmp
  32:          0x135089f - strncmp
  33:          0x1375a6d - strncmp
  34:          0x132e731 - strncmp
  35:          0x1342c99 - strncmp
  36:          0x136dcdc - strncmp
  37:          0x12fcd13 - strncmp
  38:          0x12f3d90 - strncmp
  39:          0x12f053d - strncmp
  40:          0x12eb1a6 - strncmp
  41:          0x12deb58 - strncmp
  42:          0x12d5947 - strncmp
  43:         0x6b34a430 - strncmp
  44:         0x6b3488ac - strncmp
  45:         0x6b3455f7 - strncmp
  46:         0x6b317f4d - strncmp
  47:         0x6b306226 - strncmp
  48:         0x6b30376b - strncmp
  49:         0x61caf9ba - strncmp
  50:         0x6b30400c - strncmp
  51:         0x61cc1209 - strncmp
  52:     0x7fff379e8101 - strncmp

Could not compile `tokei`.

Caused by:
  Process didn't exit successfully: `rustc src\main.rs --crate-name tokei --crate-type bin -g --out-dir G:\tokei\target\debug --emit=dep-info,link -L dependency=G:\tokei\target\debug -L dependency=G:\tokei\target\debug\deps --extern serde_yaml=G:\tokei\target\debug\deps\libserde_yaml-aec1cf0b96372d9b.rlib --extern glob=G:\tokei\target\debug\deps\libglob-56b0dada2447425c.rlib --extern serde_cbor=G:\tokei\target\debug\deps\libserde_cbor-099643e460b70304.rlib --extern maplit=G:\tokei\target\debug\deps\libmaplit-24bbccea47e9bf98.rlib --extern rayon=G:\tokei\target\debug\deps\librayon-f2cc48d422c3d63f.rlib --extern serde_json=G:\tokei\target\debug\deps\libserde_json-68141e3d774cb4f5.rlib --extern clap=G:\tokei\target\debug\deps\libclap-b8a8db4cb0937db3.rlib --extern serde=G:\tokei\target\debug\deps\libserde-96ff8a07d3339467.rlib --extern walkdir=G:\tokei\target\debug\deps\libwalkdir-5df1332c1498b319.rlib` (exit code: 101)
@XAMPPRocky XAMPPRocky changed the title ICE: unexpected panic. ICE: unexpected panic, from using include! May 20, 2016
@nagisa nagisa added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) labels May 20, 2016
arielb1 pushed a commit to arielb1/rust that referenced this issue May 24, 2016
Refactor `FnCtxt::autoderef` to use an external iterator and to not
register any obligation from the main autoderef loop, but rather to
register them after (and if) the loop successfully completes.

Fixes rust-lang#24819
Fixes rust-lang#25801
Fixes rust-lang#27631
Fixes rust-lang#31258
Fixes rust-lang#31964
Fixes rust-lang#32320
Fixes rust-lang#33515
Fixes rust-lang#33755
Manishearth added a commit to Manishearth/rust that referenced this issue May 28, 2016
refactor autoderef to avoid prematurely registering obligations

Refactor `FnCtxt::autoderef` to use an external iterator and to not
register any obligation from the main autoderef loop, but rather to
register them after (and if) the loop successfully completes.

Fixes rust-lang#24819
Fixes rust-lang#25801
Fixes rust-lang#27631
Fixes rust-lang#31258
Fixes rust-lang#31964
Fixes rust-lang#32320
Fixes rust-lang#33515
Fixes rust-lang#33755

r? @eddyb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants