From f9519d78fb5757f414c1761d005d666eea2b29c5 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 15 Aug 2024 08:41:57 -0700 Subject: [PATCH 1/3] Don't warn about `target_arch = "xtensa". --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 7657ac90..0b71b876 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,3 +46,9 @@ std = [] no_std = [] elf = [] rustc-dep-of-std = ["core", "compiler_builtins", "no_std"] + +[lints.rust.unexpected_cfgs] +level = "warn" +check-cfg = [ + 'cfg(target_arch, values("xtensa"))', +] From b0870fd97618b69033ddaca3da13a538769f301f Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 15 Aug 2024 09:12:45 -0700 Subject: [PATCH 2/3] Update LLVM version. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 23f7482b..a0bf6e21 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -75,5 +75,5 @@ jobs: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - sudo add-apt-repository -y 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main' sudo apt install libclang-dev - cd gen && LD_LIBRARY_PATH=/usr/lib/llvm-19/lib cargo run --release + cd gen && LD_LIBRARY_PATH=/usr/lib/llvm-20/lib cargo run --release git diff --exit-code From 9595d6ec0b6592e1c8cda13feb90b00a789ee426 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 15 Aug 2024 09:17:29 -0700 Subject: [PATCH 3/3] Keep auto-generated Cargo.toml contents at the end. --- Cargo.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0b71b876..83d985f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,6 +24,12 @@ libc = "0.2.100" features = ["default", "bootparam", "ioctl", "netlink", "io_uring", "if_arp", "if_ether", "if_packet", "net", "prctl", "elf", "xdp", "mempolicy", "system", "loop_device"] targets = ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"] +[lints.rust.unexpected_cfgs] +level = "warn" +check-cfg = [ + 'cfg(target_arch, values("xtensa"))', +] + # The rest of this file is auto-generated! [features] bootparam = [] @@ -46,9 +52,3 @@ std = [] no_std = [] elf = [] rustc-dep-of-std = ["core", "compiler_builtins", "no_std"] - -[lints.rust.unexpected_cfgs] -level = "warn" -check-cfg = [ - 'cfg(target_arch, values("xtensa"))', -]