about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/attributes.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-06-10 16:54:53 +0200
committerGitHub <noreply@github.com>2025-06-10 16:54:53 +0200
commit34d39eb3cb5e9f73645520a1e982153788b2d40a (patch)
tree46224267e6bd7ecc3b80afb38b4072477c4c6f83 /compiler/rustc_codegen_llvm/src/attributes.rs
parenta2badebce5d85fc2b2b01a59c7099b4e638dcf68 (diff)
parent856c9971fd374afef057257f086814997c72a9b3 (diff)
downloadrust-34d39eb3cb5e9f73645520a1e982153788b2d40a.tar.gz
rust-34d39eb3cb5e9f73645520a1e982153788b2d40a.zip
Rollup merge of #142275 - aDotInTheVoid:gen-ty-of, r=fmease
rustdoc: Refractor `clean_ty_generics`

Refactoring towards rust-lang/rust#142226

[Zulip Discussion](https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/Why.20sometimes.20.60predicates_of.60.20.28vs.20.60explicit_predicates_.2E.2E.2E/near/523182529)

The old `clean_ty_generics` was almost always called with the same args, so rename it to `clean_ty_generics_inner`, and add a new wrapper that generates those args from a `DefId`. Having this be the main entrypoint to `clean_ty_generics` should make it easier to start calling `inferred_outlives_of` https://github.com/rust-lang/rust/pull/142264#discussion_r2136498360 (and is more readable even if we don't)

Also, replaces all calls in rustdoc to `tcx.predicates_of` to `tcx.explicit_predicates_of`, which lets us remove `filter_non_trait_generics`

r? ```@fmease```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
0 files changed, 0 insertions, 0 deletions