rust-lang / rust-lang/rust

[ICE]: ` error performing operation: fully_perform`

Open
#161,733 1 comment 0 reactions 1 assignee View on GitHub

@adwinwhite is already working on this.

Since Aug 29, 2026.

-Zassumptions-on-binders C-bug I-ICE needs-triage T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

snippet:

//@compile-flags: -Zassumptions-on-binders
pub fn negotiate<S>(_x: S)
where
    for<'a> &'a S: 'a,
{
    || {};
}

fn main() {}

Version information

rustc 1.100.0-nightly (9bb55c8c8 2026-08-24)
binary: rustc
commit-hash: 9bb55c8c865411b7d9dea6ff743e583d510d89f5
commit-date: 2026-08-24
host: x86_64-unknown-linux-gnu
release: 1.100.0-nightly
LLVM version: 23.1.0

Command:
/home/matthias/.rustup/toolchains/master/bin/rustc -Zassumptions-on-binders

Program output

warning: unused closure that must be used
 --> /tmp/icemaker_global_tempdir.GBZgDosjnP9F/rustc_testrunner_tmpdir_reporting.tGKIQDcQqdYV/mvce.rs:5:5
  |
5 |     || {};
  |     ^^^^^
  |
  = note: closures are lazy and do nothing unless called
  = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default

warning: 1 warning emitted

note: no errors encountered even though delayed bugs were created

note: those delayed bugs will now be shown as internal compiler errors

error: internal compiler error: error performing operation: fully_perform
 --> /tmp/icemaker_global_tempdir.GBZgDosjnP9F/rustc_testrunner_tmpdir_reporting.tGKIQDcQqdYV/mvce.rs:5:5
  |
5 |     || {};
  |     ^^^^^
  |
note: delayed at /rustc-dev/9bb55c8c865411b7d9dea6ff743e583d510d89f5/compiler/rustc_trait_selection/src/traits/query/type_op/custom.rs:126:26
         0: <rustc_errors::DiagCtxtInner>::emit_diagnostic
         1: <rustc_errors::DiagCtxtHandle>::emit_diagnostic
         2: <rustc_span::ErrorGuaranteed as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
         3: <rustc_errors::DiagCtxtHandle>::span_delayed_bug::<rustc_span::span_encoding::Span, alloc::string::String>
         4: <rustc_borrowck::type_check::TypeChecker>::normalize_and_prove_instantiated_clauses
         5: <rustc_borrowck::type_check::TypeChecker as rustc_middle::mir::visit::Visitor>::visit_body
         6: rustc_borrowck::borrowck_collect_region_constraints
         7: <rustc_borrowck::root_cx::BorrowCheckRootCtxt>::do_mir_borrowck
         8: rustc_borrowck::mir_borrowck
         9: rustc_query_impl::query_vtables::mir_borrowck::invoke_provider_fn::__rust_begin_short_backtrace
        10: rustc_query_impl::execution::try_execute_query::<rustc_data_structures::vec_cache::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::ErasedData<[u8; 8]>, rustc_middle::dep_graph::graph::DepNodeIndex>, false>
        11: rustc_query_impl::query_vtables::mir_borrowck::execute_query_non_incr::__rust_end_short_backtrace
        12: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_interface::passes::run_required_analyses::{closure#2}::{closure#0}>::{closure#0}
        13: rustc_interface::passes::analysis
        14: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
        15: rustc_query_impl::query_vtables::analysis::execute_query_non_incr::__rust_end_short_backtrace
        16: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#2}
        17: std::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
        18: <std::thread::lifecycle::spawn_unchecked<rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
        19: <std::sys::thread::unix::Thread>::new::thread_start
        20: <unknown>
        21: <unknown>
      
 --> /tmp/icemaker_global_tempdir.GBZgDosjnP9F/rustc_testrunner_tmpdir_reporting.tGKIQDcQqdYV/mvce.rs:5:5
  |
5 |     || {};
  |     ^^^^^

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: please make sure that you have updated to the latest nightly

note: rustc 1.100.0-nightly (9bb55c8c8 2026-08-24) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z assumptions-on-binders -Z dump-mir-dir=dir

query stack during panic:
end of query stack

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.