You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Types that implement this trait are stable as keys of `FxHash{Map, Set}`, and maps and sets can be safely used as iterators.
65
+
pubtraitStableKey{}
66
+
67
+
implStableKeyforString{}
68
+
implStableKeyfor&str{}
69
+
implStableKeyfor&ruff_python_ast::name::Name{}
70
+
implStableKeyfor ruff_python_ast::name::Name{}
71
+
implStableKeyfor ruff_db::system::SystemPathBuf{}
72
+
implStableKeyfor url::Url{}
73
+
64
74
/// Always use this instead of [`rustc_hash::FxHashSet`].
65
75
/// This struct intentionally does not implement `(Into)Iterator` because the iterator's output order will be unstable if the set's values depend on salsa's non-deterministic IDs.
66
76
/// Only use `unstable_iter()`, etc. if you are sure the iterator is safe to use despite that.
@@ -108,6 +118,16 @@ impl<V> std::ops::DerefMut for FxHashSet<V> {
0 commit comments