Recently cargo-lints were stabilized. How do I configure these lints to do the same equivalent of cargo clippy -- -Dwarnings for my CI run? I have checked the lints reference which seems to list all existing lints, and…
I wonder if the following code is sound: use core::mem::transmute; #[derive(Debug)] #[repr(u8)] enum MyEnum { A, B, C, } const { assert!(size_of::<Option<MyEnum>>() == 1) } let a = Some(MyEnum::B); // SAFETY: ??? let t:…
I'm trying to wrap an external generic API, which has a FromRepresentation trait implemented for most primitive types[1]. I'd like to add a way for this wrapper to collect items from this API into a collection. My first…
I'm trying to provide a workaround for known-badly-performing Rust versions by using feature(link_llvm_intrinsics) (permitted via RUSTC_BOOTSTRAP on stable compiler builds) but only if a Cargo feature is enabled and…
Ref: rend3-hp/rend3/src/util/scatter_copy.rs at 5480169a3dad0092b8b8da18429358177f3a0470 · John-Nagle/rend3-hp · GitHub I'm trying to update rend3-hp (my fork of abandoned rend3) to wgpu 30, from wgpu 24. There were…