Skip to content

Commit ba845cf

Browse files
committed
for some reason rust 1.65 doesn't understand expr_2021
1 parent 57f63ba commit ba845cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tests/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ const _: () = {
1616
assert_auto_traits::<Error>();
1717
};
1818

19+
#[allow(edition_2024_expr_fragment_specifier)]
1920
macro_rules! assert_matches {
20-
($e:expr_2021, $pat:pat $(if $guard:expr_2021)? $(,)?) => {
21+
($e:expr, $pat:pat $(if $guard:expr)? $(,)?) => {
2122
assert!(matches!($e, $pat $(if $guard)?), "assertion failed: {:?} does not match {}", $e, stringify!($pat $(if $guard)?))
2223
};
2324
}

0 commit comments

Comments
 (0)