-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
false branch of if-let
doesn't report the correct call stack information.
#1404
Comments
For future readers, see this comment for example invocations along with output and some explanation. |
So the issue here is there is an explicit macro expansion here inside the if-let macro that doesn't preserve the source location information. We can fix this issue by making slight modifications to |
I tried 7a2868c with the sample code. Both invocations produced the expected output here:
@amano-kenji Does it work for you? |
I tested the latest commit, and the issue seems fixed. |
With this,
debug/stacktrace
in the false branch doesn't report its own line in the call stack, but the line whereif-let
resides.debug/stacktrace
in the true branch reports its own line in the call stack.The text was updated successfully, but these errors were encountered: