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

Don't include DefIndex in proc-macro registrar function symbol. #47494

Merged
merged 2 commits into from
Jan 19, 2018

Conversation

michaelwoerister
Copy link
Member

There can only ever be one registrar function per plugin or proc-macro crate, so adding the DefIndex to the function's symbol name does not serve a real purpose. Remove the DefIndex from the symbol name makes it stable across incremental compilation sessions.

This should fix issue #47292.

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

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

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Jan 16, 2018

📌 Commit 42ea668 has been approved by nikomatsakis

@michaelwoerister
Copy link
Member Author

@bors r=nikomatsakis (fixed the failing test)

@bors
Copy link
Contributor

bors commented Jan 16, 2018

📌 Commit f0a7d8e has been approved by nikomatsakis

@alexcrichton
Copy link
Member

@michaelwoerister since incremental is on beta, any objections to backporting?

@michaelwoerister
Copy link
Member Author

Once we confirm that it actually fixes the issue, I'm all for backporting.

@kennytm kennytm added beta-nominated Nominated for backporting to the compiler in the beta channel. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jan 17, 2018
@michaelwoerister
Copy link
Member Author

@bors p=1 (since this is a bug fix that we probably want to backport)

@nikomatsakis nikomatsakis added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Jan 18, 2018
@bors
Copy link
Contributor

bors commented Jan 19, 2018

⌛ Testing commit f0a7d8e with merge 10333dd...

bors added a commit that referenced this pull request Jan 19, 2018
…omatsakis

Don't include DefIndex in proc-macro registrar function symbol.

There can only ever be one registrar function per plugin or proc-macro crate, so adding the `DefIndex` to the function's symbol name does not serve a real purpose. Remove the `DefIndex` from the symbol name makes it stable across incremental compilation sessions.

This should fix issue #47292.
@bors
Copy link
Contributor

bors commented Jan 19, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: nikomatsakis
Pushing 10333dd to master...

@bors bors merged commit f0a7d8e into rust-lang:master Jan 19, 2018
@MaloJaffre MaloJaffre mentioned this pull request Jan 23, 2018
bors added a commit that referenced this pull request Jan 23, 2018
[beta] Backports

Cherry-picked into beta:
- #47401
- #47494
- #47503
- #47507
@alexcrichton alexcrichton removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-accepted Accepted for backporting to the compiler in the beta channel. 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