-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Only register inequality comparisons for orderable types (#11784)
Summary: Pull Request resolved: #11784 Inequalities only work with types that are orderable pretty much by definition. For maps in particular we allow users to call map1 < map2 but it will always throw because the map type does not support inequalities unless null is treated as a value (which it is not in GenericView's compare function which is what gets invoked). This will address #11549 where inequalities on maps can be generated in fuzzers and result in exceptions. Reviewed By: xiaoxmeng Differential Revision: D66909744 fbshipit-source-id: cc32dea19939a96a4a01afde050c5664fefb73b3
- Loading branch information
1 parent
929affe
commit 5739a6d
Showing
2 changed files
with
6 additions
and
22 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