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

proc_macro_plugin: Wrap nonexistent filename in <> #37186

Merged
merged 1 commit into from
Nov 11, 2016
Merged

proc_macro_plugin: Wrap nonexistent filename in <> #37186

merged 1 commit into from
Nov 11, 2016

Conversation

jonas-schievink
Copy link
Contributor

I'm not sure how big of an issue this can become in practice, but FileMaps made from something that's not a file are supposed to wrap the file name in <>.

For an example fix, see kevinmehall/rust-peg@332fd4d. There, it caused cargo to always recompile a crate using rust-peg, even when nothing was changed, because cargo sees that the dummy file doesn't exist.

@rust-highfive
Copy link
Contributor

r? @brson

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

@bors
Copy link
Collaborator

bors commented Oct 28, 2016

☔ The latest upstream changes (presumably #37321) made this pull request unmergeable. Please resolve the merge conflicts.

@brson
Copy link
Contributor

brson commented Nov 9, 2016

r=me with rebase

Sorry for the delay.

I'm not sure how big of an issue this can become in practice, but `FileMap`s made from something that's not a file are supposed to wrap the file name in `<>`.

For an example fix, see kevinmehall/rust-peg@332fd4d. There, it caused cargo to always recompile a crate using rust-peg, even when nothing was changed, because cargo sees that the dummy file doesn't exist.
@alexcrichton
Copy link
Member

@bors: r=brson

@bors
Copy link
Collaborator

bors commented Nov 10, 2016

📌 Commit fb7a829 has been approved by brson

@bors
Copy link
Collaborator

bors commented Nov 10, 2016

⌛ Testing commit fb7a829 with merge 1473007...

bors added a commit that referenced this pull request Nov 10, 2016
proc_macro_plugin: Wrap nonexistent filename in <>

I'm not sure how big of an issue this can become in practice, but `FileMap`s made from something that's not a file are supposed to wrap the file name in `<>`.

For an example fix, see kevinmehall/rust-peg@332fd4d. There, it caused cargo to always recompile a crate using rust-peg, even when nothing was changed, because cargo sees that the dummy file doesn't exist.
@bors bors merged commit fb7a829 into rust-lang:master Nov 11, 2016
@jonas-schievink jonas-schievink deleted the patch-1 branch October 5, 2017 15:10
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