From cf11a203bc8337e5afeaf0b1d4b9d3980d247e9c Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Thu, 28 Nov 2024 17:05:51 -0500 Subject: [PATCH] WIP: make some `cfg_attr`s actually right for lints under `CORE_MSRV` --- wgpu-core/src/command/compute_command.rs | 4 ++-- wgpu-core/src/command/render_command.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wgpu-core/src/command/compute_command.rs b/wgpu-core/src/command/compute_command.rs index e8c9ad9974..62ac19f0e1 100644 --- a/wgpu-core/src/command/compute_command.rs +++ b/wgpu-core/src/command/compute_command.rs @@ -228,7 +228,7 @@ pub enum ArcComputeCommand { }, PushDebugGroup { - #[cfg_attr(not(any(feature = "serde", feature = "replay")), allow(dead_code))] + #[cfg_attr(not(any(feature = "serde", feature = "replay")), expect(dead_code))] color: u32, len: usize, }, @@ -236,7 +236,7 @@ pub enum ArcComputeCommand { PopDebugGroup, InsertDebugMarker { - #[cfg_attr(not(any(feature = "serde", feature = "replay")), allow(dead_code))] + #[cfg_attr(not(any(feature = "serde", feature = "replay")), expect(dead_code))] color: u32, len: usize, }, diff --git a/wgpu-core/src/command/render_command.rs b/wgpu-core/src/command/render_command.rs index 8585f645ec..88b6589393 100644 --- a/wgpu-core/src/command/render_command.rs +++ b/wgpu-core/src/command/render_command.rs @@ -473,13 +473,13 @@ pub enum ArcRenderCommand { indexed: bool, }, PushDebugGroup { - #[cfg_attr(not(any(feature = "serde", feature = "replay")), allow(dead_code))] + #[cfg_attr(not(any(feature = "serde", feature = "replay")), expect(dead_code))] color: u32, len: usize, }, PopDebugGroup, InsertDebugMarker { - #[cfg_attr(not(any(feature = "serde", feature = "replay")), allow(dead_code))] + #[cfg_attr(not(any(feature = "serde", feature = "replay")), expect(dead_code))] color: u32, len: usize, },