Message ID | 20230418214347.324156-1-ojeda@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3146824vqo; Tue, 18 Apr 2023 14:49:22 -0700 (PDT) X-Google-Smtp-Source: AKy350Y4XovGAoaQqX48Mk5+mIF9r32FSOUTZPC9E6xLwORQf/lc3UwX09Bnl6vLWcqiVIJ99U1V X-Received: by 2002:a17:902:c94f:b0:1a6:dc4a:b8fa with SMTP id i15-20020a170902c94f00b001a6dc4ab8famr3833860pla.54.1681854562540; Tue, 18 Apr 2023 14:49:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681854562; cv=none; d=google.com; s=arc-20160816; b=mKon4JvhuSHNRZLM5nIzaI4ABkIwpDF7zjW9adpS6yEj1ztZZtQ6h5c/wbfKGN7ptf oZH9EFVFrs4DiUTSFcHtocewgBPQLSwlBGd24lLUKoBNWCtU2YtY4G8EvFJff9gbUrO1 KiTDoX479zvOcN8x6ZSqaF4C05SukldtGN+JdTvo4VBNyojZGE/TNDKDBbuIuhcTWnR5 W7B/piYc77wA4qUWkjuff0TENjy11JOytOe5353lLCdlrU3nnR5DnDotT51R+mwL7v42 ccgXYG4PIYJi66y75UsQlNOiVIknSROE5cjaS45DVL2C0LyaCEnhtM+E0/rTsyruBlQI hpIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MtVM8LY5ItnhA79JGeudojs+e7MxNvtb9bvmVpWsS8Y=; b=EGDTGZaqjYwrVqRL8wiRCXn3SayKz8Eg9flU70oSUiZIFFGyaNN2u3/srK5Nchi7JD n8FzuQTu6hAAgrAwEb89jCLtvISgLDtucOp+52iF7X4OmRgdC/5rcNhum81UErzOSIxf Z7uNmMIrrf7Pl16RDI8Wmh7oq5pXUrt8J5IvhoFQJkPtEE/8e66ZEhJ9fFzG/gBSEcsp 70Y76xrlPwwYi6eLda6cgu2lkB+81FxxHAH5Bl9NVavBOBypAJa0pXnVE0f1LU05AAO7 xrxK/Oh+cfF0axaJETPgGfwtiMcXWyDHraf5HQZcTTPcD4w3z4vLSoj6akolK7SQZeyg PhtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J04K5N7g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a170902768900b001a69f1cea63si6005144pll.223.2023.04.18.14.48.53; Tue, 18 Apr 2023 14:49:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J04K5N7g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232406AbjDRVoe (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Tue, 18 Apr 2023 17:44:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbjDRVoc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 18 Apr 2023 17:44:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97E5149FD; Tue, 18 Apr 2023 14:44:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 34C11615CB; Tue, 18 Apr 2023 21:44:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB1E9C433EF; Tue, 18 Apr 2023 21:44:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681854268; bh=fShyOiFtQErvDADUUDFhY+2tgV5ExyPswF84GvCNBZE=; h=From:To:Cc:Subject:Date:From; b=J04K5N7gKP+5+xoE5xA2lOlYNmlAJ7lOSWuDt2uopOVJuJDYtRmuSALHOjILmiwmh 7tKjStUheF6sj6YemX9ng1l57flCn/5TXP057lBOJ4YUkSD9CytiEAnJiPwZu68usF PWYnEi8mylSeJRYdDeW1TVk+SzmrApVc0k3xBihbMGMJMhj+NUFXpTC4ThLbDRNIb/ RMuiafO6r8szTtNcFWkLk1ahc28x2XGU00x7pPiLW3p4595VLmLMQV0MN49fO5FMTG DaJwrP5JWJc1MY0SO+e2a3/B+1XCgqZ1THjiTBK9Qf/ChyfyGoDaMfEKMrU7ejaQPE B9g7mn8YlGmzw== From: Miguel Ojeda <ojeda@kernel.org> To: Miguel Ojeda <ojeda@kernel.org>, Wedson Almeida Filho <wedsonaf@gmail.com>, Alex Gaynor <alex.gaynor@gmail.com> Cc: Boqun Feng <boqun.feng@gmail.com>, Gary Guo <gary@garyguo.net>, =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= <bjorn3_gh@protonmail.com>, Benno Lossin <benno.lossin@proton.me>, Josh Stone <jistone@redhat.com>, William Brown <william.brown@suse.com>, Georgy Yakovlev <gyakovlev@gentoo.org>, Jan Alexander Steffens <jan.steffens@gmail.com>, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH 0/3] Rust 1.68.2 upgrade Date: Tue, 18 Apr 2023 23:43:44 +0200 Message-Id: <20230418214347.324156-1-ojeda@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763552329793150783?= X-GMAIL-MSGID: =?utf-8?q?1763552329793150783?= |
Series | Rust 1.68.2 upgrade | |
Message
Miguel Ojeda
April 18, 2023, 9:43 p.m. UTC
This is the first upgrade to the Rust toolchain since the initial Rust merge, from 1.62.0 to 1.68.2 (i.e. the latest). Please see the last patch message for a long explanation of the upgrade, the policy for future upgrades and some indications on how to easily review this. The series is based on `rust-next`. Miguel Ojeda (3): rust: alloc: clarify what is the upstream version rust: arc: fix intra-doc link in `Arc<T>::init` rust: upgrade to Rust 1.68.2 Documentation/process/changes.rst | 2 +- rust/alloc/README.md | 3 + rust/alloc/alloc.rs | 55 ++-- rust/alloc/boxed.rs | 446 ++++++++++++++++++++++++++-- rust/alloc/collections/mod.rs | 5 +- rust/alloc/lib.rs | 71 +++-- rust/alloc/raw_vec.rs | 16 +- rust/alloc/slice.rs | 447 ++++------------------------ rust/alloc/vec/drain.rs | 81 +++++- rust/alloc/vec/drain_filter.rs | 60 +++- rust/alloc/vec/into_iter.rs | 125 ++++++-- rust/alloc/vec/is_zero.rs | 96 ++++++- rust/alloc/vec/mod.rs | 464 +++++++++++++++++++++++------- rust/alloc/vec/set_len_on_drop.rs | 5 + rust/alloc/vec/spec_extend.rs | 63 +--- rust/bindings/lib.rs | 1 - rust/kernel/build_assert.rs | 2 + rust/kernel/init.rs | 5 + rust/kernel/lib.rs | 4 - rust/kernel/std_vendor.rs | 2 + rust/kernel/sync/arc.rs | 2 +- scripts/Makefile.build | 2 +- scripts/min-tool-version.sh | 2 +- 23 files changed, 1278 insertions(+), 681 deletions(-)
Comments
On Tue, Apr 18, 2023 at 11:44 PM Miguel Ojeda <ojeda@kernel.org> wrote: > > This is the first upgrade to the Rust toolchain since the initial Rust > merge, from 1.62.0 to 1.68.2 (i.e. the latest). > > Please see the last patch message for a long explanation of the upgrade, > the policy for future upgrades and some indications on how to easily > review this. > > The series is based on `rust-next`. The third patch may be too big for vger -- for those looking for it, Lore has it at https://lore.kernel.org/all/20230418214347.324156-4-ojeda@kernel.org/ Cheers, Miguel
On Tue, Apr 18, 2023 at 11:43:44PM +0200, Miguel Ojeda wrote: > This is the first upgrade to the Rust toolchain since the initial Rust > merge, from 1.62.0 to 1.68.2 (i.e. the latest). > > Please see the last patch message for a long explanation of the upgrade, > the policy for future upgrades and some indications on how to easily > review this. > > The series is based on `rust-next`. > Works on my machine ;-) Tested-by: Boqun Feng <boqun.feng@gmail.com> Regards, Boqun > Miguel Ojeda (3): > rust: alloc: clarify what is the upstream version > rust: arc: fix intra-doc link in `Arc<T>::init` > rust: upgrade to Rust 1.68.2 > > Documentation/process/changes.rst | 2 +- > rust/alloc/README.md | 3 + > rust/alloc/alloc.rs | 55 ++-- > rust/alloc/boxed.rs | 446 ++++++++++++++++++++++++++-- > rust/alloc/collections/mod.rs | 5 +- > rust/alloc/lib.rs | 71 +++-- > rust/alloc/raw_vec.rs | 16 +- > rust/alloc/slice.rs | 447 ++++------------------------ > rust/alloc/vec/drain.rs | 81 +++++- > rust/alloc/vec/drain_filter.rs | 60 +++- > rust/alloc/vec/into_iter.rs | 125 ++++++-- > rust/alloc/vec/is_zero.rs | 96 ++++++- > rust/alloc/vec/mod.rs | 464 +++++++++++++++++++++++------- > rust/alloc/vec/set_len_on_drop.rs | 5 + > rust/alloc/vec/spec_extend.rs | 63 +--- > rust/bindings/lib.rs | 1 - > rust/kernel/build_assert.rs | 2 + > rust/kernel/init.rs | 5 + > rust/kernel/lib.rs | 4 - > rust/kernel/std_vendor.rs | 2 + > rust/kernel/sync/arc.rs | 2 +- > scripts/Makefile.build | 2 +- > scripts/min-tool-version.sh | 2 +- > 23 files changed, 1278 insertions(+), 681 deletions(-) > > -- > 2.40.0 >
On Wed, 19 Apr 2023 at 05:44, Miguel Ojeda <ojeda@kernel.org> wrote: > > This is the first upgrade to the Rust toolchain since the initial Rust > merge, from 1.62.0 to 1.68.2 (i.e. the latest). > > Please see the last patch message for a long explanation of the upgrade, > the policy for future upgrades and some indications on how to easily > review this. > > The series is based on `rust-next`. > Builds and runs fine under UML here, too. Series is: Tested-by: David Gow <davidgow@google.com> Cheers, -- David
I've applied the patch series, upgraded rustc and built the kernel: $ rustup override set $(scripts/min-tool-version.sh rustc) $ rustup component add rust-src # Rust standard library source $ cargo install --locked --version $(scripts/min-tool-version.sh bindgen) bindgen $ make LLVM=1 rustavailable $ grep RUSTC_VERSION .config CONFIG_RUSTC_VERSION_TEXT="rustc 1.68.2 (9eb3afe9e 2023-03-27)" $ make LLVM=1 -j$(nproc) Then I ran the kernel in qemu-system-x86_64, inserted the rust_minimal.ko kernel module and checked that it behaves as expected. Tested-by: Ariel Miculas <amiculas@cisco.com> Cheers, Ariel On Wed, Apr 19, 2023 at 12:48 AM Miguel Ojeda <ojeda@kernel.org> wrote: > > This is the first upgrade to the Rust toolchain since the initial Rust > merge, from 1.62.0 to 1.68.2 (i.e. the latest). > > Please see the last patch message for a long explanation of the upgrade, > the policy for future upgrades and some indications on how to easily > review this. > > The series is based on `rust-next`. > > Miguel Ojeda (3): > rust: alloc: clarify what is the upstream version > rust: arc: fix intra-doc link in `Arc<T>::init` > rust: upgrade to Rust 1.68.2 > > Documentation/process/changes.rst | 2 +- > rust/alloc/README.md | 3 + > rust/alloc/alloc.rs | 55 ++-- > rust/alloc/boxed.rs | 446 ++++++++++++++++++++++++++-- > rust/alloc/collections/mod.rs | 5 +- > rust/alloc/lib.rs | 71 +++-- > rust/alloc/raw_vec.rs | 16 +- > rust/alloc/slice.rs | 447 ++++------------------------ > rust/alloc/vec/drain.rs | 81 +++++- > rust/alloc/vec/drain_filter.rs | 60 +++- > rust/alloc/vec/into_iter.rs | 125 ++++++-- > rust/alloc/vec/is_zero.rs | 96 ++++++- > rust/alloc/vec/mod.rs | 464 +++++++++++++++++++++++------- > rust/alloc/vec/set_len_on_drop.rs | 5 + > rust/alloc/vec/spec_extend.rs | 63 +--- > rust/bindings/lib.rs | 1 - > rust/kernel/build_assert.rs | 2 + > rust/kernel/init.rs | 5 + > rust/kernel/lib.rs | 4 - > rust/kernel/std_vendor.rs | 2 + > rust/kernel/sync/arc.rs | 2 +- > scripts/Makefile.build | 2 +- > scripts/min-tool-version.sh | 2 +- > 23 files changed, 1278 insertions(+), 681 deletions(-) > > -- > 2.40.0 >
On Thu, Apr 20, 2023 at 3:13 PM Ariel Miculas <ariel.miculas@gmail.com> wrote: > > $ make LLVM=1 rustavailable Since you showed the output of the other commands, did this one show "Rust is available!"? I guess so -- I imagine you edited the commands for the email, e.g. the config changed too. That is fine, as long as it works as expected :) Thanks a lot for testing! Cheers, Miguel
Yes, I've edited the commands since I've run them out of order, let me include the output of commands and my general setup. Since I've already run these steps previously, most of the commands just say that it's already configured. ❯ rustup override set $(scripts/min-tool-version.sh rustc) info: using existing install for '1.68.2-x86_64-unknown-linux-gnu' info: override toolchain for '/home/amiculas/work/linux' set to '1.68.2-x86_64-unknown-linux-gnu' 1.68.2-x86_64-unknown-linux-gnu unchanged - rustc 1.68.2 (9eb3afe9e 2023-03-27) ❯ rustup override list /home/amiculas/work/linux 1.68.2-x86_64-unknown-linux-gnu ❯ rustup component add rust-src info: component 'rust-src' is up to date ❯ cargo install --locked --version $(scripts/min-tool-version.sh bindgen) bindgen Ignored package `bindgen v0.56.0` is already installed, use --force to override ❯ make LLVM=1 rustavailable Rust is available! ❮ rg -i '[^a-zA-Z]rust' .config 14:CONFIG_RUST_IS_AVAILABLE=y 279:CONFIG_RUST=y 280:CONFIG_RUSTC_VERSION_TEXT="rustc 1.68.2 (9eb3afe9e 2023-03-27)" 687:CONFIG_HAVE_RUST=y 5093:CONFIG_SAMPLES_RUST=y 5094:CONFIG_SAMPLE_RUST_MINIMAL=m 5095:CONFIG_SAMPLE_RUST_PRINT=m 5096:CONFIG_SAMPLE_RUST_HOSTPROGS=y 5185:# Rust hacking 5187:# CONFIG_RUST_DEBUG_ASSERTIONS is not set 5188:CONFIG_RUST_OVERFLOW_CHECKS=y 5189:# CONFIG_RUST_BUILD_ASSERT_ALLOW is not set 5190:# end of Rust hacking ❯ make LLVM=1 -j$(nproc) DESCEND objtool CALL scripts/checksyscalls.sh make[3]: 'install_headers' is up to date. grep: warning: stray \ before # grep: warning: stray \ before # Kernel: arch/x86/boot/bzImage is ready (#29) # I have some commits on top of the patchset, but they are only for setting up the kernel environment (an initramfs with busybox, running inside qemu) ❯ git log --oneline 03cad1754b24 (HEAD -> ariel-rust) Add lwnfs.ko kernel module to initramfs 233183beae92 Insert rust_fs.ko module and mount a rustfs to /mnt a1de6ad1ec15 Add other rust samples to initramfs 192ab4a5dd58 Mount /dev, /proc and insert the parrot.ko module 05d7232d50cf enable kvm c2724fa122af Add scripts for running the kernel in qemu 3f81af042dd2 (rust-next) rust: upgrade to Rust 1.68.2 418e1087dce1 rust: arc: fix intra-doc link in `Arc<T>::init` ee16705fb79f rust: alloc: clarify what is the upstream version 1944caa8e8dc (rust-for-linux/rust-next) rust: sync: add functions for initializing `UniqueArc<MaybeUninit<T>>` 701608bd030a rust: sync: reduce stack usage of `UniqueArc::try_new_uninit` 692e8935e23e rust: types: add `Opaque::ffi_init` ❯ git --no-pager diff diff --git a/samples/rust/rust_minimal.rs b/samples/rust/rust_minimal.rs index dc05f4bbe27e..1ca75c85f161 100644 --- a/samples/rust/rust_minimal.rs +++ b/samples/rust/rust_minimal.rs @@ -19,6 +19,7 @@ struct RustMinimal { impl kernel::Module for RustMinimal { fn init(_module: &'static ThisModule) -> Result<Self> { pr_info!("Rust minimal sample (init)\n"); + pr_info!("Ariel was here"); pr_info!("Am I built-in? {}\n", !cfg!(MODULE)); let mut numbers = Vec::new(); ❯ cd linux-environment ❯ ls busybox Makefile qemu-initramfs.desc qemu-initramfs.img qemu-init.sh run_qemu.sh ❯ file busybox busybox: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped ❯ /usr/bin/cat Makefile .PHONY: all clean all: qemu-initramfs.img qemu-initramfs.img: ../usr/gen_init_cpio qemu-initramfs.desc > qemu-initramfs.img clean: rm qemu-initramfs.img run: qemu-initramfs.img sudo ./run_qemu.sh ❯ /usr/bin/cat qemu-init.sh #!/bin/sh busybox mount -t devtmpfs none /dev busybox mount -t proc none /proc busybox mount -t sysfs none /sys busybox insmod rust_minimal.ko busybox rmmod rust_minimal.ko busybox setsid sh -c 'exec sh -l </dev/ttyS0 >/dev/ttyS0 2>&1' ❯ /usr/bin/cat qemu-initramfs.desc dir /bin 0755 0 0 dir /sys 0755 0 0 dir /dev 0755 0 0 dir /proc 0755 0 0 file /bin/busybox busybox 0755 0 0 slink /bin/sh /bin/busybox 0755 0 0 file /init qemu-init.sh 0755 0 0 file /rust_minimal.ko ../samples/rust/rust_minimal.ko 0755 0 0 file /rust_print.ko ../samples/rust/rust_print.ko 0755 0 0 ❯ make ../usr/gen_init_cpio qemu-initramfs.desc > qemu-initramfs.img ❯ /usr/bin/cat run_qemu.sh sudo qemu-system-x86_64 \ -kernel ../arch/x86/boot/bzImage \ -initrd qemu-initramfs.img \ -M pc \ -m 4G \ -accel kvm \ -cpu host \ -smp $(nproc) \ -nographic \ -vga none \ -no-reboot \ -append 'console=ttyS0' ❯ ./run_qemu.sh [sudo] password for amiculas: SeaBIOS (version Arch Linux 1.16.2-1-1) iPXE (http://ipxe.org) 00:02.0 C000 PCI2.10 PnP PMM+BEFD31B0+BEF331B0 C000 Booting from ROM.. [ 0.000000] Linux version 6.3.0-rc6-00039-g03cad1754b24-dirty (amiculas@archlinux-cisco) (clang version 15.0.7, LLD 15.0.7) #29 SMP PREEMPT_DYNAMIC Thu Apr 20 15:54:18 EEST 2023 [ 0.000000] Command line: console=ttyS0 ... [ 0.802414] Run /init as init process [ 0.803185] busybox (89) used greatest stack depth: 13848 bytes left [ 0.805450] rust_minimal: Rust minimal sample (init) [ 0.805736] rust_minimal: Ariel was here [ 0.805737] rust_minimal: Am I built-in? false [ 0.806304] busybox (92) used greatest stack depth: 13696 bytes left [ 0.806591] rust_minimal: My numbers are [72, 108, 200] [ 0.807021] rust_minimal: Rust minimal sample (exit) Cheers, Ariel On Thu, Apr 20, 2023 at 4:20 PM Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> wrote: > > On Thu, Apr 20, 2023 at 3:13 PM Ariel Miculas <ariel.miculas@gmail.com> wrote: > > > > $ make LLVM=1 rustavailable > > Since you showed the output of the other commands, did this one show > "Rust is available!"? I guess so -- I imagine you edited the commands > for the email, e.g. the config changed too. > > That is fine, as long as it works as expected :) Thanks a lot for testing! > > Cheers, > Miguel
On Thu, Apr 20, 2023 at 7:18 PM Ariel Miculas <ariel.miculas@gmail.com> wrote: > > Yes, I've edited the commands since I've run them out of order, let me > include the output of commands and my general setup. Thanks for confirming! (and for all the output!). Cheers, Miguel
Hi Miguel, I'm getting the following error when running rusttest on top of your patchset: $ make LLVM=1 RUSTC=/home/fparent/.rustup/toolchains/1.68.2-x86_64-unknown-linux-gnu/bin/rustc RUSTDOC=/home/fparent/.rustup/toolchains/1.68.2-x86_64-unknown-linux-gnu/bin/rustdoc rusttest RUSTC L rust/uapi.o error: the feature `core_ffi_c` has been stable since 1.64.0 and no longer requires an attribute to enable --> rust/uapi/lib.rs:11:12 | 11 | #![feature(core_ffi_c)] | ^^^^^^^^^^ After manually removing line 11 in lib.rs, the error was gone. Fabien On Thu, 20 Apr 2023 at 19:20, Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> wrote: > > On Thu, Apr 20, 2023 at 7:18 PM Ariel Miculas <ariel.miculas@gmail.com> wrote: > > > > Yes, I've edited the commands since I've run them out of order, let me > > include the output of commands and my general setup. > > Thanks for confirming! (and for all the output!). > > Cheers, > Miguel
Hi Fabien, On Fri, May 5, 2023 at 12:28 AM Fabien Parent <fabien.parent@linaro.org> wrote: > > I'm getting the following error when running rusttest on top of your patchset: Yeah, it is expected: the series was based on `rust-next` which gained the `uapi` crate later on. Thanks for reporting it! Cheers, Miguel
On Tue, Apr 18, 2023 at 11:44 PM Miguel Ojeda <ojeda@kernel.org> wrote: > > This is the first upgrade to the Rust toolchain since the initial Rust > merge, from 1.62.0 to 1.68.2 (i.e. the latest). > > Please see the last patch message for a long explanation of the upgrade, > the policy for future upgrades and some indications on how to easily > review this. > > The series is based on `rust-next`. Applied to `rust-next` (with the `core_ffi_c` removal in the `uapi` crate). Thanks a lot to all reviewers and testers (and thanks Gary for re-reviewing our diff with respect to upstream `alloc`). Cheers, Miguel