Migrate rustc_hir_analysis to session diagnostic [Part 3]#110028
Merged
bors merged 1 commit intorust-lang:masterfrom Apr 10, 2023
Merged
Migrate rustc_hir_analysis to session diagnostic [Part 3]#110028bors merged 1 commit intorust-lang:masterfrom
rustc_hir_analysis to session diagnostic [Part 3]#110028bors merged 1 commit intorust-lang:masterfrom
Conversation
compiler-errors
suggested changes
Apr 7, 2023
Contributor
There was a problem hiding this comment.
There's nothing wrong with this implementation per se, but I think that you should probably migrate more than one diagnostic per PR.
There are 12 invocations of struct_span_err in rustc_hir_analysis/src/collect.rs (and 161 invocation in rustc_hir_analysis!). At least a few of those should be pretty trivial to migrate, and can be batched up together so they can be reviewed all at once so it's easier to review and results in less noise in the git history.
Part 3: Finishing `collect.rs` file
87607f2 to
066638b
Compare
compiler-errors
approved these changes
Apr 9, 2023
Contributor
|
@bors r+ |
Collaborator
Contributor
|
@bors rollup |
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this pull request
Apr 9, 2023
…tics-3, r=compiler-errors Migrate `rustc_hir_analysis` to session diagnostic [Part 3] Part 3: Finishing `collect.rs` file r? `@compiler-errors`
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Apr 10, 2023
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#108843 (Instantiate instead of erasing binder when probing param methods) - rust-lang#109985 (Add little `is_test_crate` function) - rust-lang#110028 (Migrate `rustc_hir_analysis` to session diagnostic [Part 3]) - rust-lang#110095 (Migrate remainder of rustc_ty_utils to `SessionDiagnostic`) - rust-lang#110108 (Add renaming of ignore-git to changelog) - rust-lang#110114 (compiletest: Give a better error message if `node` isn't installed) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 3: Finishing
collect.rsfiler? @compiler-errors