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

Fix CFG_RELEASE value #4202

Merged
merged 1 commit into from
May 25, 2020
Merged

Fix CFG_RELEASE value #4202

merged 1 commit into from
May 25, 2020

Conversation

sagiegurari
Copy link
Contributor

@sagiegurari sagiegurari commented May 25, 2020

I ran into an issue while using rustfmt and found rust-lang/rust#72423
I saw how you solved it locally and decided to do the same as well, but the actual values provided are not accurate.
I believe CFG_RELEASE should hold the rustc version number and not channel.
so this should hopefully provide a more accurate value.

Copy link
Contributor

@topecongiro topecongiro left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! As you say, it seems that the correct value for CFG_RELEASE is the version of the Rust compiler.

I was not aware of CARGO_MAKE_RUST_VERSION and CARGO_MAKE_RUST_CHANNEL; it's nice to know about them.

@topecongiro topecongiro merged commit 001a0cc into rust-lang:master May 25, 2020
bradleypmartin pushed a commit to bradleypmartin/rustfmt that referenced this pull request May 25, 2020
@karyon
Copy link
Contributor

karyon commented Oct 28, 2021

backport not needed, master doesn't have that makefile

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

Successfully merging this pull request may close these issues.

3 participants