Skip to content

Commit 7e26485

Browse files
committed
fix lint and spv1.3 stderr for panic/message updates
1 parent c3c424a commit 7e26485

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/rustc_codegen_spirv/src/builder/format_args_decompiler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ impl<'tcx> DecodedFormatArgs<'tcx> {
248248
cx.tcx.def_path_str(def_id) == "core::panicking::panic_bounds_check"
249249
}) && args.len() >= 2
250250
{
251-
let index = args[0].clone();
252-
let len = args[1].clone();
251+
let index = args[0];
252+
let len = args[1];
253253
if let (Some(len_ref_id), Some(index_ref_id)) =
254254
(spill_value_to_local(len), spill_value_to_local(index))
255255
{

tests/compiletests/ui/image/query/sampled_image_rect_query_size_lod_err.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Image<f32, 4, 2, 0, 0, 1, 0, 4>: HasQuerySizeLod` is not satisfied
2-
--> $DIR/sampled_image_rect_query_size_lod_err.rs:21:28
2+
--> $DIR/sampled_image_rect_query_size_lod_err.rs:22:28
33
|
44
LL | *output = rect_sampled.query_size_lod(0);
55
| ^^^^^^^^^^^^^^ the trait `HasQuerySizeLod` is not implemented for `Image<f32, 4, 2, 0, 0, 1, 0, 4>`

0 commit comments

Comments
 (0)