mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +01:00
Format component size_of_test
This commit is contained in:
parent
f7630dad87
commit
52a11d8237
1 changed files with 9 additions and 3 deletions
|
@ -13,16 +13,22 @@ macro_rules! size_of_test {
|
||||||
panic!(
|
panic!(
|
||||||
"Your changes have decreased the stack size of {} from {} to {}. \
|
"Your changes have decreased the stack size of {} from {} to {}. \
|
||||||
Good work! Please update the expected size in {}.",
|
Good work! Please update the expected size in {}.",
|
||||||
stringify!($t), old, new, file!()
|
stringify!($t),
|
||||||
|
old,
|
||||||
|
new,
|
||||||
|
file!()
|
||||||
)
|
)
|
||||||
} else if new > old {
|
} else if new > old {
|
||||||
panic!(
|
panic!(
|
||||||
"Your changes have increased the stack size of {} from {} to {}. \
|
"Your changes have increased the stack size of {} from {} to {}. \
|
||||||
Please consider choosing a design which avoids this increase. \
|
Please consider choosing a design which avoids this increase. \
|
||||||
If you feel that the increase is necessary, update the size in {}.",
|
If you feel that the increase is necessary, update the size in {}.",
|
||||||
stringify!($t), old, new, file!()
|
stringify!($t),
|
||||||
|
old,
|
||||||
|
new,
|
||||||
|
file!()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue