Skip to content

Rename various "concrete opaque type" things to say "hidden type" - #147109

Merged
bors merged 2 commits into
rust-lang:masterfrom
BoxyUwU:rename_concrete_opaques
Sep 30, 2025
Merged

Rename various "concrete opaque type" things to say "hidden type"#147109
bors merged 2 commits into
rust-lang:masterfrom
BoxyUwU:rename_concrete_opaques

Conversation

@BoxyUwU

Copy link
Copy Markdown
Member

r? lcnr

I've found "concrete opaque type" terminology to be somewhat confusing as in conversation and when explaining opaque type stuff to people I always just talk about things in terms of hidden types. Also the hidden types of opaques are very much not concrete in the same sense that a type without any generic parameters is concrete which is an unfortunate overlap in terminology.

I've tried to update comments to also stop referring to things as concrete opaque types but this is mostly best effort as it difficult to find all such cases amongst the massive amounts of uses of "concrete" or "hidden" across the whole compiler.

@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred in exhaustiveness checking

cc @Nadrieril

@rustbotrustbot added 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. labels Sep 27, 2025
Comment threadcompiler/rustc_borrowck/src/region_infer/opaque_types/mod.rs Outdated
Comment threadcompiler/rustc_borrowck/src/region_infer/opaque_types/mod.rs Outdated
Comment threadcompiler/rustc_hir_typeck/src/opaque_types.rs Outdated
@BoxyUwU
BoxyUwUforce-pushed the rename_concrete_opaques branch from 292a521 to 66b664cCompareSeptember 29, 2025 15:06
@BoxyUwU

Copy link
Copy Markdown
MemberAuthor

do u think add_hidden_type and get_hidden_type should also be definition_site_ infected or its fine as is?

@lcnr

lcnr commented Sep 30, 2025

Copy link
Copy Markdown
Contributor

I think it's fine 🤷 no strong preference here

@bors r+ rollup=iffy

@bors

bors commented Sep 30, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit 66b664c has been approved by lcnr

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 30, 2025
Zalathar added a commit to Zalathar/rust that referenced this pull request Sep 30, 2025
…=lcnr
Rename various "concrete opaque type" things to say "hidden type"
r? lcnr
I've found "concrete opaque type" terminology to be somewhat confusing as in conversation and when explaining opaque type stuff to people I always just talk about things in terms of hidden types. Also the hidden types of opaques are very much not *concrete* in the same sense that a type without any generic parameters is concrete which is an unfortunate overlap in terminology.
I've tried to update comments to also stop referring to things as concrete opaque types but this is mostly best effort as it difficult to find all such cases amongst the massive amounts of uses of "concrete" or "hidden" across the whole compiler.
This was referenced Sep 30, 2025
bors added a commit that referenced this pull request Sep 30, 2025
Rollup of 5 pull requests
Successful merges:
- #140916 (Fix unuseful span in type error in some format_args!() invocations)
- #146011 (Point at fn bound that introduced lifetime obligation)
- #146649 (cmse: fix 'region variables should not be hashed')
- #147109 (Rename various "concrete opaque type" things to say "hidden type")
- #147167 (Don't condition RUSTDOC_LIBDIR on `--no-doc`)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 156d150 into rust-lang:masterSep 30, 2025
10 checks passed
@rustbotrustbot added this to the 1.92.0 milestone Sep 30, 2025
rust-timer added a commit that referenced this pull request Sep 30, 2025
Rollup merge of #147109 - BoxyUwU:rename_concrete_opaques, r=lcnr
Rename various "concrete opaque type" things to say "hidden type"
r? lcnr
I've found "concrete opaque type" terminology to be somewhat confusing as in conversation and when explaining opaque type stuff to people I always just talk about things in terms of hidden types. Also the hidden types of opaques are very much not *concrete* in the same sense that a type without any generic parameters is concrete which is an unfortunate overlap in terminology.
I've tried to update comments to also stop referring to things as concrete opaque types but this is mostly best effort as it difficult to find all such cases amongst the massive amounts of uses of "concrete" or "hidden" across the whole compiler.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@BoxyUwU@rustbot@lcnr@bors