We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fb9673 commit 4ca9cf8Copy full SHA for 4ca9cf8
src/core/arena.rs
@@ -392,6 +392,11 @@ impl<T> Rc<T> {
392
}
393
394
395
+ #[inline]
396
+ pub fn ptr_eq(this: &Rc<T>, other: &Rc<T>) -> bool {
397
+ this.ptr.as_ptr() == other.ptr.as_ptr()
398
+ }
399
+
400
#[inline(always)]
401
pub fn get(&self) -> &T {
402
&self.inner().value
src/core/list.rs
@@ -537,7 +537,7 @@ impl<T> RcNode<T> {
537
if let Some(memory) = memory {
538
match arena::Rc::new(data, memory) {
539
Ok(r) => Self::Arena(r),
540
- Err(()) => unimplemented!(), // TODO: fall back to std
+ Err(arena::InsertError(data)) => Self::Std(Rc::new(data)),
541
542
} else {
543
Self::Std(Rc::new(data))
0 commit comments