Skip to content

Stop creating fake HIR pattern nodes. #38766

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

Merged
merged 2 commits into from
Jan 2, 2017
Merged

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Jan 1, 2017

This replaces all the HIR patterns rustc_const_eval creates with the more appropriate HAIR equivalent.

The only place left that creates HIR nodes is the "explicit lifetimes in function signature" suggestion, which only creates type nodes while rebuilding the signature, but that is only in case of an error.

cc @arielb1

@rust-highfive
Copy link
Contributor

r? @pnkfelix

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

@arielb1
Copy link
Contributor

arielb1 commented Jan 2, 2017

Nice!

@bors r+

@bors
Copy link
Collaborator

bors commented Jan 2, 2017

📌 Commit c6e130e has been approved by arielb1

@bors
Copy link
Collaborator

bors commented Jan 2, 2017

⌛ Testing commit c6e130e with merge df61658...

bors added a commit that referenced this pull request Jan 2, 2017
Stop creating fake HIR pattern nodes.

This replaces all the HIR patterns `rustc_const_eval` creates with the more appropriate HAIR equivalent.

The only place left that creates HIR nodes is the "explicit lifetimes in function signature" suggestion, which only creates type nodes while rebuilding the signature, but that is only in case of an error.

cc @arielb1
@bors
Copy link
Collaborator

bors commented Jan 2, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: arielb1
Pushing df61658 to master...

@bors bors merged commit c6e130e into rust-lang:master Jan 2, 2017
@eddyb eddyb deleted the less-fake-hir branch January 2, 2017 16:15
@vitiral
Copy link
Contributor

vitiral commented Jan 10, 2017

She's had HIR HAIR HIR whole lifetime, why do I keep loosing mine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants