Skip to content

Rename OutlivesPredicate to OutlivesClause - #160343

Open
ada4a wants to merge 2 commits into
rust-lang:mainfrom
ada4a:push-oyyponlxmyxy
Open

Rename OutlivesPredicate to OutlivesClause#160343
ada4a wants to merge 2 commits into
rust-lang:mainfrom
ada4a:push-oyyponlxmyxy

Conversation

@ada4a

@ada4a ada4a commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #160177

This is motivated by OutlivesPredicate being the inner type of ClauseKind::TypeOutlives and ClauseKind::RegionOutlives, and the "outlives clause" terminology already being used in a few places across the codebase.

One thing worth noting: OutlivesPredicate and its derivatives are duplicated in rustc_public. I chose to rename them, but leave the old names available as deprecated type aliases -- this should hopefully be semver-compatible?

r? @oli-obk
cc @nnethercote

..to `compare_{method,type}_clause_entailment`
@rustbot

rustbot commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

This PR changes rustc_public

cc @oli-obk, @celinval, @ouz-a, @makai410

rustc-dev-guide is developed in its own repository. If possible, consider making this change to rust-lang/rustc-dev-guide instead.

cc @BoxyUwU, @tshepang

HIR ty lowering was modified

cc @fmease

changes to the core type system

cc @lcnr

@rustbot rustbot added A-rustc-dev-guide Area: rustc-dev-guide S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Aug 1, 2026
@rust-log-analyzer

This comment has been minimized.

@ada4a
ada4a force-pushed the push-oyyponlxmyxy branch from d90cb1d to 19f5839 Compare August 1, 2026 15:33
@rustbot rustbot added A-rustdoc-js Area: Rustdoc's JS front-end A-rustdoc-search Area: Rustdoc's search feature T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rustc-dev-guide Area: rustc-dev-guide A-rustdoc-js Area: Rustdoc's JS front-end A-rustdoc-search Area: Rustdoc's search feature S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants