about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-23 06:39:15 +0000
committerbors <bors@rust-lang.org>2020-12-23 06:39:15 +0000
commit28d73a3ee3e2c32f2768d1cbc9b42cb63472e9e9 (patch)
tree6f1892c2f049651ca45ca611588a2c8defa4855f /compiler/rustc_codegen_llvm/src
parent18b745e9bf3e11ed658b0fc4eb7ddaa8e2178b39 (diff)
parenta2fb4b95ddda1c2d622c809e63aa5e158cfb9976 (diff)
downloadrust-28d73a3ee3e2c32f2768d1cbc9b42cb63472e9e9.tar.gz
rust-28d73a3ee3e2c32f2768d1cbc9b42cb63472e9e9.zip
Auto merge of #80099 - jyn514:visibility-on-demand, r=GuillaumeGomez
Remove `DefPath` from `Visibility` and calculate it on demand

Depends on #80090 and should not be merged before. Helps with https://github.com/rust-lang/rust/issues/79103 and https://github.com/rust-lang/rust/issues/76382.

cc https://github.com/rust-lang/rust/pull/80014#issuecomment-746810284 - `@nnethercote` I figured it out! It was simpler than I expected :)

This brings the size of `clean::Visibility` down from 40 bytes to 8.

Note that this does *not* remove `clean::Visibility`, even though it's now basically the same as `ty::Visibility`, because the `Invsible` variant means something different from `Inherited` and I thought it would be be confusing to merge the two. See the new comments on `impl Clean for ty::Visibility` for details.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions