Page MenuHomePhabricator

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

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.