about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-02-12 00:44:24 +0000
committerbors <bors@rust-lang.org>2019-02-12 00:44:24 +0000
commit16ca0b9f6335db824e44629be1cafb6e3fcc4628 (patch)
treea1e6d92f2ff1346a68e89c5ec653161728ca30ad /src/rustllvm/RustWrapper.cpp
parent57d7cfc3cf50f0c427ad3043ff09eaef20671320 (diff)
parentb377d0b14ce141b8ce6c9bb22c22b1fb12d8232f (diff)
downloadrust-16ca0b9f6335db824e44629be1cafb6e3fcc4628.tar.gz
rust-16ca0b9f6335db824e44629be1cafb6e3fcc4628.zip
Auto merge of #58180 - davidtwco:issue-58053, r=estebank
Fix span for closure return type when annotated.

Fixes #58053.

This PR adjusts the span used to label closure return types so that
if the user specifies the return type, i.e. `|_| -> X {}` instead of
`|_| {}`, we correctly highlight all of it and not just the last
character.

r? @pnkfelix
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions