Skip to content

Conversation

@DavisVaughan
Copy link
Member

Closes #7649

Issue is described in #7649 (comment)

@DavisVaughan DavisVaughan requested a review from lionel- October 29, 2025 21:50
env(
error_name = names(dots)[[i]],
error_quo = dots[[i]],
error_expr = quo_get_expr(dots[[i]]),
Copy link
Member

Choose a reason for hiding this comment

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

I haven't looked where the quosure is created and if there might be injected quosures in there. If that's the case, the safer operation is quo_squash(). It recursively unwraps quosures (and so has some overhead).

Copy link
Member Author

Choose a reason for hiding this comment

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

For our purposes, in the only place we previously used error_quo we were extracting the expression with expr <- quo_get_expr(quo), so I think this is safe enough (at the very least it retains current behavior)

@DavisVaughan DavisVaughan merged commit 957ee28 into main Oct 30, 2025
14 checks passed
@DavisVaughan DavisVaughan deleted the fix/expr-not-quo-for-label branch October 30, 2025 12:34
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.

Possible memory leak involving warnings

3 participants