teymour-aldridge opened PR #4588 from try_use_var
to main
:
Please ensure that the following steps are all taken care of before submitting
the PR.
- [x] This is a very small PR, so I have no created an issue
[x] A frontend might want to provide its own error reporting to end users if the variable does not exist.
first.[x]
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.
teymour-aldridge edited PR #4588 from try_use_var
to main
:
Please ensure that the following steps are all taken care of before submitting
the PR.
- [x] This is a very small PR, so I have no created an issue
[x] A frontend might want to provide its own error reporting to end users if the variable does not exist.
first.[x] @cfallin (maybe?)
afonso360 submitted PR review.
afonso360 submitted PR review.
afonso360 created PR review comment:
This should also impl Error and Display so that callers can easily use ? on it.
teymour-aldridge updated PR #4588 from try_use_var
to main
.
cfallin submitted PR review.
cfallin submitted PR review.
cfallin created PR review comment:
Add a period at the end of this description?
cfallin created PR review comment:
likewise here,
write!
is much more idiomatic.
cfallin created PR review comment:
Here you should be able to do
write!(f, "variable {} was declared multiple times", variable.index())
.
teymour-aldridge updated PR #4588 from try_use_var
to main
.
cfallin submitted PR review.
cfallin created PR review comment:
Here too we should use
write!
and not the manual unrolling of it.
teymour-aldridge updated PR #4588 from try_use_var
to main
.
teymour-aldridge created PR review comment:
Sorry, I missed this one!
teymour-aldridge submitted PR review.
cfallin submitted PR review.
cfallin has enabled auto merge for PR #4588.
teymour-aldridge edited PR #4588 from try_use_var
to main
:
Please ensure that the following steps are all taken care of before submitting
the PR.
- [x] This is a very small PR, so I have not created an issue
[x] A frontend might want to provide its own error reporting to end users if the variable does not exist.
first.[x] @cfallin (maybe?)
teymour-aldridge edited PR #4588 from try_use_var
to main
:
Please ensure that the following steps are all taken care of before submitting
the PR.
- [x] This is a very small PR, so I have not created an issue
- [x] A frontend might want to provide its own error reporting to end users if the variable does not exist.
- [x] @cfallin (maybe?)
cfallin merged PR #4588.
Last updated: Nov 22 2024 at 16:03 UTC