about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2018-09-09 19:34:39 +0200
committerDavid Wood <david@davidtw.co>2018-09-23 13:32:18 +0200
commit10af6a2b37bf52e023b892dc2622c19e32f6ebf5 (patch)
tree1c847651872c41dd4ade2c2aa5107afc446ff995 /src/libsyntax
parent317ae05a7e4ee5324cc006eda877eb8f2eb57898 (diff)
downloadrust-10af6a2b37bf52e023b892dc2622c19e32f6ebf5.tar.gz
rust-10af6a2b37bf52e023b892dc2622c19e32f6ebf5.zip
Refactor explain_borrow to return explanation.
Previously, explain_borrow would emit an error with the explanation of
the a borrow. Now, it returns a enum with what the explanation for the
borrow is and any relevant spans or information such that the calling
code can choose to emit the same note/suggestion as before by calling
the emit method on the new enum.
Diffstat (limited to 'src/libsyntax')
0 files changed, 0 insertions, 0 deletions