Skip to content

[ICE]: error performing operation: fully_perform #161733

Open

Description

@matthiaskrgr

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

Activity

  1. added
    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    C-bugCategory: This is a bug.
    on Aug 25, 2026
  2. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Aug 25, 2026
  3. matthiaskrgr commented on Aug 25, 2026

    @matthiaskrgr
    MemberAuthor

    on vanilla, we would reject this code:

    error: `S` does not live long enough
     --> k.rs:5:5
      |
    5 |     || {};
      |     ^^^^^
    
    error: aborting due to 1 previous error
    
  4. self-assigned this
    on Aug 29, 2026
  5. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

-Zassumptions-on-bindersUnstable option: `-Zassumptions-on-bindersC-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions