Skip to content

Tracking issue for dejargonification #110254

Open
@oli-obk

Description

@oli-obk

There are some things in rustc that are named historically or just really oddly. This issue tracks renaming them to reflect what they are without having to understand Rust's history and/or programming language design/theory jargon.

  • Region -> Lifetime in general. While Region kinda makes more sense, we use Lifetime in the language
  • EarlyBoundRegion -> GenericLifetime (to reflect what they are in the language)
  • LateBoundRegion ->HigherRankedLifetime (")
  • *Folder and fold_* -> *Replacer and replace_*
  • update internal terminology: Substs -> GenericArgs #110793
  • subst -> replace_generics

These changes have an accepted MCP at rust-lang/compiler-team#451

Note: please do not pick up any of these work items without first checking in with me. These renamings aren't universally liked and we should make sure everyone stays on board.

I'm not gonna move on these things quickly, and I'm fine closing PRs even after putting in lotsa work. So if anyone has concerns, please raise them on a zulip thread or directly with me.

Metadata

Metadata

Assignees

Labels

A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustC-cleanupCategory: PRs that clean code up or issues documenting cleanup.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-typesRelevant to the types team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions