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

Automatically use rich API on 1.30.0+ #120

Merged
merged 1 commit into from
Aug 28, 2018
Merged

Automatically use rich API on 1.30.0+ #120

merged 1 commit into from
Aug 28, 2018

Conversation

alexcrichton
Copy link
Contributor

This commit detects the rustc version in the build script of proc-macro2
to determine whether the compiler supports the necessary backend APIs.
This should hopefully allow the crate to compile on stable by default
but have a better implementation on 1.30.0+ compilers.

This commit detects the rustc version in the build script of proc-macro2
to determine whether the compiler supports the necessary backend APIs.
This should hopefully allow the crate to compile on stable by default
but have a better implementation on 1.30.0+ compilers.
Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

🙌

@dtolnay dtolnay merged commit 5ad9b4e into master Aug 28, 2018
@dtolnay dtolnay deleted the autodetect branch August 28, 2018 01:17
@dtolnay
Copy link
Owner

dtolnay commented Aug 28, 2018

Relevant: syn is soon going to emit real error messages when parsing fails. dtolnay/syn#47 (comment)

@alexcrichton
Copy link
Contributor Author

Nice!

@SergioBenitez
Copy link
Contributor

SergioBenitez commented Aug 29, 2018

This has broken Rocket's master. The unstable method needs to be reachable via a feature flag. This commit has made that impossible. This commit introduced a semver breaking change without a major version bump.

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.

3 participants