-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update expected stylo sizes for rust-lang/rust#45225. #19285
Conversation
Heads up! This PR modifies the following files:
|
Thanks @eddyb. This likely won’t pass CI since rust-lang/rust#45225 is not yet in a rustc version we use. I’ll take over to make it conditional or something once rust-lang/rust#45225 lands. (Servo and Firefox use different versions.) In the meantime, as I said in rust-lang/rust#45225, feel free to disable Stylo tests in Rust CI. |
|
@@ -57,5 +57,5 @@ size_of_test!(test_size_of_specified_image, specified::image::Image, 40); | |||
|
|||
// FIXME(bz): These can shrink if we move the None_ value inside the | |||
// enum instead of paying an extra word for the Either discriminant. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this fixed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so. That is, we’ll get the shrinkage benefit without changing the type definitions. I’ll double check tomorrow when Rust Nightly has this change, and remove the FIXME comment.
This is on top of #19285. Rust Nightly has new enum memory layout optimizations: rust-lang/rust#45225
This is on top of #19285. Rust Nightly has new enum memory layout optimizations: rust-lang/rust#45225
Fix Stylo tests to pass on both Stable and Nightly Rust This is on top of #19285. Rust Nightly has new enum memory layout optimizations: rust-lang/rust#45225 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19316) <!-- Reviewable:end -->
…tly Rust (from servo:stylo-size-of); r=emilio This is on top of servo/servo#19285. Rust Nightly has new enum memory layout optimizations: rust-lang/rust#45225 Source-Repo: https://github.com/servo/servo Source-Revision: 17e97b9320fdb7cdb33bbc5f4d0fde0653bbf2e4 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 3255b68a8069a815effae1b6b6ee4e97dedaddd3
…tly Rust (from servo:stylo-size-of); r=emilio This is on top of servo/servo#19285. Rust Nightly has new enum memory layout optimizations: rust-lang/rust#45225 Source-Repo: https://github.com/servo/servo Source-Revision: 17e97b9320fdb7cdb33bbc5f4d0fde0653bbf2e4
…tly Rust (from servo:stylo-size-of); r=emilio This is on top of servo/servo#19285. Rust Nightly has new enum memory layout optimizations: rust-lang/rust#45225 Source-Repo: https://github.com/servo/servo Source-Revision: 17e97b9320fdb7cdb33bbc5f4d0fde0653bbf2e4
…tly Rust (from servo:stylo-size-of); r=emilio This is on top of servo/servo#19285. Rust Nightly has new enum memory layout optimizations: rust-lang/rust#45225 Source-Repo: https://github.com/servo/servo Source-Revision: 17e97b9320fdb7cdb33bbc5f4d0fde0653bbf2e4 UltraBlame original commit: 6de571030d5d998dcadbd3dac602fa006395165c
…tly Rust (from servo:stylo-size-of); r=emilio This is on top of servo/servo#19285. Rust Nightly has new enum memory layout optimizations: rust-lang/rust#45225 Source-Repo: https://github.com/servo/servo Source-Revision: 17e97b9320fdb7cdb33bbc5f4d0fde0653bbf2e4 UltraBlame original commit: 6de571030d5d998dcadbd3dac602fa006395165c
…tly Rust (from servo:stylo-size-of); r=emilio This is on top of servo/servo#19285. Rust Nightly has new enum memory layout optimizations: rust-lang/rust#45225 Source-Repo: https://github.com/servo/servo Source-Revision: 17e97b9320fdb7cdb33bbc5f4d0fde0653bbf2e4 UltraBlame original commit: 6de571030d5d998dcadbd3dac602fa006395165c
See rust-lang/rust#45225 (comment).
./mach build -d
does not report any errors./mach test-tidy
does not report any errorsThis change is