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: Trying to compare incompatible constructors #78630

Closed
skeleten opened this issue Nov 1, 2020 · 1 comment
Closed

ICE: Trying to compare incompatible constructors #78630

skeleten opened this issue Nov 1, 2020 · 1 comment
Labels
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.

Comments

@skeleten
Copy link
Contributor

skeleten commented Nov 1, 2020

Code

Unfortunately it is a closed project and I have not been able to determine a minimal example, thus I am unable to provide any code -- Sorry.

Meta

The error occurs only when using the Docker image rustlang/rust:nightly. I am able to compile the code on my development machine, using the rustc version

rustc --version --verbose: (Working version)

rustc 1.49.0-nightly (ffa2e7ae8 2020-10-24)
binary: rustc
commit-hash: ffa2e7ae8fbf9badc035740db949b9dae271c29f
commit-date: 2020-10-24
host: x86_64-unknown-linux-gnu
release: 1.49.0-nightly
LLVM version: 11.0

rustc --version --verbose: (version spawning the ICE)

rustc 1.49.0-nightly (ffe52882e 2020-10-30)
binary: rustc
commit-hash: ffe52882ed79be67344dd6085559e308241e7f60
commit-date: 2020-10-30
host: x86_64-unknown-linux-gnu
release: 1.49.0-nightly

Error output

error: internal compiler error: compiler/rustc_mir_build/src/thir/pattern/_match.rs:931:18: trying to compare incompatible constructors Single and Str(Const { ty: &str, val: Value(Slice { data: Allocation { bytes: [105, 115, 115, 117, 101], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [31], len: Size { raw: 5 } }, size: Size { raw: 5 }, align: Align { pow2: 0 }, mutability: Not, extra: () }, start: 0, end: 5 }) })
Backtrace

thread 'rustc' panicked at 'Box<Any>', compiler/rustc_errors/src/lib.rs:942:9
stack backtrace:
   0:     0x7f3b758755f0 - std::backtrace_rs::backtrace::libunwind::trace::h448c56741b6011d3
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/std/src/../../backtrace/src/backtrace/libunwind.rs:100:5
   1:     0x7f3b758755f0 - std::backtrace_rs::backtrace::trace_unsynchronized::h2d26397c5720fdbb
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f3b758755f0 - std::sys_common::backtrace::_print_fmt::h720a2f61f75b9f58
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/std/src/sys_common/backtrace.rs:67:5
   3:     0x7f3b758755f0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h8d62bbfda6d5c836
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/std/src/sys_common/backtrace.rs:46:22
   4:     0x7f3b758e552c - core::fmt::write::h1857a60b204f1b6a
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/core/src/fmt/mod.rs:1078:17
   5:     0x7f3b75867252 - std::io::Write::write_fmt::h16a9fe7680ac245c
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/std/src/io/mod.rs:1518:15
   6:     0x7f3b7587a5a5 - std::sys_common::backtrace::_print::h9ba51a6db618de7d
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/std/src/sys_common/backtrace.rs:49:5
   7:     0x7f3b7587a5a5 - std::sys_common::backtrace::print::h5f20e41c85e91716
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/std/src/sys_common/backtrace.rs:36:9
   8:     0x7f3b7587a5a5 - std::panicking::default_hook::{{closure}}::h5b7294ca19e8edab
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/std/src/panicking.rs:208:50
   9:     0x7f3b7587a248 - std::panicking::default_hook::hb3948d1f74b6ff4c
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/std/src/panicking.rs:227:9
  10:     0x7f3b76144658 - rustc_driver::report_ice::h1ddbc5609a6e1f37
  11:     0x7f3b68849bb6 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hf136d8f69a367db7
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/alloc/src/boxed.rs:1321:9
  12:     0x7f3b688458cb - proc_macro::bridge::client::<impl proc_macro::bridge::Bridge>::enter::{{closure}}::{{closure}}::hf3b9eea5e77cdc2a
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/proc_macro/src/bridge/client.rs:320:21
  13:     0x7f3b7587aea6 - std::panicking::rust_panic_with_hook::h55d23fef0ad751bc
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/std/src/panicking.rs:597:17
  14:     0x7f3b7913ed5d - std::panicking::begin_panic::{{closure}}::h4b123e1d8e3ae463
  15:     0x7f3b7913ec96 - std::sys_common::backtrace::__rust_end_short_backtrace::ha21fec08f03d728b
  16:     0x7f3b7913ed2f - std::panicking::begin_panic::hc0c81fab1e0acd00
  17:     0x7f3b79150c90 - rustc_errors::HandlerInner::bug::h26f9bc1a7147687e
  18:     0x7f3b7914f7e0 - rustc_errors::Handler::bug::h2149bffe74600666
  19:     0x7f3b78bae3c4 - rustc_middle::util::bug::opt_span_bug_fmt::{{closure}}::h9fafd217538ab02e
  20:     0x7f3b78ba7eeb - rustc_middle::ty::context::tls::with_opt::{{closure}}::h6dc4ddb450eaa7bf
  21:     0x7f3b78ba78a2 - rustc_middle::ty::context::tls::with_opt::ha2cfd84f58be3d57
  22:     0x7f3b78bae2e9 - rustc_middle::util::bug::opt_span_bug_fmt::hc7cbb029c2646db9
  23:     0x7f3b78bae25e - rustc_middle::util::bug::bug_fmt::hb51c412c48cda8bb
  24:     0x7f3b773718b5 - rustc_mir_build::thir::pattern::_match::Matrix::specialize_constructor::h36673621382da348
  25:     0x7f3b7733a51a - <core::iter::adapters::Map<I,F> as core::iter::traits::iterator::Iterator>::try_fold::hc5d1fe05ffff39c8
  26:     0x7f3b77377568 - rustc_mir_build::thir::pattern::_match::is_useful::hf8efd6153416cf2d
  27:     0x7f3b7730be68 - <rustc_mir_build::thir::pattern::check_match::MatchVisitor as rustc_hir::intravisit::Visitor>::visit_expr::h865c9f6d42685550
  28:     0x7f3b77314d0a - rustc_hir::intravisit::walk_expr::hd0093ab50ae5a8d4
  29:     0x7f3b7730baec - <rustc_mir_build::thir::pattern::check_match::MatchVisitor as rustc_hir::intravisit::Visitor>::visit_expr::h865c9f6d42685550
  30:     0x7f3b7730b813 - rustc_mir_build::thir::pattern::check_match::check_match::h2d5b60d42651dc41
  31:     0x7f3b76396cd9 - rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::check_match>::compute::h3dd4584521cdb95e
  32:     0x7f3b762fdb94 - rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl::ha5792d8d35599b62
  33:     0x7f3b76361ff4 - rustc_data_structures::stack::ensure_sufficient_stack::h3626f02a47d49f69
  34:     0x7f3b762f245f - rustc_query_system::query::plumbing::get_query_impl::hfaed35f7e6414273
  35:     0x7f3b762f3b42 - rustc_query_system::query::plumbing::ensure_query_impl::ha7327a13b80a3079
  36:     0x7f3b76392d89 - rustc_interface::passes::analysis::h78326215bfd650a0
  37:     0x7f3b76182c2b - rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::analysis>::compute::hf8d4bc54d08537f3
  38:     0x7f3b76147c37 - rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl::h982af355bf58c5b3
  39:     0x7f3b76163660 - rustc_data_structures::stack::ensure_sufficient_stack::he424948b1b3ac791
  40:     0x7f3b760f46a0 - rustc_query_system::query::plumbing::get_query_impl::h448d10ab90370983
  41:     0x7f3b76185cef - rustc_interface::passes::QueryContext::enter::hbf7a36e966e91449
  42:     0x7f3b76161116 - rustc_interface::queries::<impl rustc_interface::interface::Compiler>::enter::h36c5ed3de81f7a3c
  43:     0x7f3b760edbc7 - rustc_span::with_source_map::h4e49cbd9a39d01b4
  44:     0x7f3b7615c321 - scoped_tls::ScopedKey<T>::set::hca96dcfe1d32eebf
  45:     0x7f3b76163fd5 - std::sys_common::backtrace::__rust_begin_short_backtrace::h21cfd4855c5058aa
  46:     0x7f3b760ce518 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2df6ccf8e166462a
  47:     0x7f3b75889eaa - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9e7afb7a0a438236
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/alloc/src/boxed.rs:1307:9
  48:     0x7f3b75889eaa - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h70c646c4271337a1
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/alloc/src/boxed.rs:1307:9
  49:     0x7f3b75889eaa - std::sys::unix::thread::Thread::new::thread_start::h35d2b8d36f210d02
                               at /rustc/ffe52882ed79be67344dd6085559e308241e7f60/library/std/src/sys/unix/thread.rs:89:17
  50:     0x7f3b757befa3 - start_thread
  51:     0x7f3b756de4cf - clone
  52:                0x0 - <unknown>
query stack during panic
#0 [check_match] match-checking `<rr::rdata::caa::Property as std::convert::From<std::string::String>>::from`
#1 [analysis] running analysis passes on this crate
end of query stack

@skeleten skeleten 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 Nov 1, 2020
@jonas-schievink
Copy link
Contributor

Duplicate of #78549

@jonas-schievink jonas-schievink marked this as a duplicate of #78549 Nov 1, 2020
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) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants