Skip to content
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

fix: never cache spanless expressions in autofmt #3297

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

jkelleyrtp
Copy link
Member

@jkelleyrtp jkelleyrtp commented Dec 5, 2024

Autofmt was returning the same expression every time when being used for codegen (IE on the docsite) and some documentation was just wrong.

Apparently our "spanless" test was actually generating spans and thus we weren't catching it.

If the span is unreliable (in this case, row=1, col=0), then we shouldn't cache it at all.

This fixes that, fixing some docs.

@jkelleyrtp jkelleyrtp merged commit aa7d952 into main Dec 5, 2024
17 checks passed
@jkelleyrtp jkelleyrtp deleted the jk/autofmt-cloning-exprs branch December 5, 2024 22:19
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.

1 participant