mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Update path in script_tests::size_of error messages
This commit is contained in:
parent
f0f0265139
commit
33b9aa49db
1 changed files with 2 additions and 2 deletions
|
@ -23,14 +23,14 @@ macro_rules! sizeof_checker (
|
||||||
let old = $known_size;
|
let old = $known_size;
|
||||||
if new < old {
|
if new < old {
|
||||||
panic!("Your changes have decreased the stack size of commonly used DOM struct {} from {} to {}. \
|
panic!("Your changes have decreased the stack size of commonly used DOM struct {} from {} to {}. \
|
||||||
Good work! Please update the size in script/tests.rs",
|
Good work! Please update the size in tests/unit/script/size_of.rs.",
|
||||||
stringify!($t), old, new)
|
stringify!($t), old, new)
|
||||||
} else if new > old {
|
} else if new > old {
|
||||||
panic!("Your changes have increased the stack size of commonly used DOM struct {} from {} to {}. \
|
panic!("Your changes have increased the stack size of commonly used DOM struct {} from {} to {}. \
|
||||||
These structs are present in large quantities in the DOM, and increasing the size \
|
These structs are present in large quantities in the DOM, and increasing the size \
|
||||||
may dramatically affect our memory footprint. Please consider choosing a design which \
|
may dramatically affect our memory footprint. Please consider choosing a design which \
|
||||||
avoids this increase. If you feel that the increase is necessary, \
|
avoids this increase. If you feel that the increase is necessary, \
|
||||||
update to the new size in script/tests.rs.",
|
update to the new size in tests/unit/script/size_of.rs.",
|
||||||
stringify!($t), old, new)
|
stringify!($t), old, new)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue