]> git.lizzy.rs Git - rust.git/commit
expand: Do not overwrite existing `ExpnInfo` when injecting derive markers
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Sat, 6 Jul 2019 17:25:34 +0000 (20:25 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Wed, 10 Jul 2019 21:12:08 +0000 (00:12 +0300)
commitd1949b1ab01dbd482008f64af54161cc43bb0991
tree6f96c59b462eb2dcbb935be4eaa967996e7be44f
parent0ec6ea7333a8918a96f40110e014f2bbbd72281f
expand: Do not overwrite existing `ExpnInfo` when injecting derive markers

Create a fresh expansion for them instead - this is the usual way to allow unstable features for generated/desugared code.
Fixes https://github.com/rust-lang/rust/issues/52363
src/libsyntax/ext/derive.rs
src/libsyntax_pos/hygiene.rs