You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be a NLL or Borrow-Checker regression as this works on nightly-2018-04-03.
What happened: cargo test --verbose of my project with the new contents of:
enumExprErrorKind{ExtractHiOverflow{hi:usize,expr:Extract},// some other variants here}impl fmt::DisplayforExprError{fnfmt(&self,f:&mut fmt::Formatter) -> fmt::Result{useself::ExprErrorKind::*;match&self.kind{ExtractHiOverflow{ .. } => write!(f,"dayum"),// some other cases here}}}
thread 'rustc' panicked at 'More than one activation introduced at the same location.', librustc_mir/dataflow/impls/borrows.rs:216:21
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::print
at libstd/sys_common/backtrace.rs:71
at libstd/sys_common/backtrace.rs:59
2: std::panicking::default_hook::{{closure}}
at libstd/panicking.rs:207
3: std::panicking::default_hook
at libstd/panicking.rs:223
4: core::ops::function::Fn::call
5: std::panicking::rust_panic_with_hook
at libstd/panicking.rs:403
6: std::panicking::begin_panic
7: <rustc_mir::dataflow::impls::borrows::Borrows::new::GatherBorrows<'a, 'gcx, 'tcx> as rustc::mir::visit::Visitor<'tcx>>::visit_assign
8: rustc_mir::dataflow::impls::borrows::Borrows::new
9: rustc_mir::borrow_check::do_mir_borrowck
10: <std::thread::local::LocalKey<T>>::with
11: rustc::ty::context::GlobalCtxt::enter_local
12: rustc_mir::borrow_check::mir_borrowck
13: rustc::ty::maps::<impl rustc::ty::maps::queries::mir_borrowck<'tcx>>::compute_result
14: rustc::dep_graph::graph::DepGraph::with_task_impl
15: rustc_errors::Handler::track_diagnostics
16: rustc::ty::maps::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::cycle_check
17: rustc::ty::maps::<impl rustc::ty::maps::queries::mir_borrowck<'tcx>>::force
18: rustc::ty::maps::<impl rustc::ty::maps::queries::mir_borrowck<'tcx>>::try_get
19: rustc::ty::maps::TyCtxtAt::mir_borrowck
20: rustc::ty::maps::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::mir_borrowck
21: rustc_driver::driver::phase_3_run_analysis_passes::{{closure}}::{{closure}}
22: <std::thread::local::LocalKey<T>>::with
23: <std::thread::local::LocalKey<T>>::with
24: rustc::ty::context::TyCtxt::create_and_enter
25: rustc_driver::driver::compile_input
26: rustc_driver::run_compiler_impl
27: syntax::with_globals
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.27.0-nightly (637ac17c5 2018-04-03) running on x86_64-unknown-linux-gnu
note: compiler flags: -C debuginfo=2 -C incremental
note: some of the compiler flags provided by cargo are hidden
error: Could not compile `stevia`.
To learn more, run the command again with --verbose.
…tsakis
two-phase borrows: support multiple activations in one statement
The need for this has arisen since the introduction of two-phase borrows on
method autorefs in #49348. r'ing @pnkfelix to keep things off Niko's plate so he can make this redundant, and @pnkfelix is familiar with the code.
Fixes#49635Fixes#49662
r? @pnkfelix
The Rust compiler told me to file an issue here.
This seems to be a NLL or Borrow-Checker regression as this works on
nightly-2018-04-03
.What happened:
cargo test --verbose
of my project with the new contents of:Link to
Extract
struct used: click me!Rust compiler output points to
librustc_mir/dataflow/impls/borrows.rs:216:21
Full
RUST_BACKTRACE
Caused by:
I can provide more information about the source code if necesary. :)
The text was updated successfully, but these errors were encountered: