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

Error when used warp #228

Open
ghost opened this issue Apr 23, 2021 · 4 comments
Open

Error when used warp #228

ghost opened this issue Apr 23, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 23, 2021

When using the function (similar transact_boxed) in wrap:

    let res = db
        .transact_boxed(
            &db,
            |trx, db| async_body(db, trx, try_count.clone()).boxed(),
            TransactOption::default(),
        )
        .await;

Compilation error:
error: internal compiler error: unexpected panic

I have no problem with db.get(...) (or set) in this function.

@Speedy37
Copy link
Contributor

rust version and os?

@Speedy37
Copy link
Contributor

This is a bug in rustc, so the current rustc version is important to fill a ICE bug report to https://github.com/rust-lang/rust/issues if this is not already fixed in nightly. And try compiling with RUST_BACKTRACE=1 to get more details about what has gone wrong in rustc.

@ghost
Copy link
Author

ghost commented Apr 23, 2021

rustc 1.53.0-nightly (07e0e2ec2 2021-03-24)
Windows 10
Test repo: https://github.com/service-b360/fdb_web

@Speedy37
Copy link
Contributor

I reported the error to rustc: rust-lang/rust#84491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant