-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
compiler: rename LayoutS to LayoutData #132252
compiler: rename LayoutS to LayoutData #132252
Conversation
The last {UninternedType}S is in captivity. The galaxy is at peace.
Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead. cc @rust-lang/rust-analyzer |
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.
Seems reasonable to me, but I'll wait some time for people more familiar with the backend if they have opinions.
@bors r+ rollup |
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#131391 (Stabilize `isqrt` feature) - rust-lang#132248 (rustc_transmute: Directly use types from rustc_abi) - rust-lang#132252 (compiler: rename LayoutS to LayoutData) - rust-lang#132253 (Known-bug test for `keyword_idents` lint not propagating to other files) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#132252 - workingjubilee:rename-layouts-to-layoutdata, r=jieyouxu compiler: rename LayoutS to LayoutData Bid `LayoutS` goodbye because it looks like a typo. `LayoutS` is the last of the types that use the "`{TypeName}` is the interned type, `{TypeName}S` is the backing data that is interned" convention. This is pretty confusing to those not intimately familiar with the history of rustc's names for its types over time, and doubly so now that there are no other examples in the tree. Abolish this convention.
I will admit I originally thought LayoutS was a typo and pointed it out to jubilee, thanks for the clarification and fixing it for everyone forever :D |
Culprit PR identified by @tautschnig: rust-lang/rust#132252 Resolves #3657 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
Bid
LayoutS
goodbye because it looks like a typo.LayoutS
is the last of the types that use the "{TypeName}
is the interned type,{TypeName}S
is the backing data that is interned" convention. This is pretty confusing to those not intimately familiar with the history of rustc's names for its types over time, and doubly so now that there are no other examples in the tree. Abolish this convention.