Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
error: internal compiler error: broken MIR in DefId(0:84 ~ nll_borrowck[317d]::non_constants[0]::no_impl_copy_empty_value_multiple_elements[0]) (NoSolution): could not prove Binder(TraitPredicate(<std::option::Option<Bar> as std::marker::Copy>))
--> src/test/ui/consts/rfc-2203-const-array-repeat-exprs/nll_borrowck.rs:87:37
|
87 | let arr: [Option<Bar>; 2] = [x; 2];
| ^^^^^^
error: internal compiler error: broken MIR in DefId(0:93 ~ nll_borrowck[317d]::non_constants[0]::no_impl_copy_value_multiple_elements[0]) (NoSolution): could not prove Binder(TraitPredicate(<std::option::Option<Bar> as std::marker::Copy>))
--> src/test/ui/consts/rfc-2203-const-array-repeat-exprs/nll_borrowck.rs:103:37
|
103 | let arr: [Option<Bar>; 2] = [x; 2];
| ^^^^^^
thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', src/librustc_errors/lib.rs:356:17
stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.25/src/backtrace/libunwind.rs:97
1: backtrace::backtrace::trace_unsynchronized
at /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.25/src/backtrace/mod.rs:66
2: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:47
3: std::sys_common::backtrace::print
at src/libstd/sys_common/backtrace.rs:36
4: std::panicking::default_hook::{{closure}}
at src/libstd/panicking.rs:197
5: std::panicking::default_hook
at src/libstd/panicking.rs:211
6: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at ./src/liballoc/boxed.rs:760
7: rustc::util::common::panic_hook
at src/librustc/util/common.rs:40
8: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
9: std::panicking::begin_panic
at ./src/libstd/panicking.rs:408
10: <rustc_errors::Handler as core::ops::drop::Drop>::drop
at src/librustc_errors/lib.rs:356
11: core::ptr::real_drop_in_place
at ./src/libcore/ptr/mod.rs:197
12: core::ptr::real_drop_in_place
at ./src/libcore/ptr/mod.rs:197
13: core::ptr::real_drop_in_place
at ./src/libcore/ptr/mod.rs:197
14: core::ptr::real_drop_in_place
at ./src/libcore/ptr/mod.rs:197
15: core::ptr::drop_in_place
at ./src/libcore/ptr/mod.rs:187
16: <alloc::rc::Rc<T> as core::ops::drop::Drop>::drop
at ./src/liballoc/rc.rs:857
17: core::ptr::real_drop_in_place
at ./src/libcore/ptr/mod.rs:197
18: core::ptr::real_drop_in_place
at ./src/libcore/ptr/mod.rs:197
19: rustc_interface::interface::run_compiler_in_existing_thread_pool
at ./src/librustc_interface/interface.rs:130
20: rustc_interface::interface::run_compiler::{{closure}}
at ./src/librustc_interface/interface.rs:142
21: rustc_interface::util::spawn_thread_pool::{{closure}}::{{closure}}::{{closure}}::{{closure}}
at ./src/librustc_interface/util.rs:188
22: rustc::ty::context::tls::with_thread_locals::{{closure}}::{{closure}}
at ./src/librustc/ty/context.rs:1926
23: std::thread::local::LocalKey<T>::try_with
at ./src/libstd/thread/local.rs:299
24: std::thread::local::LocalKey<T>::with
at ./src/libstd/thread/local.rs:245
25: rustc::ty::context::tls::with_thread_locals::{{closure}}
at ./src/librustc/ty/context.rs:1918
26: std::thread::local::LocalKey<T>::try_with
at ./src/libstd/thread/local.rs:299
27: std::thread::local::LocalKey<T>::with
at ./src/libstd/thread/local.rs:245
28: rustc::ty::context::tls::with_thread_locals
at ./src/librustc/ty/context.rs:1910
29: rustc_interface::util::spawn_thread_pool::{{closure}}::{{closure}}::{{closure}}
at ./src/librustc_interface/util.rs:188
30: scoped_tls::ScopedKey<T>::set
at /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137
31: rustc_interface::util::spawn_thread_pool::{{closure}}::{{closure}}
at ./src/librustc_interface/util.rs:184
32: scoped_tls::ScopedKey<T>::set
at /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137
33: syntax::with_globals::{{closure}}
at ./src/libsyntax/lib.rs:104
34: scoped_tls::ScopedKey<T>::set
at /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137
35: syntax::with_globals
at ./src/libsyntax/lib.rs:103
36: rustc_interface::util::spawn_thread_pool::{{closure}}
at ./src/librustc_interface/util.rs:183
37: rustc_interface::util::scoped_thread::{{closure}}
at ./src/librustc_interface/util.rs:160
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
query stack during panic:
end of query stack
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
note: rustc 1.37.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z borrowck=mir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.