Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Commit 188aba2

Browse files
committed
Remove some now-obsolete #[rustfmt::skip] workarounds for rustfmt bugs.
1 parent 4a987f3 commit 188aba2

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

crates/spirv-std/src/image.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ use crate::vector::VectorTruncateInto;
55
#[cfg(target_arch = "spirv")]
66
use core::arch::asm;
77

8-
// Rustfmt formats long marker trait impls over multiple lines which makes them
9-
// harder to read.
10-
#[rustfmt::skip]
118
mod params;
129

1310
/// Contains extra image operands

tests/ui/arch/execute_callable.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
use spirv_std::spirv;
55

66
#[spirv(ray_generation)]
7-
// Rustfmt will eat long attributes (https://github.com/rust-lang/rustfmt/issues/4579)
8-
#[rustfmt::skip]
97
pub fn main(
108
#[spirv(descriptor_set = 0, binding = 0)]
119
acceleration_structure: &spirv_std::ray_tracing::AccelerationStructure,

tests/ui/arch/ray_query_initialize_khr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ use spirv_std::ray_tracing::{AccelerationStructure, RayFlags, RayQuery};
66
use spirv_std::spirv;
77

88
#[spirv(fragment)]
9-
// Rustfmt eats long attributes <https://github.com/rust-lang/rustfmt/issues/4579>
10-
#[rustfmt::skip]
119
pub fn main(
1210
#[spirv(descriptor_set = 0, binding = 0)] acceleration_structure: &AccelerationStructure,
1311
#[spirv(ray_payload)] payload: &mut Vec3,

tests/ui/arch/trace_ray_khr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
use spirv_std::spirv;
55

66
#[spirv(ray_generation)]
7-
// Rustfmt will eat long attributes (https://github.com/rust-lang/rustfmt/issues/4579)
8-
#[rustfmt::skip]
97
pub fn main(
108
#[spirv(descriptor_set = 0, binding = 0)]
119
acceleration_structure: &spirv_std::ray_tracing::AccelerationStructure,

0 commit comments

Comments
 (0)