foundationdb-rs
foundationdb-rs copied to clipboard
Error when used warp
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.
rust version and os?
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.
rustc 1.53.0-nightly (07e0e2ec2 2021-03-24) Windows 10 Test repo: https://github.com/service-b360/fdb_web
I reported the error to rustc: https://github.com/rust-lang/rust/issues/84491