about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-10-09 22:36:14 +0000
committerbors <bors@rust-lang.org>2018-10-09 22:36:14 +0000
commiteae47a40484a085f699c3175d51e74901c607e65 (patch)
treecc668188444c2ecdbc605b7855bc98ce9fcf960e /src/libsyntax/parse
parent96cafc53cfc6667a03c8e77d8e0a2fc96555ff6b (diff)
parent1f7dafbb778dc9bff6a13828813fbcd105d977c9 (diff)
downloadrust-eae47a40484a085f699c3175d51e74901c607e65.tar.gz
rust-eae47a40484a085f699c3175d51e74901c607e65.zip
Auto merge of #54734 - pawroman:fix_range_borrowing_suggestion, r=varkor
Fix range literals borrowing suggestions

Fixes #54505. The compiler issued incorrect range borrowing suggestions (missing `()` around borrows of range literals). This was not correct syntax (see the issue for an example).

With changes in this PR, this is fixed for all types of `Range` literals.

Thanks again to @varkor and @estebank for their invaluable help and guidance.

r? @varkor
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions