Conversation
|
I guess it's fine for PR CI. @bors try jobs=dist-x86_64-linux |
This comment has been minimized.
This comment has been minimized.
Rename `MetaSized` trait to `SizeOfVal` try-job: dist-x86_64-linux
|
Cool, the opt-dist tests passed. |
|
A couple of well-known projects are "using"
The first two make light use of it, but I'll also open a couple PRs there. Ferrocene looks like it gets it from us upstream, so I assume this will be invisible. The other projects are mostly similar to forks, or copying parts of libcore so I assume it's as fine as we've done in the past like #130225. Even if this is still unstable, and unlikely to see a lot of use, it could be interesting to check. The crater queue is currently busy, but it's OK. We could open issues in other projects early if we see anything in a run for informational purposes. @bors try |
This comment has been minimized.
This comment has been minimized.
Rename `MetaSized` trait to `SizeOfVal`
This comment was marked as resolved.
This comment was marked as resolved.
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
|
Nominated for libs-api discussion regarding naming; see https://rust-lang.zulipchat.com/#narrow/channel/219381-t-libs/topic/vibeck.20on.20Sized.20Hierarchy.20trait.20names/ |
|
☔ The latest upstream changes (presumably #154727) made this pull request unmergeable. Please resolve the merge conflicts. |
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