Bug 1491577 - Format component size_of_test. r=emilio

This cherry-picks servo/servo#21661.
This commit is contained in:
chansuke 2018-09-10 21:31:38 +09:00 committed by Emilio Cobos Álvarez
parent 0399b9e762
commit 79427e9830

View File

@ -13,16 +13,22 @@ macro_rules! size_of_test {
panic!(
"Your changes have decreased the stack size of {} from {} to {}. \
Good work! Please update the expected size in {}.",
stringify!($t), old, new, file!()
stringify!($t),
old,
new,
file!()
)
} else if new > old {
panic!(
"Your changes have increased the stack size of {} from {} to {}. \
Please consider choosing a design which avoids this increase. \
If you feel that the increase is necessary, update the size in {}.",
stringify!($t), old, new, file!()
stringify!($t),
old,
new,
file!()
)
}
}
}
};
}