Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hir: consistent use and naming of lang items #75666

Merged
merged 1 commit into from
Aug 25, 2020

Conversation

davidtwco
Copy link
Member

@davidtwco davidtwco commented Aug 18, 2020

This PR adjusts the naming of various lang items so that they are consistent and don't include prefixes containing the target or "LangItem". In addition, lang item variants are no longer exported from the lang_items module.

This is certainly subjective and while I think this is an improvement, if many in the team don't then we can just close this.

@rust-highfive
Copy link
Collaborator

r? @varkor

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 18, 2020
@bors

This comment has been minimized.

Copy link
Contributor

@lcnr lcnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this is a fairly huge improvement, not sure how much T-compiler consensus this needs though 🤷

src/librustc_hir/lang_items.rs Outdated Show resolved Hide resolved
@bors

This comment has been minimized.

@varkor
Copy link
Member

varkor commented Aug 22, 2020

I think this is an improvement, and it's consistent with naming conventions elsewhere, so I'll approve, and if anyone has any objections, they can comment.

r=me after rebasing

This commit adjusts the naming of various lang items so that they are
consistent and don't include prefixes containing the target or
"LangItem". In addition, lang item variants are no longer exported from
the `lang_items` module.

Signed-off-by: David Wood <david@davidtw.co>
@davidtwco
Copy link
Member Author

@bors r=varkor

@bors
Copy link
Contributor

bors commented Aug 24, 2020

📌 Commit 6cc268e has been approved by varkor

@bors bors 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 Aug 24, 2020
@bors
Copy link
Contributor

bors commented Aug 25, 2020

⌛ Testing commit 6cc268e with merge 3e041ce...

@bors
Copy link
Contributor

bors commented Aug 25, 2020

☀️ Test successful - checks-actions, checks-azure
Approved by: varkor
Pushing 3e041ce to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 25, 2020
@bors bors merged commit 3e041ce into rust-lang:master Aug 25, 2020
@davidtwco davidtwco deleted the tidy-lang-items branch September 2, 2020 10:04
@cuviper cuviper added this to the 1.47.0 milestone May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants