Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1020321rdb; Mon, 19 Feb 2024 01:16:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUdjhJhxk17RkYL86rfrIpIFRt2FATmM70BeMClPCnhcwHj764gDSohDpxxP7c6HZNOt1nqR17Fv0QYLeRuxo9h5l7NUzoBSoaeocTgGw== X-Google-Smtp-Source: AGHT+IFYE+6NKdw1Gaw8gKwT+F/qNTpCLCjRxOjMxeL87Tyk/AuzVyS0DouF4oylCJfimk2EW6id X-Received: by 2002:a50:ec97:0:b0:564:a7b2:8a9b with SMTP id e23-20020a50ec97000000b00564a7b28a9bmr12485edr.38.1708334212650; Mon, 19 Feb 2024 01:16:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708334212; cv=pass; d=google.com; s=arc-20160816; b=05h/r4xgJ4H+7EJ0dWWq7cMlDZtY2nTpDga4LmQUcytmvUc5Z6azGpmXEzV9aCkd/y TtMVN3DQrVHhEXVaIo1iTXFVg10hkBwLUyLw8wZIy4TH3kH5YHEV39Md2X9JW285DeXH hWmWjGAHZQ485fwH8vdTEO5UjzeMlZICFRwEvdcnM8VjX4kkNjf+Azk6qKk3bqxmfmwN Z44VbtcCPRp0MItTJrG/aRMXNl3k26BqfCLDLNBQXNmejwLoOLJhDtCy8u0naJi3tWII u6KNFtAQqnS5NYH3BQYsrSaWp7ALnZIosvw/xgmLj247KTFVFFV96MCIGoA01sI8vgNq YTLw== 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=pITza/p79puTXkzLF57AKL2ujyb3FxitC2KLqmYBBWs=; fh=tXlRaOTylYWf5rYz2qcaT2T8keK2NIAcNRw94y37NGg=; b=oeYVIO5oWRzMdqmjJ13bPAhDn7b1ZYJc+MnBCKy23r55JQnz40YYCRY8JMBT5LkdNn hI6CCGvTHgBo2l9KRkEMiSfbgfXyQPinBZPhLlSqewWns4j9sNvnffqAyqUX6MGYhhgm OlRZ+H3binHWLy1l1gGzO7vcbBV9E9w6+TXh8CjykBCMvbFoNuEIwQyh8Yho1tn/31n5 TdzJCLrEjH0/gI9vGpj1AEvGhVOxJmmEfgaBIcF6YcarQxGnLMJWs549e6cjCFeG0LTX DThbdJd/6gR8/ZE26g27CJ5KNzEbzCE6ce6tm5Jc1a4J90LGspd7VMydV9ogpwdCn1uP ujVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="BybPD/h+"; 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-71007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71007-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 t22-20020a508d56000000b005643d1f8397si1568346edt.475.2024.02.19.01.16.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 01:16:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71007-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="BybPD/h+"; 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-71007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71007-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 1CADB1F23A99 for ; Mon, 19 Feb 2024 09:09:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0407022323; Mon, 19 Feb 2024 09:09:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="BybPD/h+" Received: from mail-ua1-f45.google.com (mail-ua1-f45.google.com [209.85.222.45]) (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 8891021360 for ; Mon, 19 Feb 2024 09:09:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708333763; cv=none; b=UtS75MUXXDv0AxvTb4AcZsK4r1U7h/XS8+RYTvg8f1QUdXRWWWgjXsGo4/6462cRBpI0ziaCKwehW3bsD8XsfVqwC266c9KuAbLgpXM970f2KWMhYE2t1SWPg/F2aiQN3gCN1VcROsaz2zH5kXwKleutCAJIzXDHSOM5Ztpftfw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708333763; c=relaxed/simple; bh=DJul3TWyiyFiIYG37u7BiMg+il0uv1aR4uQbAGcWQQ8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gD12qt4q6cBf+kD5RDH9H02Oz3oxcgh1C7jcvY17RH3q5Cwq1oEKe8p/3Y4a3UYESeTxRIsc8a0me5WPCRhz0jjzUuRtywhubh5DKOoV57HeaN4S5wDuSqrVVeekazexSDzYZaZarnjdp6Wsw4yH3znvHLFfa8eAo5PFQuOMaHM= 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=BybPD/h+; arc=none smtp.client-ip=209.85.222.45 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-f45.google.com with SMTP id a1e0cc1a2514c-7d6a772e08dso1302572241.2 for ; Mon, 19 Feb 2024 01:09:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708333760; x=1708938560; 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=pITza/p79puTXkzLF57AKL2ujyb3FxitC2KLqmYBBWs=; b=BybPD/h+28wYwaWtfH7FE2hIOxseZz8JgPQu3Q8rec9SmD5gsV3m3AxX5YJ7m4+zwO eBg1V0yziJ1jgbijM/6D6NbPVZEcPByjeYp+qyrpKunRK9aia8qv+INEvZsbP6gO/mNu /MCg8Ku4uBefcLcvOARySenfMQwkI5A8PbjyJOZgi0Q5ah4+P/RtCEG+79anzTK8y8z/ T6zqYB1Q/rLvkJ3fQMIYXrbjYSSM/g4ikYGnaz/jTKR6BbZjlgKHawQQhJxiG8XxnTe6 2NEQb8k1RC5dfvd0w48L7/i15xPCjJhFOK1SlqRRABgFkM7hAELH6uDFlMEcRLifVuwl Mn3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708333760; x=1708938560; 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=pITza/p79puTXkzLF57AKL2ujyb3FxitC2KLqmYBBWs=; b=VGPXS+L+XnKf0SSWX2IVl9LQSMRgMruTPEN3vyyIqkO3uLseUsqOZQemH+MxGv1UNI Ze1Mlp77WAWwRMKH9GUUBHLP7zz3gYKRetycP6sfDboeIri7CJkFY0yoXYqIw+eiE0Q+ ejLgyIib49QqOuTg6a1RNXkroxfyweMShEWQWLWNpMVIao/pNylvUZ2MTjFgaNlJN3ic 1S7Nmu+jwpcyEqnB2CE6rZ4tcimjoTmYhCsgdsf17euYNFr/qlK4B7mkfRMuGtNW7lpe r2nopx1uqEb3qjbWYVAoIthpIrDOBl/AhqeXfWTM2UCTk2LMwaKfMMEv3qRheoQVjQF7 ZPRw== X-Forwarded-Encrypted: i=1; AJvYcCXzRE72+xIa+yMwb0j9cA0EazoJKR25aLjB2mk3lKYhBd2i2gtDeOw09UVTAPExtRHf5kybXalzOrPA2U/E1yLlcIdXud21quI9D2n9 X-Gm-Message-State: AOJu0YwGAhnOYe4imjL7IiPntCfrRXgHFLv2JhHqU0svNB7vlbk2UimE 5SmpYv5cYuS80wuL/6nmiOYM123u5M6zqPc6zfeP3yNtUrAeGUSoQI8jV3VLhVJgBGQ/DjPRKyS qKq4Gd9fiBG4+cSlEeULvqLhZsbTg3rWbcKNA X-Received: by 2002:a05:6102:6c6:b0:46e:c3db:aab6 with SMTP id m6-20020a05610206c600b0046ec3dbaab6mr8365013vsg.24.1708333760384; Mon, 19 Feb 2024 01:09:20 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240217002638.57373-1-ojeda@kernel.org> <20240217002638.57373-2-ojeda@kernel.org> In-Reply-To: <20240217002638.57373-2-ojeda@kernel.org> From: Alice Ryhl Date: Mon, 19 Feb 2024 10:09:09 +0100 Message-ID: Subject: Re: [PATCH 2/2] rust: upgrade to Rust 1.76.0 To: Miguel Ojeda Cc: Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Masahiro Yamada , linux-kbuild@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Feb 17, 2024 at 1:27=E2=80=AFAM Miguel Ojeda wro= te: > > This is the next upgrade to the Rust toolchain, from 1.75.0 to 1.76.0 > (i.e. the latest) [1]. > > See the upgrade policy [2] and the comments on the first upgrade in > commit 3ed03f4da06e ("rust: upgrade to Rust 1.68.2"). > > # Unstable features > > No unstable features that we use were stabilized in Rust 1.76.0. > > The only unstable features allowed to be used outside the `kernel` crate > are still `new_uninit,offset_of`, though other code to be upstreamed > may increase the list. > > Please see [3] for details. > > # Required changes > > `rustc` (and others) now warns when it cannot connect to the Make > jobserver, thus mark those invocations as recursive as needed. Please > see the previous commit for details. > > # Other changes > > Rust 1.76.0 does not emit the `.debug_pub{names,types}` sections anymore > for DWARFv4 [4][5]. For instance, in the uncompressed debug info case, > this debug information took: > > samples/rust/rust_minimal.o ~64 KiB (~18% of total object size) > rust/kernel.o ~92 KiB (~15%) > rust/core.o ~114 KiB ( ~5%) > > In the compressed debug info (zlib) case: > > samples/rust/rust_minimal.o ~11 KiB (~6%) > rust/kernel.o ~17 KiB (~5%) > rust/core.o ~21 KiB (~1.5%) > > In addition, the `rustc_codegen_gcc` backend now does not emit the > `.eh_frame` section when compiling under `-Cpanic=3Dabort` [6], thus > removing the need for the patch in the CI to compile the kernel [7]. > Moreover, it also now emits the `.comment` section too [6]. > > # `alloc` upgrade and reviewing [...] > Link: https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1= 760-2024-02-08 [1] > Link: https://rust-for-linux.com/rust-version-policy [2] > Link: https://github.com/Rust-for-Linux/linux/issues/2 [3] > Link: https://github.com/rust-lang/compiler-team/issues/688 [4] > Link: https://github.com/rust-lang/rust/pull/117962 [5] > Link: https://github.com/rust-lang/rust/pull/118068 [6] > Link: https://github.com/Rust-for-Linux/ci-rustc_codegen_gcc [7] > Signed-off-by: Miguel Ojeda Reviewed-by: Alice Ryhl