]> git.lizzy.rs Git - rust.git/commit
proc_macro_plugin: Wrap nonexistent filename in <>
authorJonas Schievink <jonasschievink@gmail.com>
Sat, 15 Oct 2016 00:56:29 +0000 (02:56 +0200)
committerJonas Schievink <jonas@schievink.net>
Wed, 9 Nov 2016 13:55:39 +0000 (14:55 +0100)
commitfb7a8294f898652482e4b4106143fac294d7af0d
treefbeff84adfc170555e33c164d61cc529aed52a04
parent966c70085adc69eecf9c8cd1f128872e8d90614d
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@332fd4dbae19b64fb2af4b9d565e37a3703e7576. 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.
src/libproc_macro_tokens/parse.rs