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

nightly-2023-03-16 fails to compile bincode: "add_outlives_bounds: unexpected regions" #109199

Closed
asampal opened this issue Mar 16, 2023 · 7 comments · Fixed by #109183
Closed
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ P-critical Critical priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@asampal
Copy link

asampal commented Mar 16, 2023

Trying to install the latest version of nushell, 0.77, fails with compiler error

cargo install nu --features=extra

Meta

rustc --version --verbose:

rustc 1.70.0-nightly (ab654863c 2023-03-15)
binary: rustc
commit-hash: ab654863c3d50482f260cf862647f1fe0ff5e010
commit-date: 2023-03-15
host: x86_64-unknown-linux-gnu
release: 1.70.0-nightly
LLVM version: 15.0.7

Error output

xxx@xxxxxxxx:~$ cargo install nu --features=extra
    Updating crates.io index
  Downloaded nu v0.77.0
  Downloaded 1 crate (256.2 KB) in 0.23s
  Installing nu v0.77.0
    Updating crates.io index
  Downloaded ahash v0.7.6
  Downloaded dirs-next v2.0.0
  Downloaded base64 v0.13.1
  Downloaded crypto-common v0.1.6
  Downloaded crc32fast v1.3.2
  Downloaded mio-extras v2.0.6
  Downloaded minimal-lexical v0.2.1
  Downloaded bincode v1.3.3
  Downloaded cpufeatures v0.2.5
  Downloaded bytesize v1.2.0
  Downloaded crossbeam-utils v0.8.15
  Downloaded arrayvec v0.5.2
  Downloaded dirs-sys-next v0.1.2
  Downloaded bitflags v1.3.2
  Downloaded miniz_oxide v0.6.2
  Downloaded fallible-streaming-iterator v0.1.9
  Downloaded crossbeam-channel v0.5.7
  Downloaded mime_guess v2.0.4
  Downloaded rand_chacha v0.3.1
  Downloaded cassowary v0.3.0
  Downloaded quote v1.0.26
  Downloaded codepage v0.1.1
  Downloaded notify v4.0.17
  Downloaded htmlescape v0.3.1
  Downloaded rayon-core v1.11.0
  Downloaded memchr v2.5.0
  Downloaded erased-serde v0.3.25
  Downloaded rand v0.8.5
  Downloaded ansitok v0.2.0
  Downloaded const_format v0.2.30
  Downloaded byte-unit v4.0.19
  Downloaded console v0.15.5
  Downloaded memoffset v0.8.0
  Downloaded lru v0.9.0
  Downloaded md-5 v0.10.5
  Downloaded regex v1.7.1
  Downloaded serde_derive v1.0.156
  Downloaded rmp v0.8.11
  Downloaded rusqlite v0.28.0
  Downloaded smallvec v1.10.0
  Downloaded strum v0.24.1
  Downloaded strip-ansi-escapes v0.1.1
  Downloaded terminal_size v0.1.17
  Downloaded tinyvec_macros v0.1.1
  Downloaded generic-array v0.14.6
  Downloaded autocfg v1.1.0
  Downloaded toml_datetime v0.6.1
  Downloaded thread_local v1.1.7
  Downloaded phf_generator v0.11.1
  Downloaded nu-cmd-lang v0.77.0
  Downloaded nu-cli v0.77.0
  Downloaded toml_edit v0.19.7
  Downloaded titlecase v2.2.1
  Downloaded unicode-normalization v0.1.22
  Downloaded unicode-segmentation v1.10.1
  Downloaded unicode-xid v0.2.4
  Downloaded unicase v2.6.0
  Downloaded ghost v0.1.8
  Downloaded vte_generate_state_changes v0.1.1
  Downloaded nu-plugin v0.77.0
  Downloaded users v0.10.0
  Downloaded xmlparser v0.13.5
  Downloaded uuid v1.3.0
  Downloaded iovec v0.1.4
  Downloaded roxmltree v0.18.0
  Downloaded rayon v1.7.0
  Downloaded fs_extra v1.3.0
  Downloaded is_ci v1.1.1
  Downloaded inotify v0.7.1
  Downloaded alphanumeric-sort v1.5.0
  Downloaded hashlink v0.8.1
  Downloaded fallible-iterator v0.2.0
  Downloaded iana-time-zone v0.1.53
  Downloaded fancy-regex v0.11.0
  Downloaded inotify-sys v0.1.5
  Downloaded ansi-str v0.5.0
  Downloaded crossterm v0.24.0
  Downloaded is_executable v1.0.1
  Downloaded unsafe-libyaml v0.2.7
  Downloaded utf8-width v0.1.6
  Downloaded thiserror-impl v1.0.39
  Downloaded signal-hook-registry v1.4.1
  Downloaded thiserror v1.0.39
  Downloaded slab v0.4.8
  Downloaded which v4.4.0
  Downloaded time v0.3.20
  Downloaded version_check v0.9.4
  Downloaded unicode-ident v1.0.8
  Downloaded serde v1.0.156
  Downloaded openssl v0.10.46
  Downloaded hashbrown v0.12.3
  Downloaded serde_json v1.0.94
  Downloaded regex-automata v0.1.10
  Downloaded ureq v2.6.2
  Downloaded is_debug v1.0.1
  Downloaded nu-pretty-hex v0.77.0
  Downloaded json_to_table v0.3.1
  Downloaded chrono-humanize v0.2.2
  Downloaded vcpkg v0.2.15
  Downloaded cfg-if v0.1.10
  Downloaded tabled_derive v0.5.0
  Downloaded nu-explore v0.77.0
  Downloaded syn v1.0.109
  Downloaded nom-supreme v0.8.0
  Downloaded rust_decimal v1.29.0
  Downloaded sysinfo v0.28.2
  Downloaded nu-utils v0.77.0
  Downloaded url v2.3.1
  Downloaded nu-ansi-term v0.47.0
  Downloaded vte v0.10.1
  Downloaded time-core v0.1.0
  Downloaded time v0.1.45
  Downloaded walkdir v2.3.2
  Downloaded time-macros v0.2.8
  Downloaded mio v0.8.6
  Downloaded io-lifetimes v1.0.6
  Downloaded rustversion v1.0.12
  Downloaded pathdiff v0.2.1
  Downloaded owo-colors v3.5.0
  Downloaded zip v0.6.4
  Downloaded winnow v0.3.6
  Downloaded tabled v0.10.0
  Downloaded wax v0.5.0
  Downloaded supports-unicode v2.0.0
  Downloaded rustix v0.36.9
  Downloaded openssl-sys v0.9.81
  Downloaded rust-embed v6.6.0
  Downloaded proc-macro2 v1.0.52
  Downloaded typenum v1.16.0
  Downloaded mio v0.6.23
  Downloaded miette v5.6.0
  Downloaded nu-table v0.77.0
  Downloaded lscolors v0.12.0
  Downloaded pure-rust-locales v0.5.6
  Downloaded lazy_static v1.4.0
  Downloaded indent_write v2.2.0
  Downloaded regex-syntax v0.6.28
  Downloaded quick-xml v0.25.0
  Downloaded parse-zoneinfo v0.3.0
  Downloaded parking_lot_core v0.9.7
  Downloaded nom v7.1.3
  Downloaded rand_core v0.6.4
  Downloaded miette-derive v5.6.0
  Downloaded nu-glob v0.77.0
  Downloaded libc v0.2.140
  Downloaded quick-xml v0.27.1
  Downloaded procfs v0.15.1
  Downloaded serde_urlencoded v0.7.1
  Downloaded ryu v1.0.13
  Downloaded open v3.4.0
  Downloaded net2 v0.2.38
  Downloaded native-tls v0.2.11
  Downloaded openssl-probe v0.1.5
  Downloaded openssl-macros v0.1.0
  Downloaded proc-macro-error v1.0.4
  Downloaded proc-macro-error-attr v1.0.4
  Downloaded powierza-coefficient v1.0.2
  Downloaded shell-words v1.1.0
  Downloaded nu-parser v0.77.0
  Downloaded nu-json v0.77.0
  Downloaded pwd v1.4.0
  Downloaded print-positions v0.6.1
  Downloaded nu-protocol v0.77.0
  Downloaded bstr v0.2.17
  Downloaded portable-atomic v0.3.19
  Downloaded csv v1.2.1
  Downloaded nu-command v0.77.0
  Downloaded nix v0.26.2
  Downloaded phf_shared v0.11.1
  Downloaded linux-raw-sys v0.1.4
  Downloaded mime v0.3.16
  Downloaded encoding_rs v0.8.32
  Downloaded num_threads v0.1.6
  Downloaded num_cpus v1.15.0
  Downloaded pori v0.0.0
  Downloaded papergrid v0.7.1
  Downloaded ppv-lite86 v0.2.17
  Downloaded phf_codegen v0.11.1
  Downloaded nu-path v0.77.0
  Downloaded idna v0.3.0
  Downloaded percent-encoding v2.2.0
  Downloaded dialoguer v0.10.3
  Downloaded chrono v0.4.24
  Downloaded static_assertions v1.1.0
  Downloaded phf v0.11.1
  Downloaded trash v3.0.1
  Downloaded serde_yaml v0.9.19
  Downloaded once_cell v1.17.1
  Downloaded dtparse v1.3.0
  Downloaded rust-embed-impl v6.5.0
  Downloaded nu-term-grid v0.77.0
  Downloaded brownstone v3.0.0
  Downloaded sha2 v0.10.6
  Downloaded filetime v0.2.20
  Downloaded bytecount v0.6.3
  Downloaded nu-color-config v0.77.0
  Downloaded nu-system v0.77.0
  Downloaded is-root v0.1.2
  Downloaded ahash v0.8.3
  Downloaded filesize v0.2.0
  Downloaded crossterm v0.25.0
  Downloaded crossbeam-epoch v0.9.14
  Downloaded inventory v0.3.4
  Downloaded hashbrown v0.13.2
  Downloaded unicode-bidi v0.3.11
  Downloaded itoa v1.0.6
  Downloaded foreign-types v0.3.2
  Downloaded utf8parse v0.2.1
  Downloaded scopeguard v1.1.0
  Downloaded foreign-types-shared v0.1.1
  Downloaded digest v0.10.6
  Downloaded form_urlencoded v1.1.0
  Downloaded same-file v1.0.6
  Downloaded libsqlite3-sys v0.25.2
  Downloaded paste v1.0.12
  Downloaded num-traits v0.2.15
  Downloaded indexmap v1.9.2
  Downloaded heck v0.4.1
  Downloaded fuzzy-matcher v0.3.7
  Downloaded umask v2.0.0
  Downloaded simplelog v0.12.1
  Downloaded signal-hook v0.3.15
  Downloaded hex v0.4.3
  Downloaded sys-locale v0.2.4
  Downloaded smawk v0.3.1
  Downloaded shadow-rs v0.21.0
  Downloaded rust-embed-utils v7.5.0
  Downloaded indicatif v0.17.3
  Downloaded calamine v0.19.1
  Downloaded ansi-str v0.7.2
  Downloaded users v0.11.0
  Downloaded fnv v1.0.7
  Downloaded lock_api v0.4.9
  Downloaded reedline v0.17.0
  Downloaded tui v0.19.0
  Downloaded itertools v0.10.5
  Downloaded unicode-width v0.1.10
  Downloaded toml v0.7.3
  Downloaded typetag-impl v0.2.6
  Downloaded typetag v0.2.6
  Downloaded num-integer v0.1.45
  Downloaded unicode-linebreak v0.1.4
  Downloaded serde_spanned v0.6.1
  Downloaded parking_lot v0.12.1
  Downloaded nu-engine v0.77.0
  Downloaded pkg-config v0.3.26
  Downloaded is-terminal v0.4.4
  Downloaded byteorder v1.4.3
  Downloaded arrayvec v0.7.2
  Downloaded textwrap v0.15.2
  Downloaded chrono-tz v0.8.1
  Downloaded bit-vec v0.6.3
  Downloaded joinery v2.1.0
  Downloaded log v0.4.17
  Downloaded tinyvec v1.6.0
  Downloaded terminal_size v0.2.5
  Downloaded supports-hyperlinks v2.0.0
  Downloaded bit-set v0.5.3
  Downloaded termcolor v1.1.3
  Downloaded supports-color v2.0.0
  Downloaded strum_macros v0.24.3
  Downloaded rmp-serde v1.1.1
  Downloaded lazycell v1.3.0
  Downloaded ctor v0.1.26
  Downloaded linked-hash-map v0.5.6
  Downloaded fd-lock v3.0.10
  Downloaded siphasher v0.3.10
  Downloaded signal-hook-mio v0.2.3
  Downloaded num-format v0.4.4
  Downloaded number_prefix v0.4.0
  Downloaded cc v1.0.79
  Downloaded getrandom v0.2.8
  Downloaded crossbeam-deque v0.8.3
  Downloaded csv-core v0.1.10
  Downloaded cfg-if v1.0.0
  Downloaded flate2 v1.0.25
  Downloaded const_format_proc_macros v0.2.29
  Downloaded Inflector v0.11.4
  Downloaded aho-corasick v0.7.20
  Downloaded either v1.8.1
  Downloaded block-buffer v0.10.4
  Downloaded adler v1.0.2
  Downloaded atty v0.2.14
  Downloaded base64 v0.21.0
  Downloaded ctrlc v3.2.5
  Downloaded chrono-tz-build v0.1.0
  Downloaded 286 crates (24.1 MB) in 1.91s (largest was `libsqlite3-sys` at 4.8 MB)
   Compiling libc v0.2.140
   Compiling proc-macro2 v1.0.52
   Compiling quote v1.0.26
   Compiling unicode-ident v1.0.8
   Compiling cfg-if v1.0.0
   Compiling version_check v0.9.4
   Compiling autocfg v1.1.0
   Compiling syn v1.0.109
   Compiling memchr v2.5.0
   Compiling serde_derive v1.0.156
   Compiling serde v1.0.156
   Compiling bitflags v1.3.2
   Compiling log v0.4.17
   Compiling once_cell v1.17.1
   Compiling ahash v0.7.6
   Compiling num-traits v0.2.15
   Compiling scopeguard v1.1.0
   Compiling getrandom v0.2.8
   Compiling io-lifetimes v1.0.6
   Compiling itoa v1.0.6
   Compiling rustix v0.36.9
   Compiling aho-corasick v0.7.20
   Compiling vte_generate_state_changes v0.1.1
   Compiling linux-raw-sys v0.1.4
   Compiling regex-syntax v0.6.28
   Compiling arrayvec v0.5.2
   Compiling utf8parse v0.2.1
   Compiling unicode-width v0.1.10
   Compiling smallvec v1.10.0
   Compiling vte v0.10.1
   Compiling lock_api v0.4.9
   Compiling regex v1.7.1
   Compiling num-integer v0.1.45
   Compiling typenum v1.16.0
   Compiling signal-hook v0.3.15
   Compiling parking_lot_core v0.9.7
   Compiling signal-hook-registry v1.4.1
   Compiling mio v0.8.6
   Compiling time v0.1.45
   Compiling generic-array v0.14.6
   Compiling iana-time-zone v0.1.53
   Compiling arrayvec v0.7.2
   Compiling pure-rust-locales v0.5.6
   Compiling signal-hook-mio v0.2.3
   Compiling parking_lot v0.12.1
   Compiling hashbrown v0.12.3
   Compiling ryu v1.0.13
   Compiling crossbeam-utils v0.8.15
   Compiling thiserror v1.0.39
   Compiling thiserror-impl v1.0.39
   Compiling memoffset v0.8.0
   Compiling minimal-lexical v0.2.1
   Compiling nom v7.1.3
   Compiling chrono v0.4.24
   Compiling indexmap v1.9.2
   Compiling crossbeam-epoch v0.9.14
   Compiling serde_json v1.0.94
   Compiling heck v0.4.1
   Compiling either v1.8.1
   Compiling cc v1.0.79
   Compiling pkg-config v0.3.26
   Compiling crossterm v0.24.0
   Compiling unicode-linebreak v0.1.4
   Compiling is-terminal v0.4.4
   Compiling ahash v0.8.3
   Compiling rustversion v1.0.12
   Compiling strip-ansi-escapes v0.1.1
   Compiling erased-serde v0.3.25
   Compiling rayon-core v1.11.0
   Compiling crossbeam-deque v0.8.3
   Compiling lscolors v0.12.0
   Compiling crossbeam-channel v0.5.7
   Compiling num-format v0.4.4
   Compiling ctor v0.1.26
   Compiling ghost v0.1.8
   Compiling num_cpus v1.15.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling sys-locale v0.2.4
   Compiling byteorder v1.4.3
   Compiling is_ci v1.1.1
   Compiling smawk v0.3.1
   Compiling bit-vec v0.6.3
   Compiling textwrap v0.15.2
   Compiling inventory v0.3.4
   Compiling supports-color v2.0.0
   Compiling nu-utils v0.77.0
   Compiling bit-set v0.5.3
   Compiling strum_macros v0.24.3
   Compiling hashbrown v0.13.2
   Compiling supports-unicode v2.0.0
   Compiling supports-hyperlinks v2.0.0
   Compiling ansitok v0.2.0
   Compiling typetag-impl v0.2.6
   Compiling miette-derive v5.6.0
   Compiling dirs-sys-next v0.1.2
   Compiling terminal_size v0.1.17
   Compiling proc-macro-error v1.0.4
   Compiling owo-colors v3.5.0
   Compiling utf8-width v0.1.6
   Compiling strum v0.24.1
   Compiling lazy_static v1.4.0
   Compiling byte-unit v4.0.19
   Compiling dirs-next v2.0.0
   Compiling typetag v0.2.6
   Compiling lru v0.9.0
   Compiling rayon v1.7.0
   Compiling miette v5.6.0
   Compiling fancy-regex v0.11.0
   Compiling chrono-humanize v0.2.2
   Compiling pwd v1.4.0
   Compiling unicode-xid v0.2.4
   Compiling time-core v0.1.0
   Compiling paste v1.0.12
   Compiling const_format_proc_macros v0.2.29
   Compiling sysinfo v0.28.2
   Compiling nu-path v0.77.0
   Compiling nu-protocol v0.77.0
   Compiling ansi-str v0.5.0
   Compiling siphasher v0.3.10
   Compiling bytecount v0.6.3
   Compiling crc32fast v1.3.2
   Compiling nu-glob v0.77.0
   Compiling fnv v1.0.7
   Compiling papergrid v0.7.1
   Compiling phf_shared v0.11.1
   Compiling tabled_derive v0.5.0
   Compiling openssl-sys v0.9.81
   Compiling unicase v2.6.0
   Compiling adler v1.0.2
   Compiling nu-ansi-term v0.47.0
   Compiling rand_core v0.6.4
   Compiling miniz_oxide v0.6.2
   Compiling rand v0.8.5
   Compiling nu-engine v0.77.0
   Compiling tabled v0.10.0
   Compiling rmp v0.8.11
   Compiling itertools v0.10.5
   Compiling linked-hash-map v0.5.6
   Compiling tinyvec_macros v0.1.1
   Compiling percent-encoding v2.2.0
   Compiling vcpkg v0.2.15
   Compiling tinyvec v1.6.0
   Compiling nu-json v0.77.0
   Compiling flate2 v1.0.25
   Compiling libsqlite3-sys v0.25.2
   Compiling rmp-serde v1.1.1
   Compiling phf_generator v0.11.1
   Compiling block-buffer v0.10.4
   Compiling crypto-common v0.1.6
   Compiling bincode v1.3.3
   Compiling slab v0.4.8
error: internal compiler error: /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/compiler/rustc_infer/src/infer/outlives/env.rs:145:26: add_outlives_bounds: unexpected regions

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/compiler/rustc_errors/src/lib.rs:1644:9
stack backtrace:
   0:     0x7f74b472a50a - std::backtrace_rs::backtrace::libunwind::trace::hca5b94e57c77ccf5
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f74b472a50a - std::backtrace_rs::backtrace::trace_unsynchronized::h5b5fce74d82f8778
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f74b472a50a - std::sys_common::backtrace::_print_fmt::ha47e7aaa1d2225ec
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7f74b472a50a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::ha1aaba92be89501b
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f74b478db3e - core::fmt::write::h750a8e721825859f
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/core/src/fmt/mod.rs:1232:17
   5:     0x7f74b471d375 - std::io::Write::write_fmt::hbf6015e32697f7ba
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/std/src/io/mod.rs:1684:15
   6:     0x7f74b472a2d5 - std::sys_common::backtrace::_print::h301c6b6cac7c0a3a
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7f74b472a2d5 - std::sys_common::backtrace::print::h7f921f37b0542aab
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7f74b472d04f - std::panicking::default_hook::{{closure}}::ha1e8e5c596b5be71
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/std/src/panicking.rs:271:22
   9:     0x7f74b472cd8b - std::panicking::default_hook::hb0497d64ba7aeb9b
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/std/src/panicking.rs:290:9
  10:     0x7f74b7a28475 - rustc_driver_impl[190cb2184ae08abb]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7f74b472d88d - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h5fe0c368b54c8ed7
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/alloc/src/boxed.rs:2002:9
  12:     0x7f74b472d88d - std::panicking::rust_panic_with_hook::hde905c542c1ea61a
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/std/src/panicking.rs:696:13
  13:     0x7f74b7f8d161 - std[75e4c6f671155ce4]::panicking::begin_panic::<rustc_errors[bdf389fe3f70d25b]::ExplicitBug>::{closure#0}
  14:     0x7f74b7f88876 - std[75e4c6f671155ce4]::sys_common::backtrace::__rust_end_short_backtrace::<std[75e4c6f671155ce4]::panicking::begin_panic<rustc_errors[bdf389fe3f70d25b]::ExplicitBug>::{closure#0}, !>
  15:     0x7f74b7f856e6 - std[75e4c6f671155ce4]::panicking::begin_panic::<rustc_errors[bdf389fe3f70d25b]::ExplicitBug>
  16:     0x7f74b7fda606 - std[75e4c6f671155ce4]::panic::panic_any::<rustc_errors[bdf389fe3f70d25b]::ExplicitBug>
  17:     0x7f74b7fd6e26 - <rustc_errors[bdf389fe3f70d25b]::HandlerInner>::bug::<&alloc[dd66e831cb8c4684]::string::String>
  18:     0x7f74b7fd6af0 - <rustc_errors[bdf389fe3f70d25b]::Handler>::bug::<&alloc[dd66e831cb8c4684]::string::String>
  19:     0x7f74b7fc2f9b - rustc_middle[d8dcb3e1f9b6a1d3]::util::bug::opt_span_bug_fmt::<rustc_span[e39f9d1da20fb520]::span_encoding::Span>::{closure#0}
  20:     0x7f74b7fc18ea - rustc_middle[d8dcb3e1f9b6a1d3]::ty::context::tls::with_opt::<rustc_middle[d8dcb3e1f9b6a1d3]::util::bug::opt_span_bug_fmt<rustc_span[e39f9d1da20fb520]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  21:     0x7f74b7fc18b6 - rustc_middle[d8dcb3e1f9b6a1d3]::ty::context::tls::with_context_opt::<rustc_middle[d8dcb3e1f9b6a1d3]::ty::context::tls::with_opt<rustc_middle[d8dcb3e1f9b6a1d3]::util::bug::opt_span_bug_fmt<rustc_span[e39f9d1da20fb520]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  22:     0x7f74b7fc2ee6 - rustc_middle[d8dcb3e1f9b6a1d3]::util::bug::opt_span_bug_fmt::<rustc_span[e39f9d1da20fb520]::span_encoding::Span>
  23:     0x7f74b60864b3 - rustc_middle[d8dcb3e1f9b6a1d3]::util::bug::bug_fmt
  24:     0x7f74b6243b45 - <rustc_infer[4cb97a789990ae8c]::infer::outlives::env::OutlivesEnvironment>::with_bounds::<core[86d79cd3dd753e85]::iter::adapters::flatten::Flatten<core[86d79cd3dd753e85]::iter::adapters::map::Map<indexmap[6bbb46ee84024ff5]::set::IntoIter<rustc_middle[d8dcb3e1f9b6a1d3]::ty::Ty>, <rustc_infer[4cb97a789990ae8c]::infer::InferCtxt as rustc_trait_selection[834a42ea12cf8990]::traits::outlives_bounds::InferCtxtExt>::implied_bounds_tys::{closure#0}>>>
  25:     0x7f74b6540580 - rustc_hir_analysis[60e36e2803dc18bc]::check::compare_impl_item::compare_method_predicate_entailment
  26:     0x7f74b653a6bb - rustc_hir_analysis[60e36e2803dc18bc]::check::compare_impl_item::compare_impl_method
  27:     0x7f74b6532f1c - rustc_hir_analysis[60e36e2803dc18bc]::check::check::check_impl_items_against_trait
  28:     0x7f74b652a2b8 - rustc_hir_analysis[60e36e2803dc18bc]::check::check::check_mod_item_types
  29:     0x7f74b705b2be - rustc_query_system[1a66d6a5882ef44d]::query::plumbing::try_execute_query::<rustc_query_impl[9c3c364151da071f]::queries::check_mod_item_types, rustc_query_impl[9c3c364151da071f]::plumbing::QueryCtxt>
  30:     0x7f74b705ae43 - <rustc_query_impl[9c3c364151da071f]::Queries as rustc_middle[d8dcb3e1f9b6a1d3]::ty::query::QueryEngine>::check_mod_item_types
  31:     0x7f74b70cc27c - <rustc_middle[d8dcb3e1f9b6a1d3]::hir::map::Map>::for_each_module::<rustc_hir_analysis[60e36e2803dc18bc]::check_crate::{closure#6}::{closure#0}>
  32:     0x7f74b5c316b8 - rustc_hir_analysis[60e36e2803dc18bc]::check_crate
  33:     0x7f74b5c28d25 - rustc_interface[c60781b202b529bb]::passes::analysis
  34:     0x7f74b7236b9c - rustc_query_system[1a66d6a5882ef44d]::query::plumbing::try_execute_query::<rustc_query_impl[9c3c364151da071f]::queries::analysis, rustc_query_impl[9c3c364151da071f]::plumbing::QueryCtxt>
  35:     0x7f74b7236890 - <rustc_query_impl[9c3c364151da071f]::Queries as rustc_middle[d8dcb3e1f9b6a1d3]::ty::query::QueryEngine>::analysis
  36:     0x7f74b7060899 - <rustc_middle[d8dcb3e1f9b6a1d3]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[190cb2184ae08abb]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[86d79cd3dd753e85]::result::Result<(), rustc_span[e39f9d1da20fb520]::ErrorGuaranteed>>
  37:     0x7f74b6becdc8 - rustc_span[e39f9d1da20fb520]::with_source_map::<core[86d79cd3dd753e85]::result::Result<(), rustc_span[e39f9d1da20fb520]::ErrorGuaranteed>, rustc_interface[c60781b202b529bb]::interface::run_compiler<core[86d79cd3dd753e85]::result::Result<(), rustc_span[e39f9d1da20fb520]::ErrorGuaranteed>, rustc_driver_impl[190cb2184ae08abb]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  38:     0x7f74b6be48e0 - <scoped_tls[3baa4ec3dd04ff72]::ScopedKey<rustc_span[e39f9d1da20fb520]::SessionGlobals>>::set::<rustc_interface[c60781b202b529bb]::interface::run_compiler<core[86d79cd3dd753e85]::result::Result<(), rustc_span[e39f9d1da20fb520]::ErrorGuaranteed>, rustc_driver_impl[190cb2184ae08abb]::run_compiler::{closure#1}>::{closure#0}, core[86d79cd3dd753e85]::result::Result<(), rustc_span[e39f9d1da20fb520]::ErrorGuaranteed>>
  39:     0x7f74b6be3fc2 - std[75e4c6f671155ce4]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[c60781b202b529bb]::util::run_in_thread_pool_with_globals<rustc_interface[c60781b202b529bb]::interface::run_compiler<core[86d79cd3dd753e85]::result::Result<(), rustc_span[e39f9d1da20fb520]::ErrorGuaranteed>, rustc_driver_impl[190cb2184ae08abb]::run_compiler::{closure#1}>::{closure#0}, core[86d79cd3dd753e85]::result::Result<(), rustc_span[e39f9d1da20fb520]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[86d79cd3dd753e85]::result::Result<(), rustc_span[e39f9d1da20fb520]::ErrorGuaranteed>>
  40:     0x7f74b6be3d6a - <<std[75e4c6f671155ce4]::thread::Builder>::spawn_unchecked_<rustc_interface[c60781b202b529bb]::util::run_in_thread_pool_with_globals<rustc_interface[c60781b202b529bb]::interface::run_compiler<core[86d79cd3dd753e85]::result::Result<(), rustc_span[e39f9d1da20fb520]::ErrorGuaranteed>, rustc_driver_impl[190cb2184ae08abb]::run_compiler::{closure#1}>::{closure#0}, core[86d79cd3dd753e85]::result::Result<(), rustc_span[e39f9d1da20fb520]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[86d79cd3dd753e85]::result::Result<(), rustc_span[e39f9d1da20fb520]::ErrorGuaranteed>>::{closure#1} as core[86d79cd3dd753e85]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  41:     0x7f74b4737783 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h3341c80cf784afb0
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/alloc/src/boxed.rs:1988:9
  42:     0x7f74b4737783 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6a4397435c8c4587
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/alloc/src/boxed.rs:1988:9
  43:     0x7f74b4737783 - std::sys::unix::thread::Thread::new::thread_start::h4d87276efd9893f6
                               at /rustc/ab654863c3d50482f260cf862647f1fe0ff5e010/library/std/src/sys/unix/thread.rs:108:17
   Compiling same-file v1.0.6
  44:     0x7f74b447bb43 - start_thread
                               at ./nptl/./nptl/pthread_create.c:442:8
  45:     0x7f74b450da00 - clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
  46:                0x0 - <unknown>

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.70.0-nightly (ab654863c 2023-03-15) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C opt-level=s -C linker-plugin-lto -C strip=debuginfo

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [check_mod_item_types] checking item types in module `de`
#1 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `bincode` (lib)
warning: build failed, waiting for other jobs to finish...
error: failed to compile `nu v0.77.0`, intermediate artifacts can be found at `/tmp/cargo-installskD4aP`
@asampal asampal added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 16, 2023
@addisoncrump
Copy link

This also occurs for me, with bincode. Happened during a docker pipeline, suddenly, my Rust builds all started breaking! Same backtrace, error message.

@drHuangMHT
Copy link

Same with bincode when compiling libp2p.

@anthontaylor
Copy link

Occuring with bincode 1.3.3

@dtolnay dtolnay changed the title Installing nushell 0.77 using rust nightly is broken Bincode fails to compile with nightly-2023-03-16: "add_outlives_bounds: unexpected regions" Mar 16, 2023
@dtolnay dtolnay added the regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. label Mar 16, 2023
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Mar 16, 2023
@dtolnay
Copy link
Member

dtolnay commented Mar 16, 2023

Bisects to #107376.

Looks like this regression was already known 15 hours ago but it was too late to block it from landing in a nightly. #107376 (comment)

A revert is in #109183.

@dtolnay dtolnay added P-critical Critical priority and removed I-prioritize Issue: Indicates that prioritization has been requested for this issue. labels Mar 16, 2023
@Noratrieb Noratrieb pinned this issue Mar 16, 2023
altaua pushed a commit to paritytech/scripts that referenced this issue Mar 16, 2023
@Noratrieb Noratrieb changed the title Bincode fails to compile with nightly-2023-03-16: "add_outlives_bounds: unexpected regions" nightly-2023-03-16: "add_outlives_bounds: unexpected, fails to compile bincode regions" Mar 16, 2023
@SteMak
Copy link

SteMak commented Apr 14, 2023

Having an issue at the same place. Build: 1.70.0-nightly (15d090969 2023-03-21)

Not sure why but the compilation fails only when I run cargo tarpaulin and works well for cargo build

Compiling sol-did v0.2.0
thread 'rustc' panicked at 'Box<dyn Any>', /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/compiler/rustc_errors/src/lib.rs:1644:9
stack backtrace:
   0:     0x7fbc02ae4b9a - std::backtrace_rs::backtrace::libunwind::trace::h33a8ebdd070a2849
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fbc02ae4b9a - std::backtrace_rs::backtrace::trace_unsynchronized::hdcf243f187b50d8d
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fbc02ae4b9a - std::sys_common::backtrace::_print_fmt::h447195462962d9fa
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7fbc02ae4b9a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h030527b6b1cd3ea0
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fbc02b48b3f - core::fmt::write::h820832a7aab88d9e
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/core/src/fmt/mod.rs:1254:17
   5:     0x7fbc02ad76d5 - std::io::Write::write_fmt::h8f101bdb654e5017
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/std/src/io/mod.rs:1698:15
   6:     0x7fbc02ae4965 - std::sys_common::backtrace::_print::h774dcd3ec539df8d
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7fbc02ae4965 - std::sys_common::backtrace::print::hfb7ed7d7ba09efbc
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7fbc02ae760e - std::panicking::default_hook::{{closure}}::h1b562f555ed8e3e1
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/std/src/panicking.rs:271:22
   9:     0x7fbc02ae73b5 - std::panicking::default_hook::hc7a03bfdd14960de
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/std/src/panicking.rs:290:9
  10:     0x7fbc05d9a025 - <rustc_driver_impl[92a15bc3e068e4f2]::DEFAULT_HOOK::{closure#0}::{closure#0} as core[a3d8d6709fc4f528]::ops::function::FnOnce<(&core[a3d8d6709fc4f528]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0}
  11:     0x7fbc02ae7e04 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::ha85a7263ce5c1565
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/alloc/src/boxed.rs:2002:9
  12:     0x7fbc02ae7e04 - std::panicking::rust_panic_with_hook::hfd9594253b2174d9
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/std/src/panicking.rs:696:13
  13:     0x7fbc062e3251 - std[1bf61b140f607083]::panicking::begin_panic::<rustc_errors[7ae47b583acaa0c7]::ExplicitBug>::{closure#0}
  14:     0x7fbc062dfe26 - std[1bf61b140f607083]::sys_common::backtrace::__rust_end_short_backtrace::<std[1bf61b140f607083]::panicking::begin_panic<rustc_errors[7ae47b583acaa0c7]::ExplicitBug>::{closure#0}, !>
  15:     0x7fbc062cc176 - std[1bf61b140f607083]::panicking::begin_panic::<rustc_errors[7ae47b583acaa0c7]::ExplicitBug>
  16:     0x7fbc06301536 - std[1bf61b140f607083]::panic::panic_any::<rustc_errors[7ae47b583acaa0c7]::ExplicitBug>
  17:     0x7fbc062fffc6 - <rustc_errors[7ae47b583acaa0c7]::HandlerInner>::bug::<&alloc[d60a5f910632ae0c]::string::String>
  18:     0x7fbc062ffc90 - <rustc_errors[7ae47b583acaa0c7]::Handler>::bug::<&alloc[d60a5f910632ae0c]::string::String>
  19:     0x7fbc062fbc9b - rustc_middle[e79c5042f5680516]::util::bug::opt_span_bug_fmt::<rustc_span[9f00524050a95850]::span_encoding::Span>::{closure#0}
  20:     0x7fbc062fab5a - rustc_middle[e79c5042f5680516]::ty::context::tls::with_opt::<rustc_middle[e79c5042f5680516]::util::bug::opt_span_bug_fmt<rustc_span[9f00524050a95850]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  21:     0x7fbc062fab26 - rustc_middle[e79c5042f5680516]::ty::context::tls::with_context_opt::<rustc_middle[e79c5042f5680516]::ty::context::tls::with_opt<rustc_middle[e79c5042f5680516]::util::bug::opt_span_bug_fmt<rustc_span[9f00524050a95850]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  22:     0x7fbc062fbbe6 - rustc_middle[e79c5042f5680516]::util::bug::opt_span_bug_fmt::<rustc_span[9f00524050a95850]::span_encoding::Span>
  23:     0x7fbc04065f53 - rustc_middle[e79c5042f5680516]::util::bug::bug_fmt
  24:     0x7fbc056f3233 - <rustc_middle[e79c5042f5680516]::ty::instance::Instance>::expect_resolve
  25:     0x7fbc05153d56 - rustc_monomorphize[a31546c071a6ebc4]::collector::collect_roots
  26:     0x7fbc0514ea72 - <rustc_session[46f71b3d93718d91]::session::Session>::time::<alloc[d60a5f910632ae0c]::vec::Vec<rustc_middle[e79c5042f5680516]::mir::mono::MonoItem>, rustc_monomorphize[a31546c071a6ebc4]::collector::collect_crate_mono_items::{closure#0}>
  27:     0x7fbc0514e6b8 - rustc_monomorphize[a31546c071a6ebc4]::collector::collect_crate_mono_items
  28:     0x7fbc0514cfc7 - rustc_monomorphize[a31546c071a6ebc4]::partitioning::collect_and_partition_mono_items
  29:     0x7fbc053e0c41 - rustc_query_system[c3c23202dfcd6b3e]::query::plumbing::try_execute_query::<rustc_query_impl[eb7c07aa1bc4986c]::queries::collect_and_partition_mono_items, rustc_query_impl[eb7c07aa1bc4986c]::plumbing::QueryCtxt>
  30:     0x7fbc053e091d - <rustc_query_impl[eb7c07aa1bc4986c]::Queries as rustc_middle[e79c5042f5680516]::ty::query::QueryEngine>::collect_and_partition_mono_items
  31:     0x7fbc04d639b3 - rustc_codegen_ssa[7dece96c95dcc8d]::back::symbol_export::exported_symbols_provider_local
  32:     0x7fbc054c90fe - rustc_query_system[c3c23202dfcd6b3e]::query::plumbing::try_execute_query::<rustc_query_impl[eb7c07aa1bc4986c]::queries::exported_symbols, rustc_query_impl[eb7c07aa1bc4986c]::plumbing::QueryCtxt>
  33:     0x7fbc054c8931 - <rustc_query_impl[eb7c07aa1bc4986c]::Queries as rustc_middle[e79c5042f5680516]::ty::query::QueryEngine>::exported_symbols
  34:     0x7fbc04fb1dec - <rustc_metadata[a1d83b82903af0b2]::rmeta::encoder::EncodeContext>::encode_crate_root
  35:     0x7fbc04f47fa2 - rustc_metadata[a1d83b82903af0b2]::rmeta::encoder::encode_metadata_impl
  36:     0x7fbc04f3d29c - rustc_data_structures[70b35e3a66f9208f]::sync::join::<rustc_metadata[a1d83b82903af0b2]::rmeta::encoder::encode_metadata::{closure#0}, rustc_metadata[a1d83b82903af0b2]::rmeta::encoder::encode_metadata::{closure#1}, (), ()>
  37:     0x7fbc04f3cfbf - rustc_metadata[a1d83b82903af0b2]::rmeta::encoder::encode_metadata
  38:     0x7fbc04f3c216 - rustc_metadata[a1d83b82903af0b2]::fs::encode_and_write_metadata
  39:     0x7fbc04f33e73 - rustc_interface[8a54472d067ff82c]::passes::start_codegen
  40:     0x7fbc04f2ef64 - <rustc_middle[e79c5042f5680516]::ty::context::GlobalCtxt>::enter::<<rustc_interface[8a54472d067ff82c]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[a3d8d6709fc4f528]::result::Result<alloc[d60a5f910632ae0c]::boxed::Box<dyn core[a3d8d6709fc4f528]::any::Any>, rustc_span[9f00524050a95850]::ErrorGuaranteed>>
  41:     0x7fbc04f2d348 - <rustc_interface[8a54472d067ff82c]::queries::Queries>::ongoing_codegen
  42:     0x7fbc04f2cb64 - <rustc_interface[8a54472d067ff82c]::interface::Compiler>::enter::<rustc_driver_impl[92a15bc3e068e4f2]::run_compiler::{closure#1}::{closure#2}, core[a3d8d6709fc4f528]::result::Result<core[a3d8d6709fc4f528]::option::Option<rustc_interface[8a54472d067ff82c]::queries::Linker>, rustc_span[9f00524050a95850]::ErrorGuaranteed>>
  43:     0x7fbc04f2ace1 - rustc_span[9f00524050a95850]::with_source_map::<core[a3d8d6709fc4f528]::result::Result<(), rustc_span[9f00524050a95850]::ErrorGuaranteed>, rustc_interface[8a54472d067ff82c]::interface::run_compiler<core[a3d8d6709fc4f528]::result::Result<(), rustc_span[9f00524050a95850]::ErrorGuaranteed>, rustc_driver_impl[92a15bc3e068e4f2]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  44:     0x7fbc04f2a28f - std[1bf61b140f607083]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[8a54472d067ff82c]::util::run_in_thread_pool_with_globals<rustc_interface[8a54472d067ff82c]::interface::run_compiler<core[a3d8d6709fc4f528]::result::Result<(), rustc_span[9f00524050a95850]::ErrorGuaranteed>, rustc_driver_impl[92a15bc3e068e4f2]::run_compiler::{closure#1}>::{closure#0}, core[a3d8d6709fc4f528]::result::Result<(), rustc_span[9f00524050a95850]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a3d8d6709fc4f528]::result::Result<(), rustc_span[9f00524050a95850]::ErrorGuaranteed>>
  45:     0x7fbc05643cbe - <<std[1bf61b140f607083]::thread::Builder>::spawn_unchecked_<rustc_interface[8a54472d067ff82c]::util::run_in_thread_pool_with_globals<rustc_interface[8a54472d067ff82c]::interface::run_compiler<core[a3d8d6709fc4f528]::result::Result<(), rustc_span[9f00524050a95850]::ErrorGuaranteed>, rustc_driver_impl[92a15bc3e068e4f2]::run_compiler::{closure#1}>::{closure#0}, core[a3d8d6709fc4f528]::result::Result<(), rustc_span[9f00524050a95850]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a3d8d6709fc4f528]::result::Result<(), rustc_span[9f00524050a95850]::ErrorGuaranteed>>::{closure#1} as core[a3d8d6709fc4f528]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  46:     0x7fbc02af1ed5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h009afec0196bee04
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/alloc/src/boxed.rs:1988:9
  47:     0x7fbc02af1ed5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::ha6c4bb25884feef5
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/alloc/src/boxed.rs:1988:9
  48:     0x7fbc02af1ed5 - std::sys::unix::thread::Thread::new::thread_start::h6c0e7fa9b5646d29
                               at /rustc/0c61c7a978fe9f7b77a1d667c77d2202dadd1c10/library/std/src/sys/unix/thread.rs:108:17
  49:     0x7fbc02851bb5 - <unknown>
  50:     0x7fbc028d3d90 - <unknown>
  51:                0x0 - <unknown>

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.70.0-nightly (0c61c7a97 2023-03-25) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type cdylib --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C debuginfo=2 -C link-dead-code

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [collect_and_partition_mono_items] collect_and_partition_mono_items
#1 [exported_symbols] collecting exported symbols for crate `0`
end of query stack
error: Broken pipe (os error 32)
warning: build failed, waiting for other jobs to finish...
error: could not compile `sol-did` (lib) due to previous error
Apr 14 13:06:29.745 ERROR cargo_tarpaulin: Failed to compile tests!
error: internal compiler error: compiler/rustc_middle/src/ty/instance.rs:401:18: failed to resolve instance for <DecentralizedIdentifier<'_> as BorshDeserialize>::try_from_slice


Error: "Failed to compile tests!\nerror: internal compiler error: compiler/rustc_middle/src/ty/instance.rs:401:18: failed to resolve instance for <DecentralizedIdentifier<'_> as BorshDeserialize>::try_from_slice\n\n"

@lqd
Copy link
Member

lqd commented Apr 14, 2023

@SteMak we'll need a link to your code to test things out, or a way to reproduce your issue in general.

@SteMak
Copy link

SteMak commented Apr 19, 2023

I see the problem was fixed in the cargo 1.71.0-nightly (d0a4cbcee 2023-04-16) build. I'm happy!

However, there are steps to reproduce it for the old 1.70.0-nightly (15d090969 2023-03-21) compiler:

rustup default nightly-2023-03-21-x86_64-unknown-linux-gnu

git clone https://github.com/identity-com/on-chain-identity-gateway.git
cd on-chain-identity-gateway/solana
git checkout c939b6feb8aa92d596306a1aeb2dc497c2f7f693

cargo tarpaulin # it fails here at `sol-did` compilation
cargo build # it does not fail here, however, `sol-did` is compiled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ P-critical Critical priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants