@@ -797,16 +797,15 @@ mod tests {
797
797
798
798
/// This macro accepts arguments in the form of:
799
799
///
800
- /// layout(_, _, _).validate(_, _, _), Ok(Some((_, _)))
801
- /// | | | | | | | |
802
- /// base_size ----+ | | | | | | |
803
- /// align -----------+ | | | | | |
804
- /// trailing_size ------+ | | | | |
805
- /// addr ---------------------------+ | | | |
806
- /// bytes_len -------------------------+ | | |
807
- /// cast_type ----------------------------+ | |
808
- /// elems ---------------------------------------------+ |
809
- /// split_at ---------------------------------------------+
800
+ /// layout(_, _).validate(_, _, _), Ok(Some((_, _)))
801
+ /// | | | | | | |
802
+ /// size ---------+ | | | | | |
803
+ /// align -----------+ | | | | |
804
+ /// addr ------------------------+ | | | |
805
+ /// bytes_len ----------------------+ | | |
806
+ /// cast_type -------------------------+ | |
807
+ /// elems ------------------------------------------+ |
808
+ /// split_at ------------------------------------------+
810
809
///
811
810
/// `.validate` is shorthand for `.validate_cast_and_convert_metadata`
812
811
/// for brevity.
@@ -839,7 +838,7 @@ mod tests {
839
838
/// `a..b`). In this case, wrap the expression in parentheses, and it
840
839
/// will become valid `tt`.
841
840
macro_rules! test {
842
- ( $ ( : $sizes : expr => ) ?
841
+ (
843
842
layout( $size: tt, $align: tt)
844
843
. validate( $addr: tt, $bytes_len: tt, $cast_type: tt) , $expect: pat $( , ) ?
845
844
) => {
0 commit comments