Skip to content

Separate type check diagnostics builder#13978

Merged
dhruvmanila merged 4 commits intomainfrom
dhruv/diagnostics-builder
Oct 30, 2024
Merged

Separate type check diagnostics builder#13978
dhruvmanila merged 4 commits intomainfrom
dhruv/diagnostics-builder

Conversation

@dhruvmanila
Copy link
Member

@dhruvmanila dhruvmanila commented Oct 29, 2024

Summary

This PR creates a new TypeCheckDiagnosticsBuilder for the TypeCheckDiagnostics struct. The main motivation behind this is to separate the helpers required to build the diagnostics from the type inference builder itself. This allows us to use such helpers outside of the inference builder like for example in the unpacking logic in #13979.

Test Plan

cargo insta test

@dhruvmanila dhruvmanila added the ty Multi-file analysis & type inference label Oct 29, 2024
@dhruvmanila dhruvmanila force-pushed the dhruv/diagnostics-builder branch 2 times, most recently from 5cbd74e to 257ce5a Compare October 30, 2024 08:10
@github-actions
Copy link
Contributor

github-actions bot commented Oct 30, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@dhruvmanila dhruvmanila force-pushed the dhruv/diagnostics-builder branch from 257ce5a to bd0d782 Compare October 30, 2024 10:05
@dhruvmanila dhruvmanila marked this pull request as ready for review October 30, 2024 10:12
Copy link
Member

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

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

This is great!

@dhruvmanila dhruvmanila force-pushed the dhruv/diagnostics-builder branch from 8d3a2ff to b50d38c Compare October 30, 2024 18:45
@dhruvmanila dhruvmanila enabled auto-merge (squash) October 30, 2024 18:45
@dhruvmanila dhruvmanila merged commit bf20061 into main Oct 30, 2024
@dhruvmanila dhruvmanila deleted the dhruv/diagnostics-builder branch October 30, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants