Skip to content

Refactor Type::size field to TypeId::size method for type_info#156223

Open
SpriteOvO wants to merge 2 commits intorust-lang:mainfrom
SpriteOvO:type-info-refactor-size
Open

Refactor Type::size field to TypeId::size method for type_info#156223
SpriteOvO wants to merge 2 commits intorust-lang:mainfrom
SpriteOvO:type-info-refactor-size

Conversation

@SpriteOvO
Copy link
Copy Markdown
Member

@SpriteOvO SpriteOvO commented May 6, 2026

Tracking issue #146922

r? @oli-obk

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 6, 2026

The reflection data structures are tied exactly to the implementation
in the compiler. Make sure to also adjust rustc_const_eval/src/const_eval/type_info.rs

cc @oli-obk

Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter
gets adapted for the changes, if necessary.

cc @rust-lang/miri, @RalfJung, @oli-obk, @lcnr

Some changes occurred to the CTFE machinery

cc @RalfJung, @oli-obk, @lcnr

Some changes occurred to the CTFE / Miri interpreter

cc @rust-lang/miri

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 6, 2026
@SpriteOvO SpriteOvO added F-type_info #![feature(type_info)] and removed T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 6, 2026
Comment thread compiler/rustc_const_eval/src/interpret/projection.rs Outdated
Comment thread library/core/src/mem/type_info.rs
@SpriteOvO SpriteOvO force-pushed the type-info-refactor-size branch from fa025e2 to 72d15e1 Compare May 6, 2026 05:46
@rustbot rustbot added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 6, 2026
@SpriteOvO SpriteOvO added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 6, 2026
@SpriteOvO

This comment was marked as off-topic.

Comment thread compiler/rustc_const_eval/src/interpret/projection.rs Outdated
@oli-obk

This comment was marked as off-topic.

@oli-obk oli-obk added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 6, 2026
@SpriteOvO SpriteOvO force-pushed the type-info-refactor-size branch from 72d15e1 to f7649e7 Compare May 7, 2026 05:10
@SpriteOvO
Copy link
Copy Markdown
Member Author

@rustbot ready

@SpriteOvO SpriteOvO added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 7, 2026
Copy link
Copy Markdown
Contributor

@oli-obk oli-obk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 7, 2026

📌 Commit f7649e7 has been approved by oli-obk

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 7, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request May 7, 2026
… r=oli-obk

Refactor `Type::size` field to `TypeId::size` method for `type_info`

Tracking issue rust-lang#146922

r? @oli-obk
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 7, 2026
@oli-obk oli-obk removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 7, 2026
rust-bors Bot pushed a commit that referenced this pull request May 7, 2026
Rollup of 12 pull requests

Successful merges:

 - #156173 (Fewer global node_id_to_def_id lookups)
 - #156177 (windows/time: avoid being too close to 0)
 - #155961 (Deny warnings in the test for crates that are available on stable)
 - #155981 (Use special DefIds for aliases)
 - #156130 (Fold/visit tweaks)
 - #156131 (Metadata macro/query cleanups)
 - #156202 (llvm: Use correct type for splat mask)
 - #156223 (Refactor `Type::size` field to `TypeId::size` method for `type_info`)
 - #156227 (Add Trusty OS to the generic error implementation.)
 - #156237 (compiletest: prevent directives from having multiple revisions)
 - #156241 (Move tests coercion)
 - #156258 (Document wasi-sdk minimum versions for WASI targets)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-type_info #![feature(type_info)] S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants