Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Debug implementation causes Creusot ICE #1337

Open
xldenis opened this issue Feb 2, 2025 · 4 comments
Open

Debug implementation causes Creusot ICE #1337

xldenis opened this issue Feb 2, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@xldenis
Copy link
Collaborator

xldenis commented Feb 2, 2025

thread 'rustc' panicked at creusot/src/backend/ty_inv.rs:69:18:
not implemented: dyn [Binder { value: Trait(std::fmt::Write), bound_vars: [] }] + '?24
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/creusot-rs/creusot/issues/new

note: please make sure that you have updated to the latest nightly

note: rustc 1.82.0-nightly (c1a6199e9 2024-07-24) running on aarch64-apple-darwin

note: compiler flags: -Z unstable-options --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
@jhjourdan
Copy link
Collaborator

What's the source ?

@xldenis
Copy link
Collaborator Author

xldenis commented Feb 3, 2025

I added a derive(Debug) on a simple type.

@jhjourdan
Copy link
Collaborator

Wow. That is using dyn ?

@xldenis
Copy link
Collaborator Author

xldenis commented Feb 3, 2025

yes of course, the write! macros are expressed in terms of trait objects to make them easily generic over the specific writers without tons of monomorhpization.

@Lysxia Lysxia added the bug Something isn't working label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants