Remove fields from TypeKind: Array, Slice - #161896
Conversation
|
Some changes occurred to the CTFE machinery The reflection data structures are tied exactly to the implementation cc @oli-obk Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter |
|
|
…y-slice, r=oli-obk Remove fields from TypeKind: Array, Slice Tracking issue rust-lang#146922 Part of the [Refactoring to many methods](https://rust-lang.zulipchat.com/#narrow/channel/572285-goals.2Freflection/topic/Refactoring.20to.20many.20methods/with/592226560) reflection subgoal. See that for the full context. In short for various reasons we are moving from an enum `TypeKind` where the variants hold the types information to one that just tells you the type kind. Separate methods on `TypeId` provide a way to get to the data that used to be in the variant. r? @oli-obk
…y-slice, r=oli-obk Remove fields from TypeKind: Array, Slice Tracking issue rust-lang#146922 Part of the [Refactoring to many methods](https://rust-lang.zulipchat.com/#narrow/channel/572285-goals.2Freflection/topic/Refactoring.20to.20many.20methods/with/592226560) reflection subgoal. See that for the full context. In short for various reasons we are moving from an enum `TypeKind` where the variants hold the types information to one that just tells you the type kind. Separate methods on `TypeId` provide a way to get to the data that used to be in the variant. r? @oli-obk
…y-slice, r=oli-obk Remove fields from TypeKind: Array, Slice Tracking issue rust-lang#146922 Part of the [Refactoring to many methods](https://rust-lang.zulipchat.com/#narrow/channel/572285-goals.2Freflection/topic/Refactoring.20to.20many.20methods/with/592226560) reflection subgoal. See that for the full context. In short for various reasons we are moving from an enum `TypeKind` where the variants hold the types information to one that just tells you the type kind. Separate methods on `TypeId` provide a way to get to the data that used to be in the variant. r? @oli-obk
…uwer Rollup of 3 pull requests Successful merges: - #161896 (Remove fields from TypeKind: Array, Slice) - #162354 (Make comptime functions ineligible for coverage) - #162379 (add test ensuring we refuse to const-eval the body of a rustc_do_not_const_check function) Failed merges: - #162294 (Reflection refactor ptrs)
|
@bors try jobs=test-armhf-gnu |
This comment has been minimized.
This comment has been minimized.
…<try> Remove fields from TypeKind: Array, Slice try-job: test-armhf-gnu
|
💔 I suspect this PR failed tests as part of a rollup After fixing the problem, consider running a try job for the failed job before re-approving. Link to failure: #162417 (comment) Most likely this PR but not 100% sure, therefore starting try job |
|
This pull request was unapproved. This PR was contained in a rollup (#162417), which was unapproved. |
|
Yes please |
|
✌️ @yara-blue, you can now perform try builds on this pull request! Warning You used the legacy format of the delegate command. You can now post |
|
💔 Test for bd65654 failed: CI. Failed job:
|
This comment has been minimized.
This comment has been minimized.
75746ce to
86729db
Compare
|
@bors try jobs=test-armhf-gnu |
This comment has been minimized.
This comment has been minimized.
…<try> Remove fields from TypeKind: Array, Slice try-job: test-armhf-gnu
|
@JonathanBrouwer This one passes now, the code unintentionally assumed an int to always be 64 bit, that's fixed now 🥳 Should be good for another rollup |
|
@bors r=oli-obk |
This comment has been minimized.
This comment has been minimized.
86729db to
ed8f8b6
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r=oli-obk |
…uwer Rollup of 5 pull requests Successful merges: - #162436 (Replace links to `github.com/rust-lang/rfcs` with links to the Rust RFC Book) - #162438 (codegen_llvm: use minimum/maximum intrinsics now that they got fixed) - #161896 (Remove fields from TypeKind: Array, Slice) - #162276 (Avoid wrong suggestions for never type coerce) - #162421 (Raise a delayed bug when comparing incompatible constructors)
Rollup merge of #161896 - yara-blue:reflection-refactor-array-slice, r=oli-obk Remove fields from TypeKind: Array, Slice Tracking issue #146922 Part of the [Refactoring to many methods](https://rust-lang.zulipchat.com/#narrow/channel/572285-goals.2Freflection/topic/Refactoring.20to.20many.20methods/with/592226560) reflection subgoal. See that for the full context. In short for various reasons we are moving from an enum `TypeKind` where the variants hold the types information to one that just tells you the type kind. Separate methods on `TypeId` provide a way to get to the data that used to be in the variant. r? @oli-obk
View all comments
Tracking issue #146922
Part of the Refactoring to many methods reflection subgoal. See that for the full context. In short for various reasons we are moving from an enum
TypeKindwhere the variants hold the types information to one that just tells you the type kind. Separate methods onTypeIdprovide a way to get to the data that used to be in the variant.r? @oli-obk