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

Panic with "tried to get data from a revertible thunk" #2189

Open
jneem opened this issue Mar 10, 2025 · 0 comments
Open

Panic with "tried to get data from a revertible thunk" #2189

jneem opened this issue Mar 10, 2025 · 0 comments

Comments

@jneem
Copy link
Member

jneem commented Mar 10, 2025

The following example panics on eval or export, with

thread 'main' panicked at core/src/eval/cache/lazy.rs:246:33:
tried to get data from a revertible thunk without a cached value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Note that the Dyn is necessary: remove it and the crash goes away.

let Linktype = {
  source | { file },
  target
    | Dyn
    | { file | default = source.file }
}
in
{
  source = { file = "" },
  target = {},
} | Linktype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant