From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) (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 54FB32E92D4 for ; Thu, 19 Mar 2026 14:09:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773929381; cv=none; b=PKiAsn2pDTtilSUtUSJxja5dWS3v4DrtFpxXrreYwt3SLn792Kor3+CKqK4zXoOwP2tT9lfo9pA+yImuW7Je+/A5zrNw7iBNBvVglxRTvban0NQO2oM3sBi/dnr4H0YRO+/3PxS5S++EcNkL0g6zAII4h52pCFGlDOai6NWcGvQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773929381; c=relaxed/simple; bh=mON6NzajXOOuoYrbmV1J/qBmMLZ+cbFhJqAPelVGChE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ICktNrw/S6hjPQKb0Ae0Vf178lu2Pl+gjbb5z6NVmbQyLtlWPI6fs9aunx40Pz2+MsetepysxRPMVh3u7/Yi5tnHioXsuKhCeRzYEYxLlcNiusYGbRRy12bSUhLn98JuIW0cCS+8eS3P7mZxAj3a06eqWUdDgLuHjt0FH5rhguc= 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=ExqClqhZ; arc=none smtp.client-ip=209.85.128.73 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="ExqClqhZ" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-483786a09b1so9760925e9.3 for ; Thu, 19 Mar 2026 07:09:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1773929378; x=1774534178; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=kP2B356wOLQghCYXzjGgmv+A4RpAJV5Az5JCF/MyL7c=; b=ExqClqhZYVi0ofHPTVW9V9akyXhczhqhyDSTSI0PayvCv7U4WXRkVYUHvzdckasABv gJ6K9fQRlgD27J8EHdwKOKV/HhhFleSDJLJe1/2Sqc52Cre6968VcDoiVXjn6fu5bysa Wo82KS6DRDC5xMnmqqrxzurgm9b0eKfwSkSFIWJDqRwNY6L06U7rFg8O788vdGVEnKgo 3VjU9+I9kdeGZaQEcW/ueC5uPkyLn54atk9GH/9AXog3TEz5AiicheLmvbxG8uWTASGi BVRAUEklx6/3uSqI3KhEMDlIQn4W2diXrOHDZA1mwTQHHpZK0Yx5FLxvgVlPucC8Jtcl X9/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773929378; x=1774534178; h=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=kP2B356wOLQghCYXzjGgmv+A4RpAJV5Az5JCF/MyL7c=; b=hV6rOonEpwhwjmq9p+c1Kf4yDGTkXkDRazx1iDpPq3lJqHlj5GRO104PrkRQc0MqdO +Mo747qfhBp85grS7C0f8852vio8y1P5OLNN6YwYnbco8SM1zfQ5o/Cm6/gbiAVsuvgq ow1Yyf/ookXV/k6+xczuLjuhsZuHIjVFqyfaAoCk9t6NbwbsMYr8dCA0JGTXiu6IJdbH dYDJ/x7zWlojvTQLM7JthsywatSXlJJxUZ2fDngneuTE78zEpdVmHrNryN5IYaIqQtRX yH4LX1VxlpXil/bap1MYpRKCFPK7n1sjXkjAfFU7YOI1fRimDDTz7XK/yOkTKHtxQa1q 4fAQ== X-Forwarded-Encrypted: i=1; AJvYcCU+Em3+mXuYxM0xoMf9Q2vjLpypAJG4woyDBl+J2oj4H99SlVEYOE+VzLkKHz9RK1SXRbb7Uft1doA1qho=@vger.kernel.org X-Gm-Message-State: AOJu0YyI6oYxSD9XMvi+fia7OPgaC3sPfFKiufHdKWXaupleYD3ysUhI ACrneTDgQISyLfnY3+hMoZW+QZIpL7LqZzMV/zX19kr2IIV2jaoHpOqiufBY+baP/vLz7qObxYi dL623tePV9m01nG/wsw== X-Received: from wmoo17.prod.google.com ([2002:a05:600d:111:b0:485:4ce0:d98f]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:3111:b0:483:7903:c3b1 with SMTP id 5b1f17b1804b1-486f44435bdmr125626755e9.20.1773929377395; Thu, 19 Mar 2026 07:09:37 -0700 (PDT) Date: Thu, 19 Mar 2026 14:09:32 +0000 In-Reply-To: <20260319121653.2975748-2-gary@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260319121653.2975748-1-gary@kernel.org> <20260319121653.2975748-2-gary@kernel.org> Message-ID: Subject: Re: [PATCH v3 1/4] rust: move `static_assert` into `build_assert` From: Alice Ryhl To: Gary Guo Cc: Miguel Ojeda , Boqun Feng , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Yury Norov , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Thu, Mar 19, 2026 at 12:16:45PM +0000, Gary Guo wrote: > From: Gary Guo > > Conceptually, `static_assert` is also a build-time assertion that occurs > earlier in the pipeline. Consolidate the implementation so that we can use > this as the canonical place to add more useful build-time assertions. > > Reviewed-by: Yury Norov > Signed-off-by: Gary Guo Reviewed-by: Alice Ryhl