Draft
Conversation
t-lang consensus is to name the `MetaSized` trait as `SizeOfVal`: this updates the lang-item external name as its own independent change for easier reviewing.
That includes: - the libcore trait, and `library` uses of the lang item - top-level tests using the lang item in no_core or mini_core tests - tests in codegen backends, clippy, and rustdoc
The last bits of the renaming: - rustfmted the one compiler expression that needed reflowing - blessed test expectations - updated and renamed the tests whose name referenced "metasized" - updated the one mention in the rustc-dev-guide
Member
Author
|
I guess it's fine for PR CI. @bors try jobs=dist-x86_64-linux |
Contributor
|
⌛ Trying commit 13cbf33 with merge 2ea60dd… To cancel the try build, run the command Workflow: https://github.com/rust-lang/rust/actions/runs/23559064096 |
rust-bors bot
pushed a commit
that referenced
this pull request
Mar 25, 2026
Rename `MetaSized` trait to `SizeOfVal` try-job: dist-x86_64-linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This renames the
MetaSizedtrait from the Sized Hierarchy toSizeOfVal, as the consensus on t-lang from last week's meeting.I've tried to split the full change into self-contained commits for easier review.
rust/clippy/rustdoc tests all seem to pass locally, but I haven't tried the full cartesian product of all our bootstrap settings and optional submodules, so I'm opening this as draft to first see what breaks on CI.
Of note:
cc @davidtwco as well