Remove some now-obsolete #[rustfmt::skip] workarounds for rustfmt bugs.

This commit is contained in:
Eduard-Mihai Burtescu 2023-06-03 08:09:58 +03:00 committed by Eduard-Mihai Burtescu
parent 4a987f3eb0
commit 188aba26fc
4 changed files with 0 additions and 9 deletions

View File

@ -5,9 +5,6 @@ use crate::vector::VectorTruncateInto;
#[cfg(target_arch = "spirv")] #[cfg(target_arch = "spirv")]
use core::arch::asm; use core::arch::asm;
// Rustfmt formats long marker trait impls over multiple lines which makes them
// harder to read.
#[rustfmt::skip]
mod params; mod params;
/// Contains extra image operands /// Contains extra image operands

View File

@ -4,8 +4,6 @@
use spirv_std::spirv; use spirv_std::spirv;
#[spirv(ray_generation)] #[spirv(ray_generation)]
// Rustfmt will eat long attributes (https://github.com/rust-lang/rustfmt/issues/4579)
#[rustfmt::skip]
pub fn main( pub fn main(
#[spirv(descriptor_set = 0, binding = 0)] #[spirv(descriptor_set = 0, binding = 0)]
acceleration_structure: &spirv_std::ray_tracing::AccelerationStructure, acceleration_structure: &spirv_std::ray_tracing::AccelerationStructure,

View File

@ -6,8 +6,6 @@ use spirv_std::ray_tracing::{AccelerationStructure, RayFlags, RayQuery};
use spirv_std::spirv; use spirv_std::spirv;
#[spirv(fragment)] #[spirv(fragment)]
// Rustfmt eats long attributes <https://github.com/rust-lang/rustfmt/issues/4579>
#[rustfmt::skip]
pub fn main( pub fn main(
#[spirv(descriptor_set = 0, binding = 0)] acceleration_structure: &AccelerationStructure, #[spirv(descriptor_set = 0, binding = 0)] acceleration_structure: &AccelerationStructure,
#[spirv(ray_payload)] payload: &mut Vec3, #[spirv(ray_payload)] payload: &mut Vec3,

View File

@ -4,8 +4,6 @@
use spirv_std::spirv; use spirv_std::spirv;
#[spirv(ray_generation)] #[spirv(ray_generation)]
// Rustfmt will eat long attributes (https://github.com/rust-lang/rustfmt/issues/4579)
#[rustfmt::skip]
pub fn main( pub fn main(
#[spirv(descriptor_set = 0, binding = 0)] #[spirv(descriptor_set = 0, binding = 0)]
acceleration_structure: &spirv_std::ray_tracing::AccelerationStructure, acceleration_structure: &spirv_std::ray_tracing::AccelerationStructure,