annotate tests/blacklists/linux-vfat @ 49000:dd6b67d5c256 stable

rust: fix unsound `OwningDirstateMap` As per the previous patch, `OwningDirstateMap` is unsound. Self-referential structs are difficult to implement correctly in Rust since the compiler is free to move structs around as much as it wants to. They are also very rarely needed in practice, so the state-of-the-art on how they should be done within the Rust rules is still a bit new. The crate `ouroboros` is an attempt at providing a safe way (in the Rust sense) of declaring self-referential structs. It is getting a lot attention and was improved very quickly when soundness issues were found in the past: rather than relying on our own (limited) review circle, we might as well use the de-facto common crate to fix this problem. This will give us a much better chance of finding issues should any new ones be discovered as well as the benefit of fewer `unsafe` APIs of our own. I was starting to think about how I would present a safe API to the old struct but soon realized that the callback-based approach was already done in `ouroboros`, along with a lot more care towards refusing incorrect structs. In short: we don't return a mutable reference to the `DirstateMap` anymore, we expect users of its API to pass a `FnOnce` that takes the map as an argument. This allows our `OwningDirstateMap` to control the input and output lifetimes of the code that modifies it to prevent such issues. Changing to `ouroboros` meant changing every API with it, but it is relatively low churn in the end. It correctly identified the example buggy modification of `copy_map_insert` outlined in the previous patch as violating the borrow rules. Differential Revision: https://phab.mercurial-scm.org/D12429
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 05 Apr 2022 10:55:28 +0200
parents 352abbb0be88
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16339
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
1 # invalid filenames
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
2 test-add.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
3 test-init.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
4 test-clone.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
5 test-contrib.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
6 test-hgweb-raw.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
7 test-walk.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
8
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
9 # no sockets or fifos
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
10 test-hup.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
11
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
12 # no hardlinks
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
13 test-hardlinks.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
14 test-relink.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
15
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
16 # exec bit problems
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
17 test-convert-bzr-114.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
18 test-convert-bzr-directories.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
19 test-convert-bzr-merges.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
20 test-convert-bzr-treeroot.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
21 test-convert-darcs.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
22 test-merge-tools.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
23
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
24 # debugstate exec bit false positives
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
25 test-dirstate.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
26 test-filebranch.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
27 test-merge-remove.t