Fix CI builds (#582)
parent
86d983987e
commit
6ed14c3e34
@ -1,10 +1,10 @@ |
||||
error[E0597]: `db` does not live long enough |
||||
--> $DIR/iterator_outlive_db.rs:6:9 |
||||
--> tests/fail/iterator_outlive_db.rs:6:9 |
||||
| |
||||
4 | let _iter = { |
||||
| ----- borrow later stored here |
||||
5 | let db = DB::open_default("foo").unwrap(); |
||||
6 | db.iterator(IteratorMode::Start) |
||||
| ^^ borrowed value does not live long enough |
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough |
||||
7 | }; |
||||
| - `db` dropped here while still borrowed |
||||
|
@ -1,17 +1,17 @@ |
||||
error[E0596]: cannot borrow `*db_ref1` as mutable, as it is behind a `&` reference |
||||
--> $DIR/open_with_multiple_refs_as_single_threaded.rs:8:5 |
||||
--> tests/fail/open_with_multiple_refs_as_single_threaded.rs:8:5 |
||||
| |
||||
5 | let db_ref1 = &db; |
||||
| --- help: consider changing this to be a mutable reference: `&mut db` |
||||
... |
||||
8 | db_ref1.create_cf("cf1", &opts).unwrap(); |
||||
| ^^^^^^^ `db_ref1` is a `&` reference, so the data it refers to cannot be borrowed as mutable |
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `db_ref1` is a `&` reference, so the data it refers to cannot be borrowed as mutable |
||||
|
||||
error[E0596]: cannot borrow `*db_ref2` as mutable, as it is behind a `&` reference |
||||
--> $DIR/open_with_multiple_refs_as_single_threaded.rs:9:5 |
||||
--> tests/fail/open_with_multiple_refs_as_single_threaded.rs:9:5 |
||||
| |
||||
6 | let db_ref2 = &db; |
||||
| --- help: consider changing this to be a mutable reference: `&mut db` |
||||
... |
||||
9 | db_ref2.create_cf("cf2", &opts).unwrap(); |
||||
| ^^^^^^^ `db_ref2` is a `&` reference, so the data it refers to cannot be borrowed as mutable |
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `db_ref2` is a `&` reference, so the data it refers to cannot be borrowed as mutable |
||||
|
@ -1,10 +1,10 @@ |
||||
error[E0597]: `db` does not live long enough |
||||
--> $DIR/snapshot_outlive_db.rs:6:9 |
||||
--> tests/fail/snapshot_outlive_db.rs:6:9 |
||||
| |
||||
4 | let _snapshot = { |
||||
| --------- borrow later stored here |
||||
5 | let db = DB::open_default("foo").unwrap(); |
||||
6 | db.snapshot() |
||||
| ^^ borrowed value does not live long enough |
||||
| ^^^^^^^^^^^^^ borrowed value does not live long enough |
||||
7 | }; |
||||
| - `db` dropped here while still borrowed |
||||
|
Loading…
Reference in new issue