-
Couldn't load subscription status.
- Fork 13.9k
repr_transparent_external_private_fields: normalize types during traversal #147514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repr_transparent_external_private_fields: normalize types during traversal #147514
Conversation
| // "known" respecting #[non_exhaustive] attributes. | ||
| let field_infos = adt.all_fields().map(|field| { | ||
| let ty = field.ty(tcx, GenericArgs::identity_for_item(tcx, field.did)); | ||
| let typing_env = ty::TypingEnv::non_body_analysis(tcx, field.did); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously we used the field DefId here, now we're using the DefId of the surrounding ADT -- I hope that doesn't make a difference.
|
@bors r+ rollup using the |
…-normalize, r=lcnr repr_transparent_external_private_fields: normalize types during traversal Determining whether a type is a 1-ZST will internally do full normalization, so we better do the same when scanning for non-exhaustive types. r? `@lcnr`
Rollup of 6 pull requests Successful merges: - #147514 (repr_transparent_external_private_fields: normalize types during traversal) - #147605 (Add doc links between `{integer}::from_str_radix` and `from_str`) - #147608 (cg_llvm: Use `LLVMDIBuilderCreateGlobalVariableExpression`) - #147623 (Clear `ChunkedBitSet` without reallocating) - #147625 (Add a warning when running tests with the GCC backend and debug assertions are enabled) - #147626 (Generalize configuring LLD as the default linker in bootstrap) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #147514 - RalfJung:transparent-nonexhaustive-normalize, r=lcnr repr_transparent_external_private_fields: normalize types during traversal Determining whether a type is a 1-ZST will internally do full normalization, so we better do the same when scanning for non-exhaustive types. r? ``@lcnr``
Determining whether a type is a 1-ZST will internally do full normalization, so we better do the same when scanning for non-exhaustive types.
r? @lcnr