Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Fix tests on stable/beta (closes #12) #28

Merged
merged 1 commit into from Aug 7, 2016
Merged

Fix tests on stable/beta (closes #12) #28

merged 1 commit into from Aug 7, 2016

Conversation

birkenfeld
Copy link
Contributor

@birkenfeld birkenfeld commented Aug 6, 2016

Apparently, if the macro invocation is the last "expression" in the function block, the parser expects an expression and will not let the macro expand to anything else. Appending a semicolon will disabuse it of that notion.

The breakage only applies to error_chain! usage inside functions, which is probably not relevant other than in these tests.

Seems to be fixed in nightly 1.12 anyway.

Apparently, if the macro invocation is the last "expression" in the
function block, the parser expects an expression and will not let
the macro expand to anything else.  Appending a semicolon will
disabuse it of that notion.

The breakage only applies to error_chain! usage inside functions,
which is probably not relevant other than in these tests.

Seems to be fixed in nightly 1.12 anyway.
@brson brson merged commit 8b27d66 into rust-lang-deprecated:master Aug 7, 2016
@brson
Copy link
Contributor

brson commented Aug 7, 2016

Thanks!

@birkenfeld birkenfeld deleted the issue-12 branch August 7, 2016 06:14
@brson brson mentioned this pull request Aug 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants