about summary refs log tree commit diff
path: root/library/stdarch/crates/assert-instr-macro
diff options
context:
space:
mode:
Diffstat (limited to 'library/stdarch/crates/assert-instr-macro')
-rw-r--r--library/stdarch/crates/assert-instr-macro/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/stdarch/crates/assert-instr-macro/src/lib.rs b/library/stdarch/crates/assert-instr-macro/src/lib.rs
index 1963e0720c0..f40f81fc033 100644
--- a/library/stdarch/crates/assert-instr-macro/src/lib.rs
+++ b/library/stdarch/crates/assert-instr-macro/src/lib.rs
@@ -62,7 +62,10 @@ pub fn assert_instr(
     for arg in func.decl.inputs.iter() {
         let capture = match *arg {
             syn::FnArg::Captured(ref c) => c,
-            _ => panic!("arguments must not have patterns"),
+            ref v => panic!(
+                "arguments must not have patterns: `{:?}`",
+                v.clone().into_tokens()
+            ),
         };
         let ident = match capture.pat {
             syn::Pat::Ident(ref i) => &i.ident,