summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/asm.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-23 10:50:14 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2023-07-23 10:50:14 +0200
commitadf759bf6a15e0f4782866dd38e071d60cfbb50c (patch)
tree0dae0ffa08fa805705f8588c35a198d4d09d8008 /compiler/rustc_builtin_macros/src/asm.rs
parentcec34a43b1b14f4e39363f3b283d7ac4f593ee81 (diff)
downloadrust-adf759bf6a15e0f4782866dd38e071d60cfbb50c.tar.gz
rust-adf759bf6a15e0f4782866dd38e071d60cfbb50c.zip
fix couple of clippy findings:
filter_map_identity
iter_kv_map
needless_question_mark
redundant_at_rest_pattern
filter_next
derivable_impls
Diffstat (limited to 'compiler/rustc_builtin_macros/src/asm.rs')
-rw-r--r--compiler/rustc_builtin_macros/src/asm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/asm.rs b/compiler/rustc_builtin_macros/src/asm.rs
index 19acefc38e3..21f45935218 100644
--- a/compiler/rustc_builtin_macros/src/asm.rs
+++ b/compiler/rustc_builtin_macros/src/asm.rs
@@ -401,7 +401,7 @@ fn parse_clobber_abi<'a>(p: &mut Parser<'a>, args: &mut AsmArgs) -> PResult<'a,
         // should have errored above during parsing
         [] => unreachable!(),
         [(abi, _span)] => args.clobber_abis.push((*abi, full_span)),
-        [abis @ ..] => {
+        abis => {
             for (abi, span) in abis {
                 args.clobber_abis.push((*abi, *span));
             }