Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2135231lqt; Mon, 22 Apr 2024 02:26:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtred6giqC9eJNCJDC8PaKmE89yOOyiBu79eJLC99qg3aKrji9sRm5HzOs4RekR1xlfJI85GOZs/UUVhPMeIpPYhryA1Aclygw9Gpxng== X-Google-Smtp-Source: AGHT+IHgW+tJrDZJYEwb88RJoSDm1PJcoNYp43pHp26tpdpvFUID4ht13SeuKZmn2jyJIqq6kKos X-Received: by 2002:a17:906:3286:b0:a52:3ecb:ad83 with SMTP id 6-20020a170906328600b00a523ecbad83mr5533499ejw.38.1713777971639; Mon, 22 Apr 2024 02:26:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713777971; cv=pass; d=google.com; s=arc-20160816; b=smDtUZv9WoHtS42AqfJ8VcVHvOUacmo0PnbJt1oQOYIcpFiJqli3OhVK8lVrGlCZb9 /hLR/SESVwdGccWgIMtScinvewbCHDKL7mdV7G9NVcsY0LudiUo8Rz6ZUbIWKdUrL2Bw STgzZJhL14fEf1qmkcpclR3s3jLTAXrPLQyUwOCrIt2F4D30b7LE9Z68kru/SBXmS6s8 aTaU8Axs6GD93elS0E+opAygBhvhxqdMxZlu2wG3DqR3A1p+SQ9hs/2Su+NIcLZbLc3M mN8Yz2LpvVCVvujDLKT9KyFS1nXP/1McQS3mFLQ/LIrHrIutFHel8c9LV8oA2jp/Z0me I6FA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=u02hciJF/25Uzt60NJ0xbu51k6rfBNzWcPBLcSlUo80=; fh=/hWer7anav8IK4Ys7LX7yYYhP3EWg/DGlALM+Sc6XpI=; b=0EK4Mab4uH6SNnBndlE/r7mqYofFHZDDhv8DUJ0iRBEHdlC0irUGHYGjP/3TanCmR9 A8kAPW5M+NHmlDlLojXvTv689TRxuVeA2Kom0BpE7myiELoDG26FZBlKTVK+2xnKtsfm 1h/xvydSzSypdgwXTQVjVSH4dmDth+1TtWMTHtPdpyzvnWJUyVEUnXonxjfkSmcymHxy JuvHPZNS5Y63vhYij/3psZlZ9zPLeysu2ia16NqbRFzcJnch7PJ+SaYJTTzb4ogKmCoV GAo028LwPogpVjX3+yhAeDjjFvQnfrsPXnmGkcu5gfYdB93Gggp527WWCBd1L82tkP05 /S0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=twZsfRK3; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-153088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153088-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id jt10-20020a170906dfca00b00a5243968262si5702922ejc.472.2024.04.22.02.26.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 02:26:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=twZsfRK3; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-153088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153088-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5F4501F2152B for ; Mon, 22 Apr 2024 09:26:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7016C55E74; Mon, 22 Apr 2024 09:25:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="twZsfRK3" Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com [209.85.222.49]) (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 4E3AC5490A for ; Mon, 22 Apr 2024 09:25:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713777958; cv=none; b=SNNHjp45lAV3vlRsNJymp4YRE62z9z3kiflBf0VMOXv5yUwYGxtrzPxEguPo89aECN8i3dytrAO2mh1zqZt/xOx+DAfrvVeaGsBYR7QNJVoECfSP+uYyJ57Beyigaj6sEvSOrBDOfl1zrcbJ0Cuj9UfuFYZaXbA5uKnoFo5Ilag= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713777958; c=relaxed/simple; bh=ye+YDeypngJNVRNApH4ApNOV3asObjEsmLgFOfVV0AA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Tp2a5whQswCJ7cwj4bkK6MecgY5LAJOw6mjdcVQyrWMO5Gqqk8F8ezLH8NjyPurExr17voeLSKaPdQFj3RT1itI1w2sg0sjCKevjrHIhFC8bjwtJdo1rfaqeYdiuPAU5mVBXEy1W7eOyuIRNFridVPS6x/K0hwIh4fHFFyDUKjk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=twZsfRK3; arc=none smtp.client-ip=209.85.222.49 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=google.com Received: by mail-ua1-f49.google.com with SMTP id a1e0cc1a2514c-7e7cf5cc1d0so3391207241.0 for ; Mon, 22 Apr 2024 02:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713777956; x=1714382756; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=u02hciJF/25Uzt60NJ0xbu51k6rfBNzWcPBLcSlUo80=; b=twZsfRK3ziG0zUb1bCJXi8C9F56uvM1GjgJNPIFDkI+Z/QqUDW+ujcsdzCaqKqm6YL 0mwFX8clbtzZmG6070BsZODiLVFyOvnD9XXXEFVhSNgbJa0vXnevR4Kz9VVs0QcAzSBB MTJdLjhLWgnrhN6kicMs/vxU2u9W+ompDL1GQFXLDh3IWDKiAlmn4fQzxPjv8J2WyOcR f1j3Q9UnrLDBTFGS/5EHfOQZiO8BfXIwB07OIpsnXNfGtRJrjuUzSR8rnLymI7Hq8I9C ibyqWof0mrDVQXnYgcspRBgnNYcU+HCmfE0doCBJq3F1rejFI/Mu28ItdnoSk0oF0N0T 0hbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713777956; x=1714382756; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u02hciJF/25Uzt60NJ0xbu51k6rfBNzWcPBLcSlUo80=; b=KOLwmmAwvVtpCsebWzIToPi+pzC1bs7eRnTDcyrJjUNGGlAREAoMA8t1OiffD9XN8C vixWtdkMCYKg0IX+0DECcsbuY6/w4jruNQSzXb2sFiQCtG+nji9g/44LRh0pVB+BOZui 6qdawtxvrsFL6KV0KDEpV2QboU8sGxmEwKUQ/5b61d+HwvkEDpoz76F/mWz+yfw63lMY MBmkZ/c6Bg/FUVQd/ChMu5nwNwZvJnVFPuolzhzv7ffpKva5wNs2aucHgqabuejIjfQ/ mR5uIl+IvcnOacz0UYoxva+JRN45uXnZ5rNf6IvhEdXuzUrllsUdm4xxQji1BVxrekKX QufA== X-Forwarded-Encrypted: i=1; AJvYcCVpNxfBTqdRF9gsqHukhbzyMVoxOYuq8Kj6RnmblCvflAnV3KVEE1xZYVQR0lDAEYZm+jSvuzwA2PedGkBCC4kcdgNvXD508X2HPtyU X-Gm-Message-State: AOJu0Yy2HlnRO3QVn2OhHpnVt2GvzBYp3lVBl7g6Cee+zVQfNVoQQQUe Ku+EayLxulXeKe9orAdcHD7Wk7l8GRreaC8tAO5GHT/9hbxNPqm69brpJwGxP2mcRZfPgtD994g LKSuJYCt7gQ/GL4eFayvEemkEdq8W4lNR4j8A X-Received: by 2002:a05:6122:2008:b0:4d4:34b2:9a89 with SMTP id l8-20020a056122200800b004d434b29a89mr13136946vkd.8.1713777956098; Mon, 22 Apr 2024 02:25:56 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240422091215.526688-1-ojeda@kernel.org> In-Reply-To: <20240422091215.526688-1-ojeda@kernel.org> From: Alice Ryhl Date: Mon, 22 Apr 2024 11:25:45 +0200 Message-ID: Subject: Re: [PATCH] kbuild: rust: remove unneeded `@rustc_cfg` to avoid ICE To: Miguel Ojeda Cc: Masahiro Yamada , Wedson Almeida Filho , Alex Gaynor , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , David Gow , Brendan Higgins , linux-kbuild@vger.kernel.org, rust-for-linux@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 22, 2024 at 11:13=E2=80=AFAM Miguel Ojeda wr= ote: > > When KUnit tests are enabled, under very big kernel configurations > (e.g. `allyesconfig`), we can trigger a `rustdoc` ICE [1]: > > RUSTDOC TK rust/kernel/lib.rs > error: the compiler unexpectedly panicked. this is a bug. > > The reason is that this build step has a duplicated `@rustc_cfg` argument= , > which contains the kernel configuration, and thus a lot of arguments. The > factor 2 happens to be enough to reach the ICE. > > Thus remove the unneeded `@rustc_cfg`. By doing so, we clean up the > command and workaround the ICE. > > The ICE has been fixed in the upcoming Rust 1.79 [2]. > > Cc: stable@vger.kernel.org > Fixes: a66d733da801 ("rust: support running Rust documentation tests as K= Unit ones") > Link: https://github.com/rust-lang/rust/issues/122722 [1] > Link: https://github.com/rust-lang/rust/pull/122840 [2] > Signed-off-by: Miguel Ojeda Reviewed-by: Alice Ryhl