( )⚙ D11446 rust: Update the memmap2 crate to version 0.4.0

This is an archive of the discontinued Mercurial Phabricator instance.

rust: Update the memmap2 crate to version 0.4.0
ClosedPublic

Authored by SimonSapin on Sep 17 2021, 2:58 AM.

Details

Summary

This version:

  • Optionally implements the StableDeref trait, removing the need for a wrapper type doing that
  • Adds support for mapping empty files, which can routinely happen for dirstate-v2 data files. This was a cause of some failing tests when running with run-tests.py --rhg --extra-config-opt rhg.status=1

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

SimonSapin created this revision.Sep 17 2021, 2:58 AM
Alphare accepted this revision.Sep 20 2021, 4:59 AM
This revision is now accepted and ready to land.Sep 20 2021, 4:59 AM
Alphare added inline comments.Sep 20 2021, 5:02 AM
rust/Cargo.lock
3

This is not supposed to be here yet (since we're still on 1.41.1 officially), so I'll remove it from the changeset.

This revision was automatically updated to reflect the committed changes.