Skip to content

Commit ba94772

Browse files
WIP: make some cfg_attrs actually right for lints under CORE_MSRV
1 parent dafa755 commit ba94772

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

wgpu-core/src/command/compute_command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,15 +229,15 @@ pub enum ArcComputeCommand {
229229
},
230230

231231
PushDebugGroup {
232-
#[cfg_attr(not(any(feature = "serde", feature = "replay")), allow(dead_code))]
232+
#[cfg_attr(not(any(feature = "serde", feature = "replay")), expect(dead_code))]
233233
color: u32,
234234
len: usize,
235235
},
236236

237237
PopDebugGroup,
238238

239239
InsertDebugMarker {
240-
#[cfg_attr(not(any(feature = "serde", feature = "replay")), allow(dead_code))]
240+
#[cfg_attr(not(any(feature = "serde", feature = "replay")), expect(dead_code))]
241241
color: u32,
242242
len: usize,
243243
},

wgpu-core/src/command/render_command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,13 +474,13 @@ pub enum ArcRenderCommand {
474474
indexed: bool,
475475
},
476476
PushDebugGroup {
477-
#[cfg_attr(not(any(feature = "serde", feature = "replay")), allow(dead_code))]
477+
#[cfg_attr(not(any(feature = "serde", feature = "replay")), expect(dead_code))]
478478
color: u32,
479479
len: usize,
480480
},
481481
PopDebugGroup,
482482
InsertDebugMarker {
483-
#[cfg_attr(not(any(feature = "serde", feature = "replay")), allow(dead_code))]
483+
#[cfg_attr(not(any(feature = "serde", feature = "replay")), expect(dead_code))]
484484
color: u32,
485485
len: usize,
486486
},

0 commit comments

Comments
 (0)