Address new rustc/clippy lints.

This commit is contained in:
Eduard-Mihai Burtescu 2023-11-21 17:20:43 +02:00
parent acaf74c060
commit 8637102791
4 changed files with 4 additions and 3 deletions

View File

@ -298,7 +298,7 @@ impl<'a, 'tcx> ArgAbiMethods<'tcx> for Builder<'a, 'tcx> {
idx: &mut usize, idx: &mut usize,
dst: PlaceRef<'tcx, Self::Value>, 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]; let val = bx.function_parameter_values.borrow()[&bx.current_fn.def(bx)][*idx];
*idx += 1; *idx += 1;
val val

View File

@ -325,7 +325,7 @@ impl WriteBackendMethods for SpirvCodegenBackend {
} }
fn print_statistics(&self) { fn print_statistics(&self) {
println!("TODO: Implement print_statistics") println!("TODO: Implement print_statistics");
} }
unsafe fn optimize( unsafe fn optimize(

View File

@ -1,6 +1,7 @@
#![no_std] #![no_std]
#![cfg_attr( #![cfg_attr(
target_arch = "spirv", target_arch = "spirv",
allow(internal_features),
feature( feature(
asm_const, asm_const,
asm_experimental_arch, asm_experimental_arch,

View File

@ -4,7 +4,7 @@
//[via_intrinsic] build-pass //[via_intrinsic] build-pass
// compile-flags: -C llvm-args=--disassemble-fn=ptr_copy::copy_via_raw_ptr // 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; use spirv_std::spirv;