Skip to content

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Mar 16, 2020

Fix quote match leak due to use of underlyingArgument and make inlineContext resilient to previous errors (i.e. never add an empty call).

Tests were fixed in #8553 to not rely on underlyingArgument.

@nicolasstucki nicolasstucki force-pushed the fix-quote-match-leak branch 4 times, most recently from 9dcf828 to 8767f8e Compare March 17, 2020 17:45
And make `inlineContext` resilient to previous errors (i.e. never add an empty call).
@nicolasstucki nicolasstucki self-assigned this Mar 17, 2020
@nicolasstucki nicolasstucki marked this pull request as ready for review March 17, 2020 19:37
@nicolasstucki
Copy link
Contributor Author

The leak in question where trees defined outside the macro expansion that where accidentally brought in scope by the pattern matcher.

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, LGTM

@nicolasstucki nicolasstucki merged commit d9df0a2 into scala:master Mar 18, 2020
@nicolasstucki nicolasstucki deleted the fix-quote-match-leak branch March 18, 2020 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants