mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-21 22:34:34 +00:00
Address new rustc/clippy lints.
This commit is contained in:
parent
acaf74c060
commit
8637102791
@ -298,7 +298,7 @@ impl<'a, 'tcx> ArgAbiMethods<'tcx> for Builder<'a, 'tcx> {
|
||||
idx: &mut usize,
|
||||
dst: PlaceRef<'tcx, Self::Value>,
|
||||
) {
|
||||
fn next(bx: &mut Builder<'_, '_>, idx: &mut usize) -> SpirvValue {
|
||||
fn next(bx: &Builder<'_, '_>, idx: &mut usize) -> SpirvValue {
|
||||
let val = bx.function_parameter_values.borrow()[&bx.current_fn.def(bx)][*idx];
|
||||
*idx += 1;
|
||||
val
|
||||
|
@ -325,7 +325,7 @@ impl WriteBackendMethods for SpirvCodegenBackend {
|
||||
}
|
||||
|
||||
fn print_statistics(&self) {
|
||||
println!("TODO: Implement print_statistics")
|
||||
println!("TODO: Implement print_statistics");
|
||||
}
|
||||
|
||||
unsafe fn optimize(
|
||||
|
@ -1,6 +1,7 @@
|
||||
#![no_std]
|
||||
#![cfg_attr(
|
||||
target_arch = "spirv",
|
||||
allow(internal_features),
|
||||
feature(
|
||||
asm_const,
|
||||
asm_experimental_arch,
|
||||
|
@ -4,7 +4,7 @@
|
||||
//[via_intrinsic] build-pass
|
||||
// compile-flags: -C llvm-args=--disassemble-fn=ptr_copy::copy_via_raw_ptr
|
||||
|
||||
#![cfg_attr(via_intrinsic, feature(intrinsics))]
|
||||
#![cfg_attr(via_intrinsic, allow(internal_features), feature(intrinsics))]
|
||||
|
||||
use spirv_std::spirv;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user