From b7566a0ef7ef167347c2d5c85bb64e8746e78f4a Mon Sep 17 00:00:00 2001 From: Jake Hughes Date: Thu, 18 Apr 2024 11:06:40 +0100 Subject: [PATCH] Fixed self --- library/std/src/gc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/gc.rs b/library/std/src/gc.rs index 3cab30749b977..b238a4d5a4af7 100644 --- a/library/std/src/gc.rs +++ b/library/std/src/gc.rs @@ -313,7 +313,7 @@ impl Gc { /// Get a raw pointer to the underlying value `T`. #[unstable(feature = "gc", issue = "none")] pub fn into_raw(this: Self) -> *const T { - Self::as_ptr(&self) + Self::as_ptr(&this) } /// Get a raw pointer to the underlying value `T`.