Skip to content

Commit eff5fed

Browse files
alexcrichtongnzlbg
authored andcommitted
Fix instructions having extra quotes
1 parent 861dd73 commit eff5fed

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

crates/assert-instr-macro/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ pub fn assert_instr(
131131

132132
::stdsimd_test::assert(#shim_name as usize,
133133
stringify!(#shim_name),
134-
stringify!(#instr));
134+
#instr);
135135
}
136136
}.into();
137137
// why? necessary now to get tests to work?

crates/stdsimd-test/src/lib.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -371,16 +371,6 @@ fn normalize(symbol: &str) -> String {
371371
/// This asserts that the function at `fnptr` contains the instruction
372372
/// `expected` provided.
373373
pub fn assert(fnptr: usize, fnname: &str, expected: &str) {
374-
// The string in expected is surrounded by '"', strip these:
375-
let expected = {
376-
assert!(
377-
expected.len() > 2
378-
&& expected.starts_with('"')
379-
&& expected.ends_with('"')
380-
);
381-
expected.get(1..expected.len() - 1)
382-
.expect("expected must be a '\"' delimited string, e.g., \"nop\"")
383-
};
384374
let mut fnname = fnname.to_string();
385375
let functions = get_functions(fnptr, &mut fnname);
386376
assert_eq!(functions.len(), 1);

0 commit comments

Comments
 (0)