From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00C3B21771B for ; Sat, 21 Feb 2026 08:47:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771663662; cv=none; b=UzFWSWDEvN+JdKMCRNaYbLiXZDgCosCf50O7/Xn/b8IQVdxZRqDgOSsZBKCAEUiGGiFMCwK1V8shytvpFSYmNyiT/wv0fyS9gX4Tccio8/hJi7wNAgex4IvgxnViXd+ZDKdUgC9GO8JeRPHGAMWuQC1bSRCjyO9HHh77Wa1lWvg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771663662; c=relaxed/simple; bh=H6BzFIb0NlfbbKfxswKXdQcDHexAWk7Is2ETT2nrk5w=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=TBzqcIyOvNDAhCrxZ6zY+ktmZfHCZ+IXfXNZlYKyUecieXdL7XaCwLEgfHm8P5d0GUw073khmLKttcZi+FGvjaBiPn5hOyLFAPNf2HzCHim5DnmZqegDyna7JuH0AevE9OKyuutSMIKcKZyzvatSnDIAjUDTsQZ26kG2J2/BLh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=YvwzMDyC; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="YvwzMDyC" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-4837f288194so23053225e9.2 for ; Sat, 21 Feb 2026 00:47:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1771663659; x=1772268459; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=H6BzFIb0NlfbbKfxswKXdQcDHexAWk7Is2ETT2nrk5w=; b=YvwzMDyCbNZ8kqMeUIvw4LkkdqIZ7SW7GvkTjyIuCmBM5kdy+Ws5EIqNDRogFxhLT1 BEvyvO3dnWpaXYbPn/+95aTvahN3rvq/41159AHdmmGV7R79D2H1Sni6VNqwY2jMefTr 1SAu1gIhWLVrc7b4tcQQkvNPS62W2KszAuX4+/zAu7LCSUPgFf6t8aPvQaJgB/dJHGCM 2FPMYz3yJTdrDoTlur77Rcf6rU0s2PmsVOFHFV/8azNhu14YLGLeHmdRheT+16n3JhiZ BYtLP2wH3atRm9Aw21jYpNfTv6Cab2m8yNXWAMAwpYah1eMHFqmVMPof77wUqsAYi8eN VEfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771663659; x=1772268459; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=H6BzFIb0NlfbbKfxswKXdQcDHexAWk7Is2ETT2nrk5w=; b=bbfGi4SbstnHC4gO9xawm4fRZDRq+MzGOC+IoQtaSgSIkm12X8+0c3V0FCnzlNGAcB zkQGfIwrav4zsJn2SclcYOTaWQn+SmyXLxU179v+3/xuvIynckyMYGY5JDZ+Vh6Joa+4 xf4K4ikBUsqL28ubLG6pNVj9b0djQdgmHRpMUrDrSM/P0aeS5TGMtsz/pTTBtX7ZRrMP R9CPPzafB2t0wCWIlu/MYtw8Ipb2dO2TdEInKZxy5CEO7t6MjjgUgAWz08C+DWgWEruB graO+NHdCwVLDUJhdV/c5sQCqcHaa6EAZqC4vDRxqXoEolgF+T23YNDkccIrZZBnjl+u ewJw== X-Forwarded-Encrypted: i=1; AJvYcCU483YW7tKCE+XWcdj5YLFC8iC+p6Sx79uvWslskpYnDfqLl6+N8F5TOgCaXkjrXsqNStiHZpcu/0+czag=@vger.kernel.org X-Gm-Message-State: AOJu0YzxLNQUmd+TeM3W9sMLVBcErHaaR1hMAaVw93n1u81lOUElD6M/ u+5FeBl4QvwbtuNxjqtItNk6vwWRqum4NKk/KYLqEqXsf/zSw8mUDOnH25vI6PmXgC8NdM3KVc3 tCy7DRbtX2/ii4fQROw== X-Received: from wmjt13.prod.google.com ([2002:a7b:c3cd:0:b0:477:9d5d:3b50]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:314a:b0:47e:e20e:bbb4 with SMTP id 5b1f17b1804b1-483a9637a24mr32439825e9.26.1771663659307; Sat, 21 Feb 2026 00:47:39 -0800 (PST) Date: Sat, 21 Feb 2026 08:47:38 +0000 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260220-atomic-sub-v3-0-e63cbed1d2aa@kernel.org> <20260220-atomic-sub-v3-3-e63cbed1d2aa@kernel.org> Message-ID: Subject: Re: [PATCH v3 3/3] rust: atomic: update a safety comment in impl of `fetch_add` From: Alice Ryhl To: Miguel Ojeda Cc: Andreas Hindborg , Will Deacon , Peter Zijlstra , Boqun Feng , Mark Rutland , Gary Guo , Miguel Ojeda , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Benno Lossin , Trevor Gross , Danilo Krummrich , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 20, 2026 at 07:51:11PM +0100, Miguel Ojeda wrote: > On Fri, Feb 20, 2026 at 11:20=E2=80=AFAM Alice Ryhl wrote: > > > > Because I doubt `as_ptr()` documents these things explicitly. (To be > > clear, I don't think as_ptr() needs to do so - that'd be really > > verbose.) >=20 > It documents them, which is why I suggested it. I guess I should have double checked. In that case the wording is great. Alice