Skip to content

Conversation

@martin-g
Copy link
Member

@martin-g martin-g commented Sep 9, 2025

Motivation

#7234 did it only for &MockFile::read().
The same is needed for the owned version of the API.

Solution

Add the workaround for MockFile::read() too until the new version of mockall is released with the fix.

tokio-rs#7234 did it only for
&MockFile::read().
The same is needed for the owned version of the API.
@ADD-SP ADD-SP added A-tokio Area: The main tokio crate M-fs Module: tokio/fs labels Sep 9, 2025
@ADD-SP ADD-SP changed the title fs: Fill the destination buffer with 0s for MockFile::read() fs: initialize the dst buf in MockFile::read() to satisfy the Miri Sep 9, 2025
@ADD-SP ADD-SP changed the title fs: initialize the dst buf in MockFile::read() to satisfy the Miri fs: initialize the dst in MockFile::read() to satisfy the Miri Sep 9, 2025
@Darksonn Darksonn merged commit 94b6df6 into tokio-rs:master Sep 10, 2025
97 checks passed
@martin-g martin-g deleted the fill-the-destination-mockfile branch September 10, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tokio Area: The main tokio crate M-fs Module: tokio/fs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants