From 88d7fb32d4677ef72a5d44db4ea445cecd1e1def Mon Sep 17 00:00:00 2001 From: pantonshire Date: Sat, 26 Jul 2025 15:11:17 +0100 Subject: [PATCH] fixes for latest nightly --- stage_3/protected32.json | 2 +- stage_3/src/spin.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stage_3/protected32.json b/stage_3/protected32.json index ec2b6ab..d880035 100644 --- a/stage_3/protected32.json +++ b/stage_3/protected32.json @@ -5,7 +5,7 @@ "data-layout": "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i128:128-f64:32:64-f80:32-n8:16:32-S128", "target-endian": "little", "target-pointer-width": "32", - "target-c-int-width": "32", + "target-c-int-width": 32, "executables": true, "linker-flavor": "ld.lld", "linker": "rust-lld", diff --git a/stage_3/src/spin.rs b/stage_3/src/spin.rs index 4374fc9..3bd89ee 100644 --- a/stage_3/src/spin.rs +++ b/stage_3/src/spin.rs @@ -13,7 +13,7 @@ impl Spinlock { } } - pub fn lock(&self) -> SpinlockGuard { + pub fn lock(&self) -> SpinlockGuard<'_, T> { // If we observe `locked` was `false`, then: // - Use acquire ordering, so nothing inside the critical section gets reordered before we // observed the `false` value.