about summary refs log tree commit diff
path: root/library/coretests
diff options
context:
space:
mode:
authorBenoît du Garreau <benoit@dugarreau.fr>2025-07-09 18:11:27 +0200
committerBenoît du Garreau <benoit@dugarreau.fr>2025-07-09 18:11:27 +0200
commit65df66831f3fdb7f20a74e843a46bb90993221eb (patch)
tree88dcf0c7e38eab0cb87e57af65ad56f012068ba7 /library/coretests
parent34555f1b0b49e4fd944b2cb9c298f15b6b5da144 (diff)
downloadrust-65df66831f3fdb7f20a74e843a46bb90993221eb.tar.gz
rust-65df66831f3fdb7f20a74e843a46bb90993221eb.zip
core: Change `BorrowedCursor::written`'s origin
This enable removing the `start` field, so `BorrowedCursor` fits in a
single register. Because `written` is almost always used in difference
with another call, this changes nothing else in practice.
Diffstat (limited to 'library/coretests')
-rw-r--r--library/coretests/tests/io/borrowed_buf.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/coretests/tests/io/borrowed_buf.rs b/library/coretests/tests/io/borrowed_buf.rs
index 60829109d50..869fc31fee9 100644
--- a/library/coretests/tests/io/borrowed_buf.rs
+++ b/library/coretests/tests/io/borrowed_buf.rs
@@ -124,7 +124,7 @@ fn reborrow_written() {
     assert_eq!(cursor2.written(), 32);
     assert_eq!(cursor.written(), 32);
 
-    assert_eq!(buf.unfilled().written(), 0);
+    assert_eq!(buf.unfilled().written(), 32);
     assert_eq!(buf.init_len(), 32);
     assert_eq!(buf.filled().len(), 32);
     let filled = buf.filled();