From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f178.google.com (mail-dy1-f178.google.com [74.125.82.178]) (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 8E0D7175A90 for ; Mon, 2 Mar 2026 04:41:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772426507; cv=none; b=WrfG6lskkmQsl29/Om6N7PsB1Qzra+Wcg2KZARjU1zkOBTbFpUk7pY++c3V3OIWOW9jJhGnjrmcrBSgNvKlrYFaGxfcTWit3UqecdXSnBjqLxY0/U8oE6Z4ubvQ5rohOWhyvpGZj5nSidn5Cb/nvNbABxjpCYy33FLmIbZkR3SI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772426507; c=relaxed/simple; bh=r12T0BHDr/VgtXY8OdzUiznMupH4NKfZsQudEcgivDw=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=Vq71WbYV1amlUXAQcgt8lDpsiuIIJaBvSjoZ2HMWTcgbNPyUtpllWWKDGLOMo7eOXEAYamLS7Pj16w2MEC3WJUDzD30ZVNtuHepAL4TelsTI448K+xwUHnF5bUfTLYWZz5hq+V6kQjlgfeErUh2ZOr05z2N2hF2I0hhVBBeAPG4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VIUGZZRs; arc=none smtp.client-ip=74.125.82.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VIUGZZRs" Received: by mail-dy1-f178.google.com with SMTP id 5a478bee46e88-2bdfd129c52so976875eec.0 for ; Sun, 01 Mar 2026 20:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772426506; x=1773031306; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HEdFoO+0diFiw3WTsgvpxOU536f11KaeaBqMvGKLXBw=; b=VIUGZZRsFK6sL2HIR5rLWAYfprMTYfUFVWOP0hivMJvVbWbyH8e/gqsm3GybXn7mZH siE8KEzqjYUwrlZRDSyafJRNKux/m9S+50E0vJxWnr8EyZNhz2XEOhMm9RTDFhxKotmf n/mIa8IhINupTZqmqz9fIGuHT5ZzVOWprcIlsDWHi9YVHrfDFGtJBLK7+7xArJGno+F/ 6DlZWbYKTwZVFN89UjOUyMSQakxE+nn21eMqRhCBLTJCGSHp9OM8xvuvUpTEfRw8HDXF WF7lLj8HX+vXGbpJlC5Kl5NJGm9SauVxVUHV04/vBOMNc5oF1MBVQUUV3gHpW1o/LSaA 1MHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772426506; x=1773031306; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=HEdFoO+0diFiw3WTsgvpxOU536f11KaeaBqMvGKLXBw=; b=k2zBczo0UIBVKgZnm0Ge9AUTo0ur59PhO0gB+0tudOks9miojvRbtklhhPtb0zQ3ug OrgswSU/gHFpURGD6pOzICPjlSd2aaCN6fvhwRlU9pzL69QZ/w5Ez+q2jSUcto2RiaT1 hxxAEZFLkA4OhNBxfYRYBPxszLI0RCXnXqTFrBZmFrWHITwt1abFVmvWGgWzPvXipp4j bWXIo4cNjH6cq/riny4AeStoLp5VemyU2VBSQd37Mwza+ZViDBgdulQyl0iKdYBL5rOS 7jabysFsZJY6fNO3a+xVjS5LtgkMgNsn6NgNyiP+VhYXKcQNR5GNNVU9GbDqJqu09eL6 hh0Q== X-Forwarded-Encrypted: i=1; AJvYcCUN5NUUMdVryUbgVFE4uFgIXh/AQpnjoMZ5XZew/WUswS3V6QGg0eMJ+sCTWeAxiJMb/S39db3P316kLlU=@vger.kernel.org X-Gm-Message-State: AOJu0Yye4ArjzrFg4FvPCwuu1lTNUW0Mi3twFQihmjfvmPeIR10QEYGR Qz8THy9Ur2qBIWhStwsVhc4qFDpZMqOVeNGVXo2wUF+RCu1EVcZfesYP X-Gm-Gg: ATEYQzwbmaXmFmMTUh1IHar4CaLg8uoaBy72J02lKkZ5RU7zZGylKAHf0JZERiPIJBM pazsR+Ri2oEelHj4DwOvTuhigW259+mjAfvo0NmngjX9lOxUgQpbhzH3nDmsjSLBZ5moZpswM0f A+g+iEVfFU1lYRsYDz9IvIYNb0PZV+EJPuGiifS35oVxRwJnb3vFEMnesvZ5j61XetxP2WbMXbh nppegWrmT32h0Psec7P/AyMsNds08gtq7FE4Gp617PP5ApNnf2Cfhid3ze1znx/0iD51DkLkeLk MJTvTSxYYy9+TT381ki/HvliZ67RXgRsHOwaCsu6Ral5Fgiy6KLEQQVGLHcqKznXOAz6abgV4iP c/7Tm70/hRl+38airm8umFRlLeiZMV/StDR+wRT/E6H4/+iXOsrOYuhE5LFXzT4cTWEtOx1L0bK JqzDzTJsioKtpiY6uJ/sSFbsFZ6ZnZnOUG7NXWAVZkUwno5/gYgvf4/30= X-Received: by 2002:a05:7300:ad2d:b0:2be:171c:5040 with SMTP id 5a478bee46e88-2be171c532emr263438eec.3.1772426505477; Sun, 01 Mar 2026 20:41:45 -0800 (PST) Received: from localhost ([2603:8000:bb00:9b3f::18f6]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2bdfb3f898asm4442903eec.29.2026.03.01.20.41.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Mar 2026 20:41:45 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sun, 01 Mar 2026 20:41:42 -0800 Message-Id: Cc: , , Subject: Re: [PATCH v2 1/2] rust: add projection infrastructure From: "Aditya Rajan" To: "Gary Guo" , "Aditya Rajan" , "Miguel Ojeda" , "Boqun Feng" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Danilo Krummrich" , "Nathan Chancellor" , "Nicolas Schier" X-Mailer: aerc 0.21.0 References: <20260226154656.3241736-1-gary@kernel.org> <20260226154656.3241736-2-gary@kernel.org> In-Reply-To: On Sun Mar 1, 2026 at 5:10 AM PST, Gary Guo wrote: > On Sat Feb 28, 2026 at 11:38 PM GMT, Aditya Rajan wrote: >> On Thu Feb 26, 2026 at 7:46 AM PST, Gary Guo wrote: > > Good catch! > > The code below > > if self.end > slice.len() { > return None; > } > > is rightfully `>` as it's okay to have end being equal to the length. I s= uppose > this is what you mean by "somewhere else in the code"? Yes the second check which i was referring belongs to `core::ops::Range`, I agree with you it makes sense for `Range`. > This one though should indeed be `>=3D`, and I've obviously messed this o= ne up. Patch looks good to me once this is fixed for `usize` :) Thanks Aditya