about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-06-12 15:23:28 +0000
committerbors <bors@rust-lang.org>2018-06-12 15:23:28 +0000
commitef8cb40c9c03fe60aac47c8736045231633dbdac (patch)
tree372aa750a7d6b5351c8824c762ac7b68b8640825 /src/liballoc
parent3f3ba6c3cb1707eaf63640fc6681ae389253fe18 (diff)
parentd13bfd294c55a47bb33e5846ce184c80cdf547dd (diff)
downloadrust-ef8cb40c9c03fe60aac47c8736045231633dbdac.tar.gz
rust-ef8cb40c9c03fe60aac47c8736045231633dbdac.zip
Auto merge of #51519 - ExpHP:issue-51331-b, r=petrochenkov
Fix for $crate var normalization in proc macro for externally defined macros

Fixes #51331, a bug that has existed in at least *some* form for a year and a half.

The PR includes the addition of a `fold_qpath` method to `syntax::fold::Folder`.  Overriding this method is useful for folds that modify paths in a way that invalidates indices (insertion or removal of a component), as it provides the opportunity to update `qself.position` in `<A as B>::C` paths.  I added it because the bugfix is messy without it.

(unfortunately, grepping around the codebase, I did not see anything else that could use it.)
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions