This is an archive of the discontinued Mercurial Phabricator instance.

rust-dirs: handle forgotten `Result`s
ClosedPublic

Authored by Alphare on Dec 12 2019, 9:59 AM.

Details

Summary

In 1fe2e574616e I introduced a temporary bugfix to align Rust code with a new
behavior from C/Python and forgot about a few Results (cargo's compiler cache
does not re-emit warnings on cached modules). This fixes it.

For the record, I am still unsure that this behavior change is a good idea.

Note: I was already quite unhappy with the setters and getters for the
DirstateMap and, indirectly, Dirs, and this only further reinforces my
feelings. I hope we can one day fix that situation at the type level; Georges
Racinet and I were just talking about devising a POC for using the builder
pattern in the context of FFI with Python, we'll see what comes out of it.

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

Alphare created this revision.Dec 12 2019, 9:59 AM
Alphare updated this revision to Diff 18633.Dec 12 2019, 10:09 AM
Alphare updated this revision to Diff 18686.Dec 13 2019, 4:52 AM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.