Skip to content

Unboxed closures ICE when debug println!()d #16808

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
tiffany352 opened this issue Aug 28, 2014 · 1 comment
Closed

Unboxed closures ICE when debug println!()d #16808

tiffany352 opened this issue Aug 28, 2014 · 1 comment
Labels
A-closures Area: Closures (`|…| { … }`) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@tiffany352
Copy link

error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'couldn't find visit method for err', /build/rust-git/src/rust/src/libcore/option.rs:243

Test case:

#![feature(unboxed_closures, unboxed_closure_sugar)]

extern crate debug;

fn main() {
    let foo = |: x: int| x+1;
    println!("{:?}", foo);
}

Playpen link: http://is.gd/9i2oSm

@bkoropoff
Copy link
Contributor

This was actually fixed, and now debug formatting has been completely removed anyway.

bors added a commit to rust-lang-ci/rust that referenced this issue Mar 17, 2024
…Veykril

feat: Add proc macro semantic token type

Closes  rust-lang#11529
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-closures Area: Closures (`|…| { … }`) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

4 participants