Uh oh!
There was an error while loading. Please reload this page.
Check tuple elements are Sized in offset_of - #112193
Merged
Merged
Conversation
rustbot
commented
Jun 2, 2023
Collaborator
(rustbot has picked a reviewer for you, use r? to override) |
clubby789
commented
Jun 2, 2023
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
rust-cloud-vmsBotforce-pushed
the
offset-of-tuple-sized
branch
from
June 2, 2023 00:56
977484d to
0cb00c0Compareest31
reviewed
Jun 2, 2023
Uh oh!
There was an error while loading. Please reload this page.
rust-cloud-vmsBotforce-pushed
the
offset-of-tuple-sized
branch
from
June 2, 2023 01:30
0cb00c0 to
f8a3695Comparerust-cloud-vmsBotforce-pushed
the
offset-of-tuple-sized
branch
from
June 2, 2023 01:33
f8a3695 to
d722f27Compareest31
commented
Jun 2, 2023
Member
bors
commented
Jun 2, 2023
Collaborator
bors added a commit
to rust-lang-ci/rust
that referenced
this pull request
Jun 2, 2023
…mpiler-errors Rollup of 7 pull requests Successful merges: - rust-lang#111670 (Require that const param tys implement `ConstParamTy`) - rust-lang#111914 (CFI: Fix cfi with async: transform_ty: unexpected GeneratorWitness(Bi…) - rust-lang#112030 (Migrate `item_trait_alias` to Askama) - rust-lang#112150 (Support 128-bit atomics on all x86_64 Apple targets) - rust-lang#112174 (Fix broken link) - rust-lang#112190 (Improve comments on `TyCtxt` and `GlobalCtxt`.) - rust-lang#112193 (Check tuple elements are `Sized` in `offset_of`) Failed merges: - rust-lang#112071 (Group rfcs tests) r? `@ghost` `@rustbot` modify labels: rollup
flip1995 pushed a commit
to flip1995/rust
that referenced
this pull request
Jun 30, 2023
…mpiler-errors Rollup of 7 pull requests Successful merges: - rust-lang#111670 (Require that const param tys implement `ConstParamTy`) - rust-lang#111914 (CFI: Fix cfi with async: transform_ty: unexpected GeneratorWitness(Bi…) - rust-lang#112030 (Migrate `item_trait_alias` to Askama) - rust-lang#112150 (Support 128-bit atomics on all x86_64 Apple targets) - rust-lang#112174 (Fix broken link) - rust-lang#112190 (Improve comments on `TyCtxt` and `GlobalCtxt`.) - rust-lang#112193 (Check tuple elements are `Sized` in `offset_of`) Failed merges: - rust-lang#112071 (Group rfcs tests) r? `@ghost` `@rustbot` modify labels: rollup
RalfJung
reviewed
Jun 8, 2024
| { | ||
| for ty in tys.iter().take(index + 1) { | ||
| self.require_type_is_sized(ty, expr.span, traits::MiscObligation); | ||
| } |
Member
There was a problem hiding this comment.
What is the reason for checking all fields of the tuple (that are before the indexed field)? For ADTs we only check the field we are indexing, and the same should be enough for tuples. So I don't see the point of this loop.
In #126150 I am removing it.
ContributorAuthor
There was a problem hiding this comment.
At this point I can't remember 🤔 I think all good if it's caught by code elsewhere
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 freeto 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.
Fixes#112186