| 1 |
mod matrix; |
| 2 |
mod stack; |
| 3 |
|
| 4 |
/// Wrapper for `assert_eq` that also asserts that the types are the same |
| 5 |
// For some reason, rustfmt totally messes up the formatting of this macro. |
| 6 |
// For now we skip, but once https://github.com/rust-lang/rustfmt/issues/6131 |
| 7 |
// is fixed, we can perhaps remove the skip attribute |
| 8 |
#[rustfmt::skip] |
| 9 |
macro_rules! assert_eq_and_type { |
| 10 |
($left:expr, $right:expr $(,)?) => { |
| 11 |
{ |
| 12 |
fn check_statically_same_type<T>(_: &T, _: &T) {} |
| 13 |
check_statically_same_type(&$left, &$right); |
| 14 |
} |
| 15 |
assert_eq!($left, $right); |
| 16 |
}; |
| 17 |
} |
| 18 |
|
| 19 |
pub(crate) use assert_eq_and_type; |