diff --git a/library/alloc/src/collections/btree/search.rs b/library/alloc/src/collections/btree/search.rs index e599800c3c7..5dc62d4ec70 100644 --- a/library/alloc/src/collections/btree/search.rs +++ b/library/alloc/src/collections/btree/search.rs @@ -94,9 +94,8 @@ impl NodeRef, R: RangeBounds, { - // It might be unsound to inline these variables if this logic changes (#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 => { @@ -114,8 +113,6 @@ impl NodeRef upper_edge_idx { panic!("Ord is ill-defined in BTreeMap range") }