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. |
||
|---|---|---|
| .. | ||
| highlight | ||
| markdown | ||
| render | ||
| static | ||
| toc | ||
| escape.rs | ||
| format.rs | ||
| highlight.rs | ||
| layout.rs | ||
| markdown.rs | ||
| mod.rs | ||
| sources.rs | ||
| static_files.rs | ||
| toc.rs | ||