foundationdb-rs icon indicating copy to clipboard operation
foundationdb-rs copied to clipboard

Error when used warp

Open ghost opened this issue 3 years ago • 4 comments

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.

ghost avatar Apr 23 '21 06:04 ghost

rust version and os?

Speedy37 avatar Apr 23 '21 06:04 Speedy37

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.

Speedy37 avatar Apr 23 '21 06:04 Speedy37

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

ghost avatar Apr 23 '21 07:04 ghost

I reported the error to rustc: https://github.com/rust-lang/rust/issues/84491

Speedy37 avatar Apr 23 '21 19:04 Speedy37