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

Do not inject test harness for --cfg test #33821

Merged
merged 2 commits into from
May 28, 2016
Merged

Conversation

sanxiyn
Copy link
Member

@sanxiyn sanxiyn commented May 23, 2016

Fix #33670.

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

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

@sanxiyn
Copy link
Member Author

sanxiyn commented May 23, 2016

config field of TestCtxt is dead. dead_code lint actually detects it, but test.rs disables this lint with allow attribute.

cfg argument of modify_for_testing is ultimately passed to ExtCtxt::new. In turn, the only use in ExtCtxt is passing to Parser::new so that syntax extensions can use the parser. test.rs only uses builder, not parser.

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented May 23, 2016

📌 Commit 3c4eb01 has been approved by nikomatsakis

@nikomatsakis
Copy link
Contributor

@Manishearth I did not think this was plugin breaking but it occurs to me I do not know for sure. :)

@Manishearth
Copy link
Member

Technically is, by the most stringent definition, but it doesn't look like it will break anything

bors added a commit that referenced this pull request May 28, 2016
Rollup of 15 pull requests

- Successful merges: #33820, #33821, #33822, #33824, #33825, #33831, #33832, #33848, #33849, #33852, #33854, #33856, #33859, #33860, #33861
- Failed merges:
bors added a commit that referenced this pull request May 28, 2016
Do not inject test harness for --cfg test

Fix #33670.
@bors
Copy link
Contributor

bors commented May 28, 2016

⌛ Testing commit 3c4eb01 with merge 623af22...

@bors bors merged commit 3c4eb01 into rust-lang:master May 28, 2016
@sanxiyn sanxiyn deleted the cfg-test branch May 30, 2016 11:35
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.

5 participants