{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/52671","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/52671/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/52671/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/52671/events","html_url":"https://github.com/rust-lang/rust/issues/52671","id":344147142,"node_id":"MDU6SXNzdWUzNDQxNDcxNDI=","number":52671,"title":"ICE: mir_borrowck encountered mutable promoted","user":{"login":"cramertj","id":5963049,"node_id":"MDQ6VXNlcjU5NjMwNDk=","avatar_url":"https://avatars1.githubusercontent.com/u/5963049?v=4","gravatar_id":"","url":"https://api.github.com/users/cramertj","html_url":"https://github.com/cramertj","followers_url":"https://api.github.com/users/cramertj/followers","following_url":"https://api.github.com/users/cramertj/following{/other_user}","gists_url":"https://api.github.com/users/cramertj/gists{/gist_id}","starred_url":"https://api.github.com/users/cramertj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cramertj/subscriptions","organizations_url":"https://api.github.com/users/cramertj/orgs","repos_url":"https://api.github.com/users/cramertj/repos","events_url":"https://api.github.com/users/cramertj/events{/privacy}","received_events_url":"https://api.github.com/users/cramertj/received_events","type":"User","site_admin":false},"labels":[{"id":604489711,"node_id":"MDU6TGFiZWw2MDQ0ODk3MTE=","url":"https://api.github.com/repos/rust-lang/rust/labels/A-NLL","name":"A-NLL","color":"d7e102","default":false},{"id":650731663,"node_id":"MDU6TGFiZWw2NTA3MzE2NjM=","url":"https://api.github.com/repos/rust-lang/rust/labels/C-bug","name":"C-bug","color":"f5f1fd","default":false},{"id":9618520,"node_id":"MDU6TGFiZWw5NjE4NTIw","url":"https://api.github.com/repos/rust-lang/rust/labels/I-ICE","name":"I-ICE","color":"e10c02","default":false},{"id":693557751,"node_id":"MDU6TGFiZWw2OTM1NTc3NTE=","url":"https://api.github.com/repos/rust-lang/rust/labels/WG-compiler-nll","name":"WG-compiler-nll","color":"c2e0c6","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-07-24T18:13:10Z","updated_at":"2018-08-01T22:06:27Z","closed_at":"2018-08-01T22:06:27Z","author_association":"MEMBER","body":"Error:\r\n```\r\nerror: internal compiler error: librustc_mir/borrow_check/mod.rs:1868: encountered mutable promoted\r\n\r\nthread 'main' panicked at 'Box<Any>', librustc_errors/lib.rs:580:9\r\nstack backtrace:\r\n   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace\r\n   1: std::sys_common::backtrace::print\r\n   2: std::panicking::default_hook::{{closure}}\r\n   3: std::panicking::default_hook\r\n   4: rustc::util::common::panic_hook\r\n   5: std::panicking::rust_panic_with_hook\r\n   6: std::panicking::begin_panic\r\n   7: rustc_errors::Handler::bug\r\n   8: rustc::session::opt_span_bug_fmt::{{closure}}\r\n   9: rustc::ty::context::tls::with_opt::{{closure}}\r\n  10: rustc::ty::context::tls::with_context_opt\r\n  11: rustc::ty::context::tls::with_opt\r\n  12: rustc::session::opt_span_bug_fmt\r\n  13: rustc::session::bug_fmt\r\n  14: rustc_mir::borrow_check::MirBorrowckCtxt::is_mutable\r\n  15: rustc_mir::borrow_check::MirBorrowckCtxt::access_place\r\n  16: <rustc_mir::borrow_check::MirBorrowckCtxt<'cx, 'gcx, 'tcx> as rustc_mir::dataflow::DataflowResultsConsumer<'cx, 'tcx>>::visit_statement_entry\r\n  17: rustc_mir::borrow_check::do_mir_borrowck\r\n  18: rustc::ty::context::tls::with_related_context\r\n  19: rustc::infer::InferCtxtBuilder::enter\r\n  20: rustc_mir::borrow_check::mir_borrowck\r\n  21: rustc::ty::query::__query_compute::mir_borrowck\r\n  22: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_borrowck<'tcx>>::compute\r\n  23: rustc::dep_graph::graph::DepGraph::with_task_impl\r\n  24: rustc::ty::context::tls::with_related_context\r\n  25: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::force_query_with_job\r\n  26: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::get_query\r\n  27: rustc::ty::query::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::mir_borrowck\r\n  28: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners\r\n  29: rustc::util::common::time\r\n  30: rustc::ty::context::tls::enter_context\r\n  31: <std::thread::local::LocalKey<T>>::with\r\n  32: rustc::ty::context::TyCtxt::create_and_enter\r\n  33: rustc_driver::driver::compile_input\r\n  34: rustc_driver::run_compiler_with_pool\r\n  35: <scoped_tls::ScopedKey<T>>::set\r\n  36: <scoped_tls::ScopedKey<T>>::set\r\n  37: syntax::with_globals\r\n  38: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once\r\n  39: __rust_maybe_catch_panic\r\n  40: rustc_driver::run\r\n  41: rustc_driver::main\r\n  42: std::rt::lang_start::{{closure}}\r\n  43: std::panicking::try::do_call\r\n  44: __rust_maybe_catch_panic\r\n  45: std::rt::lang_start_internal\r\n  46: main\r\n  47: __libc_start_main\r\n  48: _start\r\nquery stack during panic:\r\n#0 [mir_borrowck] processing `wire::util::buffer::tests::test_buffer_and_range_slice`\r\nend of query stack\r\nerror: aborting due to previous error\r\n\r\nFor more information about this error, try `rustc --explain E0170`.\r\n\r\nnote: the compiler unexpectedly panicked. this is a bug.\r\n\r\nnote: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports\r\n\r\nnote: rustc 1.29.0-dev running on x86_64-unknown-linux-gnu\r\n\r\nnote: compiler flags: -C linker=/usr/local/google/home/cramertj/src/fuchsia/buildtools/linux-x64/clang/bin/clang -C link-arg=--target=x86_64-unknown-fuchsia -C link-arg=--sysroot=/usr/local/google/home/cramertj/src/fuchsia/out/release-x64/sdks/zircon_sysroot/arch/x64/sysroot -C opt-level=z -C lto=thin --crate-type bin\r\n\r\n\r\n[5390/6330] ACTION //garnet/public/lib/fidl/rust/fidl:fidl_build(//build/toolchain/fuchsia:x64)\r\nninja: build stopped: subcommand failed.\r\n\r\n```\r\n\r\nThis only happens after https://github.com/rust-lang/rust/pull/52597-- cc @oli-obk. The code that triggered this is [here](https://fuchsia.googlesource.com/garnet/+/master/bin/recovery_netstack/src/wire/util.rs#902)."}}
{"actor":{"display_login":"bors"}}