diff options
| author | David Wood <david@davidtw.co> | 2018-09-09 19:34:39 +0200 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2018-09-23 13:32:18 +0200 |
| commit | 10af6a2b37bf52e023b892dc2622c19e32f6ebf5 (patch) | |
| tree | 1c847651872c41dd4ade2c2aa5107afc446ff995 /src/libsyntax/parse | |
| parent | 317ae05a7e4ee5324cc006eda877eb8f2eb57898 (diff) | |
| download | rust-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/parse')
0 files changed, 0 insertions, 0 deletions
