-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
cg_llvm: Reduce the visibility of types, modules and using declarations in rustc_codegen_llvm
.
#137247
base: master
Are you sure you want to change the base?
Conversation
I've been thinking about how to deal with the enums that have more than 1-2 unused variants, especially the ones where almost all variants are unused. Putting So for those enums, I think it's going to be better to just put That's a bit of a shame, but it's still an improvement over the status quo of everything being |
Specifically, I'm proposing that these enums should have
|
ecb9173
to
f47f772
Compare
Done |
Adding reasons for the |
@bors r+ |
cg_llvm: Reduce the visibility of types, modules and using declarations in `rustc_codegen_llvm`. Final part of rust-lang#135502 Reduces the visibility of types, modules and using declarations in the `rustc_codegen_llvm` to private or `pub(crate)` where possible, and marks unused fields and enum entries with `#[expect(dead_code)]`. r? `@Zalathar`
Ah, this collided with some more |
a5d4c5c
to
5bf2edb
Compare
Updated. |
Final part of #135502
Reduces the visibility of types, modules and using declarations in the
rustc_codegen_llvm
to private orpub(crate)
where possible, and marks unused fields and enum entries with#[expect(dead_code)]
.r? @Zalathar