rust: rbtree: fix comments referring to Box instead of KBox

Several safety comments in the RBTree implementation still refer to
"Box::from_raw" and "Box::into_raw", but the code actually uses KBox.
These comments were not updated when the implementation transitioned
from using Box to KBox.

Fixes: 8373147ce496 ("rust: treewide: switch to our kernel `Box` type")
Signed-off-by: Charalampos Mitrodimas <charmitro@posteo.net>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250315-rbtree-comment-fixes-v1-1-51f72c420ff0@posteo.net
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

authored by Charalampos Mitrodimas and committed by Miguel Ojeda f6be7af4 5928642b

+3 -3
+3 -3
rust/kernel/rbtree.rs
··· 1168 1168 fn insert(self, node: RBTreeNode<K, V>) -> &'a mut V { 1169 1169 let node = KBox::into_raw(node.node); 1170 1170 1171 - // SAFETY: `node` is valid at least until we call `Box::from_raw`, which only happens when 1171 + // SAFETY: `node` is valid at least until we call `KBox::from_raw`, which only happens when 1172 1172 // the node is removed or replaced. 1173 1173 let node_links = unsafe { addr_of_mut!((*node).links) }; 1174 1174 1175 1175 // INVARIANT: We are linking in a new node, which is valid. It remains valid because we 1176 - // "forgot" it with `Box::into_raw`. 1176 + // "forgot" it with `KBox::into_raw`. 1177 1177 // SAFETY: The type invariants of `RawVacantEntry` are exactly the safety requirements of `rb_link_node`. 1178 1178 unsafe { bindings::rb_link_node(node_links, self.parent, self.child_field_of_parent) }; 1179 1179 ··· 1259 1259 fn replace(self, node: RBTreeNode<K, V>) -> RBTreeNode<K, V> { 1260 1260 let node = KBox::into_raw(node.node); 1261 1261 1262 - // SAFETY: `node` is valid at least until we call `Box::from_raw`, which only happens when 1262 + // SAFETY: `node` is valid at least until we call `KBox::from_raw`, which only happens when 1263 1263 // the node is removed or replaced. 1264 1264 let new_node_links = unsafe { addr_of_mut!((*node).links) }; 1265 1265