Skip to content

Commit 022b88d

Browse files
author
gitbot
committed
Update VeriFast proofs
1 parent 37c6ab2 commit 022b88d

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

verifast-proofs/alloc/collections/linked_list.rs-negative/original/linked_list.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1943,7 +1943,8 @@ impl<'a, T, A: Allocator> CursorMut<'a, T, A> {
19431943

19441944
/// An iterator produced by calling `extract_if` on LinkedList.
19451945
#[stable(feature = "extract_if", since = "1.87.0")]
1946-
#[must_use = "iterators are lazy and do nothing unless consumed"]
1946+
#[must_use = "iterators are lazy and do nothing unless consumed; \
1947+
use `extract_if().for_each(drop)` to remove and discard elements"]
19471948
pub struct ExtractIf<
19481949
'a,
19491950
T: 'a,

verifast-proofs/alloc/collections/linked_list.rs-negative/verified/linked_list.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2108,7 +2108,8 @@ impl<'a, T, A: Allocator> CursorMut<'a, T, A> {
21082108

21092109
/// An iterator produced by calling `extract_if` on LinkedList.
21102110
#[stable(feature = "extract_if", since = "1.87.0")]
2111-
#[must_use = "iterators are lazy and do nothing unless consumed"]
2111+
#[must_use = "iterators are lazy and do nothing unless consumed; \
2112+
use `extract_if().for_each(drop)` to remove and discard elements"]
21122113
pub struct ExtractIf<
21132114
'a,
21142115
T: 'a,

verifast-proofs/alloc/collections/linked_list.rs/original/linked_list.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1943,7 +1943,8 @@ impl<'a, T, A: Allocator> CursorMut<'a, T, A> {
19431943

19441944
/// An iterator produced by calling `extract_if` on LinkedList.
19451945
#[stable(feature = "extract_if", since = "1.87.0")]
1946-
#[must_use = "iterators are lazy and do nothing unless consumed"]
1946+
#[must_use = "iterators are lazy and do nothing unless consumed; \
1947+
use `extract_if().for_each(drop)` to remove and discard elements"]
19471948
pub struct ExtractIf<
19481949
'a,
19491950
T: 'a,

verifast-proofs/alloc/collections/linked_list.rs/verified/linked_list.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3970,7 +3970,8 @@ impl<'a, T, A: Allocator> CursorMut<'a, T, A> {
39703970

39713971
/// An iterator produced by calling `extract_if` on LinkedList.
39723972
#[stable(feature = "extract_if", since = "1.87.0")]
3973-
#[must_use = "iterators are lazy and do nothing unless consumed"]
3973+
#[must_use = "iterators are lazy and do nothing unless consumed; \
3974+
use `extract_if().for_each(drop)` to remove and discard elements"]
39743975
pub struct ExtractIf<
39753976
'a,
39763977
T: 'a,

0 commit comments

Comments
 (0)