From f53f35cb329646e206ecf06e315d53181577f84b Mon Sep 17 00:00:00 2001 From: LingMan <18294-LingMan@users.noreply.gitlab.freedesktop.org> Date: Thu, 4 Dec 2025 15:37:18 +0100 Subject: [PATCH] meson: silence warnings in rust subprojects Rust 1.91 as well as clippy show various benign warnings in our dependencies. Silence them since we can't really do much about them anyway and we want to enforce clippy complience via CI in the future. Matches cargo behavior, which also doesn't show warnings or clippy lints outside the workspace. Reviewed-by: Eric Engestrom Part-of: --- subprojects/packagefiles/bitflags-2-rs/meson.build | 2 +- subprojects/packagefiles/cfg-if-1-rs/meson.build | 2 +- subprojects/packagefiles/equivalent-1-rs/meson.build | 2 +- subprojects/packagefiles/errno-0.3-rs/meson.build | 2 +- subprojects/packagefiles/hashbrown-0.14-rs/meson.build | 2 +- subprojects/packagefiles/indexmap-2-rs/meson.build | 2 +- subprojects/packagefiles/libc-0.2-rs/meson.build | 2 +- subprojects/packagefiles/log-0.4-rs/meson.build | 2 +- subprojects/packagefiles/once_cell-1-rs/meson.build | 2 +- subprojects/packagefiles/paste-1-rs/meson.build | 4 ++-- subprojects/packagefiles/pest-2-rs/meson.build | 2 +- subprojects/packagefiles/pest_derive-2-rs/meson.build | 2 +- subprojects/packagefiles/pest_generator-2-rs/meson.build | 2 +- subprojects/packagefiles/pest_meta-2-rs/meson.build | 2 +- subprojects/packagefiles/proc-macro2-1-rs/meson.build | 2 +- subprojects/packagefiles/quote-1-rs/meson.build | 2 +- subprojects/packagefiles/remain-0.2-rs/meson.build | 2 +- subprojects/packagefiles/roxmltree-0.20-rs/meson.build | 2 +- subprojects/packagefiles/rustc-hash-2-rs/meson.build | 2 +- subprojects/packagefiles/rustix-1-rs/meson.build | 2 +- subprojects/packagefiles/syn-2-rs/meson.build | 2 +- subprojects/packagefiles/thiserror-2-rs/meson.build | 2 +- subprojects/packagefiles/thiserror-impl-2-rs/meson.build | 2 +- subprojects/packagefiles/ucd-trie-0.1-rs/meson.build | 2 +- subprojects/packagefiles/unicode-ident-1-rs/meson.build | 2 +- subprojects/packagefiles/windows-link-0.2-rs/meson.build | 2 +- subprojects/packagefiles/windows-sys-0.6-rs/meson.build | 2 +- subprojects/packagefiles/zerocopy-0.8-rs/meson.build | 2 +- subprojects/packagefiles/zerocopy-derive-0.8-rs/meson.build | 2 +- 29 files changed, 30 insertions(+), 30 deletions(-) diff --git a/subprojects/packagefiles/bitflags-2-rs/meson.build b/subprojects/packagefiles/bitflags-2-rs/meson.build index c38b635e8a5..cb3bc201f0d 100644 --- a/subprojects/packagefiles/bitflags-2-rs/meson.build +++ b/subprojects/packagefiles/bitflags-2-rs/meson.build @@ -11,7 +11,7 @@ project( lib = static_library( 'bitflags', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], rust_abi : 'rust', ) diff --git a/subprojects/packagefiles/cfg-if-1-rs/meson.build b/subprojects/packagefiles/cfg-if-1-rs/meson.build index 1f467731b71..e0bc364c7f1 100644 --- a/subprojects/packagefiles/cfg-if-1-rs/meson.build +++ b/subprojects/packagefiles/cfg-if-1-rs/meson.build @@ -11,7 +11,7 @@ project( lib = static_library( 'cfg_if', 'src/lib.rs', - override_options : ['rust_std=2018', 'build.rust_std=2018'], + override_options : ['rust_std=2018', 'build.rust_std=2018', 'warning_level=0'], rust_abi : 'rust', ) diff --git a/subprojects/packagefiles/equivalent-1-rs/meson.build b/subprojects/packagefiles/equivalent-1-rs/meson.build index 6309928ad2e..ca5e00476f6 100644 --- a/subprojects/packagefiles/equivalent-1-rs/meson.build +++ b/subprojects/packagefiles/equivalent-1-rs/meson.build @@ -8,7 +8,7 @@ project( lib = static_library( 'equivalent', 'src/lib.rs', - override_options : ['rust_std=2015', 'build.rust_std=2015'], + override_options : ['rust_std=2015', 'build.rust_std=2015', 'warning_level=0'], rust_abi : 'rust', native : true, ) diff --git a/subprojects/packagefiles/errno-0.3-rs/meson.build b/subprojects/packagefiles/errno-0.3-rs/meson.build index dff4c84d073..d3f82821623 100644 --- a/subprojects/packagefiles/errno-0.3-rs/meson.build +++ b/subprojects/packagefiles/errno-0.3-rs/meson.build @@ -17,7 +17,7 @@ endif lib = static_library( 'libc_errno', 'src/lib.rs', - override_options : ['rust_std=2018', 'build.rust_std=2018'], + override_options : ['rust_std=2018', 'build.rust_std=2018', 'warning_level=0'], link_with: [libc] + os_deps, rust_abi : 'rust', ) diff --git a/subprojects/packagefiles/hashbrown-0.14-rs/meson.build b/subprojects/packagefiles/hashbrown-0.14-rs/meson.build index 6ad5ec0ceff..3dacc1afc79 100644 --- a/subprojects/packagefiles/hashbrown-0.14-rs/meson.build +++ b/subprojects/packagefiles/hashbrown-0.14-rs/meson.build @@ -13,7 +13,7 @@ lib = static_library( 'hashbrown', 'src/lib.rs', rust_args : rust_args, - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], rust_abi : 'rust', native : true, ) diff --git a/subprojects/packagefiles/indexmap-2-rs/meson.build b/subprojects/packagefiles/indexmap-2-rs/meson.build index 42258d356fc..4f84531bdc5 100644 --- a/subprojects/packagefiles/indexmap-2-rs/meson.build +++ b/subprojects/packagefiles/indexmap-2-rs/meson.build @@ -16,7 +16,7 @@ lib = static_library( 'indexmap', 'src/lib.rs', rust_args : rust_args, - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], rust_abi : 'rust', native : true, dependencies : [dep_equivalent, dep_hashbrown] diff --git a/subprojects/packagefiles/libc-0.2-rs/meson.build b/subprojects/packagefiles/libc-0.2-rs/meson.build index d78ff112746..992b0f57176 100644 --- a/subprojects/packagefiles/libc-0.2-rs/meson.build +++ b/subprojects/packagefiles/libc-0.2-rs/meson.build @@ -34,7 +34,7 @@ lib = static_library( 'libc', 'src/lib.rs', rust_abi : 'rust', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], rust_args: libc_args, ) diff --git a/subprojects/packagefiles/log-0.4-rs/meson.build b/subprojects/packagefiles/log-0.4-rs/meson.build index c2467f961be..854fb87da6b 100644 --- a/subprojects/packagefiles/log-0.4-rs/meson.build +++ b/subprojects/packagefiles/log-0.4-rs/meson.build @@ -11,7 +11,7 @@ project( lib = static_library( 'log', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], rust_abi : 'rust', ) diff --git a/subprojects/packagefiles/once_cell-1-rs/meson.build b/subprojects/packagefiles/once_cell-1-rs/meson.build index ecd5594e286..e98f6560d75 100644 --- a/subprojects/packagefiles/once_cell-1-rs/meson.build +++ b/subprojects/packagefiles/once_cell-1-rs/meson.build @@ -13,7 +13,7 @@ lib = static_library( 'once_cell', 'src/lib.rs', rust_args : rust_args, - override_options : ['rust_std=2018', 'build.rust_std=2018'], + override_options : ['rust_std=2018', 'build.rust_std=2018', 'warning_level=0'], rust_abi : 'rust', native : true, ) diff --git a/subprojects/packagefiles/paste-1-rs/meson.build b/subprojects/packagefiles/paste-1-rs/meson.build index 41720a2b1a8..55f832751e0 100644 --- a/subprojects/packagefiles/paste-1-rs/meson.build +++ b/subprojects/packagefiles/paste-1-rs/meson.build @@ -10,9 +10,9 @@ rust = import('rust') lib = rust.proc_macro( 'paste', files('src/lib.rs'), - override_options : ['rust_std=2018', 'build.rust_std=2018'] + override_options : ['rust_std=2018', 'build.rust_std=2018', 'warning_level=0'] ) dep_paste = declare_dependency( link_with : [lib], -) \ No newline at end of file +) diff --git a/subprojects/packagefiles/pest-2-rs/meson.build b/subprojects/packagefiles/pest-2-rs/meson.build index b12f1beb145..23b34b0b407 100644 --- a/subprojects/packagefiles/pest-2-rs/meson.build +++ b/subprojects/packagefiles/pest-2-rs/meson.build @@ -10,7 +10,7 @@ ucd = subproject('ucd-trie-0.1-rs').get_variable('lib') lib = static_library( 'pest', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], link_with : [ucd], rust_abi : 'rust', native : true, diff --git a/subprojects/packagefiles/pest_derive-2-rs/meson.build b/subprojects/packagefiles/pest_derive-2-rs/meson.build index 3790b8e077f..c3ab82d2be6 100644 --- a/subprojects/packagefiles/pest_derive-2-rs/meson.build +++ b/subprojects/packagefiles/pest_derive-2-rs/meson.build @@ -13,7 +13,7 @@ rust = import('rust') lib = rust.proc_macro( 'pest_derive', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], link_with : [pest, pest_generator], ) diff --git a/subprojects/packagefiles/pest_generator-2-rs/meson.build b/subprojects/packagefiles/pest_generator-2-rs/meson.build index 099d71d2e3d..3ebcbe019e1 100644 --- a/subprojects/packagefiles/pest_generator-2-rs/meson.build +++ b/subprojects/packagefiles/pest_generator-2-rs/meson.build @@ -19,7 +19,7 @@ lib = static_library( 'pest_generator', 'src/lib.rs', rust_args : rust_args, - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], link_with : [pest, pest_meta, pm2, quote, syn], rust_abi : 'rust', native : true, diff --git a/subprojects/packagefiles/pest_meta-2-rs/meson.build b/subprojects/packagefiles/pest_meta-2-rs/meson.build index f77e7b1d46e..78aa572d16c 100644 --- a/subprojects/packagefiles/pest_meta-2-rs/meson.build +++ b/subprojects/packagefiles/pest_meta-2-rs/meson.build @@ -11,7 +11,7 @@ pest = subproject('pest-2-rs').get_variable('lib') lib = static_library( 'pest_meta', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], link_with : [once_cell, pest], rust_abi : 'rust', native : true, diff --git a/subprojects/packagefiles/proc-macro2-1-rs/meson.build b/subprojects/packagefiles/proc-macro2-1-rs/meson.build index ed5690810d0..0a3279f3994 100644 --- a/subprojects/packagefiles/proc-macro2-1-rs/meson.build +++ b/subprojects/packagefiles/proc-macro2-1-rs/meson.build @@ -57,7 +57,7 @@ lib = static_library( 'proc_macro2', 'src/lib.rs', rust_args : rust_args, - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], link_with : u_ind, rust_abi : 'rust', native : true, diff --git a/subprojects/packagefiles/quote-1-rs/meson.build b/subprojects/packagefiles/quote-1-rs/meson.build index 5f7eaac23f6..5013312d962 100644 --- a/subprojects/packagefiles/quote-1-rs/meson.build +++ b/subprojects/packagefiles/quote-1-rs/meson.build @@ -25,7 +25,7 @@ lib = static_library( 'quote', 'src/lib.rs', rust_args : rust_args, - override_options : ['rust_std=2018', 'build.rust_std=2018'], + override_options : ['rust_std=2018', 'build.rust_std=2018', 'warning_level=0'], link_with : pm2, rust_abi : 'rust', native : true, diff --git a/subprojects/packagefiles/remain-0.2-rs/meson.build b/subprojects/packagefiles/remain-0.2-rs/meson.build index ead045823db..28854889b83 100644 --- a/subprojects/packagefiles/remain-0.2-rs/meson.build +++ b/subprojects/packagefiles/remain-0.2-rs/meson.build @@ -16,7 +16,7 @@ rust = import('rust') lib = rust.proc_macro( 'remain', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], link_with : [syn, quote, proc_macro2] ) diff --git a/subprojects/packagefiles/roxmltree-0.20-rs/meson.build b/subprojects/packagefiles/roxmltree-0.20-rs/meson.build index fafd1b2fcd9..654f7de43c0 100644 --- a/subprojects/packagefiles/roxmltree-0.20-rs/meson.build +++ b/subprojects/packagefiles/roxmltree-0.20-rs/meson.build @@ -8,7 +8,7 @@ project( lib = static_library( 'roxmltree', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], rust_abi : 'rust', native : true, ) diff --git a/subprojects/packagefiles/rustc-hash-2-rs/meson.build b/subprojects/packagefiles/rustc-hash-2-rs/meson.build index be77c8930b5..73d5fce9221 100644 --- a/subprojects/packagefiles/rustc-hash-2-rs/meson.build +++ b/subprojects/packagefiles/rustc-hash-2-rs/meson.build @@ -13,7 +13,7 @@ lib = static_library( 'rustc_hash', 'src/lib.rs', rust_args : rust_args, - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], rust_abi : 'rust', ) diff --git a/subprojects/packagefiles/rustix-1-rs/meson.build b/subprojects/packagefiles/rustix-1-rs/meson.build index b46fdb423e6..7d93e7752cc 100644 --- a/subprojects/packagefiles/rustix-1-rs/meson.build +++ b/subprojects/packagefiles/rustix-1-rs/meson.build @@ -53,7 +53,7 @@ endif lib = static_library( 'rustix', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], link_with : [errno, libc, bitflags] + os_deps, rust_abi : 'rust', rust_args: rustix_args, diff --git a/subprojects/packagefiles/syn-2-rs/meson.build b/subprojects/packagefiles/syn-2-rs/meson.build index 7fc6e79e193..95d614feced 100644 --- a/subprojects/packagefiles/syn-2-rs/meson.build +++ b/subprojects/packagefiles/syn-2-rs/meson.build @@ -41,7 +41,7 @@ lib = static_library( 'syn', 'src/lib.rs', rust_args : rust_args, - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], link_with : [u_ind, quote, pm2], rust_abi : 'rust', native : true, diff --git a/subprojects/packagefiles/thiserror-2-rs/meson.build b/subprojects/packagefiles/thiserror-2-rs/meson.build index d49ecd5ee7b..f6e2d1a65ff 100644 --- a/subprojects/packagefiles/thiserror-2-rs/meson.build +++ b/subprojects/packagefiles/thiserror-2-rs/meson.build @@ -16,7 +16,7 @@ thiserror_impl = subproject('thiserror-impl-2-rs').get_variable('lib') lib = static_library( 'thiserror', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], rust_abi : 'rust', link_with : [thiserror_impl] ) diff --git a/subprojects/packagefiles/thiserror-impl-2-rs/meson.build b/subprojects/packagefiles/thiserror-impl-2-rs/meson.build index 9c62c042d8f..3a8e1f2091b 100644 --- a/subprojects/packagefiles/thiserror-impl-2-rs/meson.build +++ b/subprojects/packagefiles/thiserror-impl-2-rs/meson.build @@ -16,7 +16,7 @@ rust = import('rust') lib = rust.proc_macro( 'thiserror_impl', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], link_with : [syn, quote, proc_macro2] ) diff --git a/subprojects/packagefiles/ucd-trie-0.1-rs/meson.build b/subprojects/packagefiles/ucd-trie-0.1-rs/meson.build index 20ba4d9d02c..304db169a6f 100644 --- a/subprojects/packagefiles/ucd-trie-0.1-rs/meson.build +++ b/subprojects/packagefiles/ucd-trie-0.1-rs/meson.build @@ -8,7 +8,7 @@ project( lib = static_library( 'ucd_trie', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], rust_abi : 'rust', native : true, ) diff --git a/subprojects/packagefiles/unicode-ident-1-rs/meson.build b/subprojects/packagefiles/unicode-ident-1-rs/meson.build index 683f1307caf..33e93f4ebb2 100644 --- a/subprojects/packagefiles/unicode-ident-1-rs/meson.build +++ b/subprojects/packagefiles/unicode-ident-1-rs/meson.build @@ -8,7 +8,7 @@ project( lib = static_library( 'unicode_ident', 'src/lib.rs', - override_options : ['rust_std=2018', 'build.rust_std=2018'], + override_options : ['rust_std=2018', 'build.rust_std=2018', 'warning_level=0'], rust_abi : 'rust', native : true, ) diff --git a/subprojects/packagefiles/windows-link-0.2-rs/meson.build b/subprojects/packagefiles/windows-link-0.2-rs/meson.build index 3b08a08052b..917ae24cee1 100644 --- a/subprojects/packagefiles/windows-link-0.2-rs/meson.build +++ b/subprojects/packagefiles/windows-link-0.2-rs/meson.build @@ -11,7 +11,7 @@ project( lib = static_library( 'windows_link', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], rust_abi: 'rust', ) diff --git a/subprojects/packagefiles/windows-sys-0.6-rs/meson.build b/subprojects/packagefiles/windows-sys-0.6-rs/meson.build index 2d1ab37868e..882ef61e3b4 100644 --- a/subprojects/packagefiles/windows-sys-0.6-rs/meson.build +++ b/subprojects/packagefiles/windows-sys-0.6-rs/meson.build @@ -23,7 +23,7 @@ windows_sys_args = [ lib = static_library( 'windows_sys', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], link_with: [windows_link], rust_abi: 'rust', rust_args: windows_sys_args, diff --git a/subprojects/packagefiles/zerocopy-0.8-rs/meson.build b/subprojects/packagefiles/zerocopy-0.8-rs/meson.build index 2539336e3e5..d976efde1c7 100644 --- a/subprojects/packagefiles/zerocopy-0.8-rs/meson.build +++ b/subprojects/packagefiles/zerocopy-0.8-rs/meson.build @@ -14,7 +14,7 @@ zerocopy_derive = subproject('zerocopy-derive-0.8-rs').get_variable('lib') lib = static_library( 'zerocopy', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], rust_abi : 'rust', rust_args: zerocopy_args, link_with : [zerocopy_derive] diff --git a/subprojects/packagefiles/zerocopy-derive-0.8-rs/meson.build b/subprojects/packagefiles/zerocopy-derive-0.8-rs/meson.build index cf80bf50caa..64fceb47576 100644 --- a/subprojects/packagefiles/zerocopy-derive-0.8-rs/meson.build +++ b/subprojects/packagefiles/zerocopy-derive-0.8-rs/meson.build @@ -16,7 +16,7 @@ rust = import('rust') lib = rust.proc_macro( 'zerocopy_derive', 'src/lib.rs', - override_options : ['rust_std=2021', 'build.rust_std=2021'], + override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], link_with : [syn, quote, proc_macro2] )