-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Set context when reporting summonInline errors #14405
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
Conversation
@@ -852,7 +852,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(using Context) { | |||
val evidence = evTyper.inferImplicitArg(tpt.tpe, tpt.span)(using evCtx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could wrap the whole block using inContext(evCtx) { ... }
to make sure we don't accidentally use the wrong context anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
I've signed CLA |
fix #13406 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrzejressel you should squash and rebases the commits and include a short message explaining what the fix is doing.
Otherwise LGTM
@nicolasstucki Fixed, should be fine now |
Make same fix in another part of the code.
Make same fix in another part of the code.
Set proper context when reporting summonInline errors - and puts everything in inContext block, so this won't happen in the future.