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

Replicate Cargo environment variables #6807

Merged
merged 2 commits into from
Dec 10, 2020
Merged

Replicate Cargo environment variables #6807

merged 2 commits into from
Dec 10, 2020

Conversation

jonas-schievink
Copy link
Contributor

These might be relied on by procedural macros, and can also be accessed via env!.

Required for fixing #6696. We do not yet propagate these to any proc macros though.

Comment on lines 410 to 411
let pre = package.version.pre.iter().map(|id| id.to_string()).collect::<Vec<_>>();
let pre = pre.join(".");
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let pre = package.version.pre.iter().map(|id| id.to_string()).collect::<Vec<_>>();
let pre = pre.join(".");
let pre = package.version.pre.iter().map(|id| id.to_string()).format(",");

@jonas-schievink
Copy link
Contributor Author

bors r+

@bors bors bot merged commit 41321d9 into rust-lang:master Dec 10, 2020
@bors
Copy link
Contributor

bors bot commented Dec 10, 2020

@jonas-schievink jonas-schievink deleted the cargo-env branch December 10, 2020 18:41
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.

2 participants