diff --git a/src/common/src/lib.rs b/src/common/src/lib.rs index e3417853b0201..5e34c6e4a9705 100644 --- a/src/common/src/lib.rs +++ b/src/common/src/lib.rs @@ -35,7 +35,6 @@ #![feature(iter_order_by)] #![feature(binary_heap_into_iter_sorted)] #![feature(impl_trait_in_assoc_type)] -#![feature(map_entry_replace)] #![feature(negative_impls)] #![feature(register_tool)] #![feature(btree_cursors)] diff --git a/src/storage/hummock_trace/src/lib.rs b/src/storage/hummock_trace/src/lib.rs index 48b0a71010a74..edfa1a4bb74f4 100644 --- a/src/storage/hummock_trace/src/lib.rs +++ b/src/storage/hummock_trace/src/lib.rs @@ -12,7 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#![feature(cursor_remaining)] +// FIXME: open the assert when 1.8.2 is stable that can use #![feature(cursor_split)] instead of #![feature(cursor_remaining)] + +// see: https://github.com/rust-lang/rust/pull/109174 +// #![feature(cursor_remaining)] + #![feature(trait_alias)] #![feature(coroutines)] diff --git a/src/storage/hummock_trace/src/read.rs b/src/storage/hummock_trace/src/read.rs index bf6563123044c..200467012f3db 100644 --- a/src/storage/hummock_trace/src/read.rs +++ b/src/storage/hummock_trace/src/read.rs @@ -185,7 +185,12 @@ mod test { } assert!(deserializer.deserialize(&mut buf).is_err()); - assert!(buf.is_empty()); + // FIXME: use buf.is_empty() when 1.8.2 is stable that can use #![feature(cursor_split)] instead of #![feature(cursor_remaining)] + + // see: https://github.com/rust-lang/rust/pull/109174 + // assert!(buf.is_empty()); + + assert_eq!(buf.get_ref().len() as u64 - buf.position(), 0); } #[test]