]> git.lizzy.rs Git - rust.git/blobdiff - library/alloc/src/collections/btree/search.rs
Fix comments based on review
[rust.git] / library / alloc / src / collections / btree / search.rs
index f376b3cde02e596523ed3944e76f30aad0717f81..5dc62d4ec70da16ec636b7d148cc976d17db50f2 100644 (file)
@@ -94,9 +94,8 @@ pub fn search_tree_for_bifurcation<'r, Q: ?Sized, R>(
         K: Borrow<Q>,
         R: RangeBounds<Q>,
     {
-        // WARNING: Inlining these variables would be unsound (#81138)
-        // We assume the bounds reported by `range` remain the same, but
-        // an adversarial implementation could change between calls
+        // Inlining these variables should be avoided. We assume the bounds reported by `range`
+        // remain the same, but an adversarial implementation could change between calls (#81138).
         let (start, end) = (range.start_bound(), range.end_bound());
         match (start, end) {
             (Bound::Excluded(s), Bound::Excluded(e)) if s == e => {