-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make generic container types InteriorMutable
Affects NSEnumerator, NSArray, NSDictionary, NSSet and the mutable variants. This removes all `_mut` methods and `Mut` iterators, as these are now both unsound and unnecessary. Most methods are also converted to `_retained` variants, as returning references is unsound if the collection is mutated. `_unchecked` variants are provided as alternatives instead. At the same time, we remove a bunch of helper methods that are now unnecessary, including `from_vec`. Finally, we add a fuzz target for ensuring that the safe methods do catch mutation mistakes.
- Loading branch information
Showing
45 changed files
with
1,862 additions
and
2,539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 65 additions & 39 deletions
104
crates/test-assembly/crates/test_fast_enumeration/expected/apple-aarch64.s
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
105 changes: 66 additions & 39 deletions
105
crates/test-assembly/crates/test_fast_enumeration/expected/apple-armv7s.s
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.