From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="BybPD/h+" 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-Google-Smtp-Source: AGHT+IHzGqRc5VnbP00Jo3Xc0zRJ6YpmB8/ccl+F//H9hD5P0VDV2TgQ4Y+PEIWCp01pNe7fCDf3Nd+l617M5tt21mY= 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