Uh oh!
There was an error while loading. Please reload this page.
Migrate rustc_codegen_llvm to SessionDiagnostics - #101005
Conversation
rust-highfive
commented
Aug 25, 2022
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @oli-obk (or someone else) soon. Please see the contribution instructions for more information. |
oli-obk
commented
Aug 25, 2022
r? @davidtwco (I'm still catching up) |
Uh oh!
There was an error while loading. Please reload this page.
773d3c8 to
6b8539aCompare
This comment has been minimized.
This comment has been minimized.
bors
commented
Aug 27, 2022
☔ The latest upstream changes (presumably #100732) made this pull request unmergeable. Please resolve the merge conflicts. |
fc3bcde to
79ff769Compare
This comment has been minimized.
This comment has been minimized.
SLASHLogin
commented
Aug 30, 2022
@davidtwco Two last things that block this are those two calls to the Handler. And I've found one method that makes use of the Handler too. |
You might just need to skip these for now, otherwise we would have to change |
davidtwco
left a comment
There was a problem hiding this comment.
This looks great, left a couple comments
There was a problem hiding this comment.
Why can't you just add a #[help] to the type of TargetFeatureDisableOrEnable?
There was a problem hiding this comment.
TargetFeatureDisableOrEnable is present in llvm_util.rs, but without the help. I was thinking of splitting them into separate diagnostics, and then I could just add #[help] as you proposed.
https://github.com/rust-lang/rust/blob/2227d5117d0d8fe9d897bb3a2d020e75bb3edad5/compiler/rustc_codegen_llvm/src/llvm_util.rs#L497-L502
There was a problem hiding this comment.
Other solution could be usage of enums instead of struct here. That would boil down to the same problem as the other comment here.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
This comment was marked as resolved.
Noratrieb
commented
Oct 23, 2022
Hi, I've seen you changed some diagnostic structs in your PR. After #103345, the way we refer to fluent messages changed. They are now in a flat namespace with the same identifier as in the fluent file. For example, |
2227d51 to
48758e7Compare
This comment has been minimized.
This comment has been minimized.
SLASHLogin
commented
Oct 30, 2022
@davidtwco I've ported remaining two diagnostics and changed old ones, which were implemented manually. However, it seems like rust/compiler/rustc_codegen_ssa/src/back/write.rs Lines 1734 to 1742 in e96c330 |
rustbot
commented
Oct 31, 2022
cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki |
davidtwco
commented
Oct 31, 2022
Are you able to change rust/compiler/rustc_codegen_ssa/src/back/write.rs Line 1748 in e96c330 I guess you'll also need to keep track of the diagnostic arguments in I'm assuming that diagnostics emitted from |
SLASHLogin
commented
Oct 31, 2022
I was able to change |
davidtwco
commented
Nov 2, 2022
Feel free to commit them to this branch. |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: David Wood <agile.lion3441@fuligin.ink>
eb829d6 to
39895b0CompareSLASHLogin
commented
Nov 9, 2022
Sorry, I've used GitHub's feature and didn't check properly that it would do the merge commit. |
SLASHLogin
commented
Nov 9, 2022
@bors r=davidtwco |
bors
commented
Nov 9, 2022
@SLASHLogin: 🔑 Insufficient privileges: Not in reviewers |
SLASHLogin
commented
Nov 9, 2022
r? davidtwco |
rustbot
commented
Nov 9, 2022
Could not assign reviewer from: |
davidtwco
commented
Nov 9, 2022
@bors r+ |
bors
commented
Nov 9, 2022
…nostics, r=davidtwco Migrate rustc_codegen_llvm to SessionDiagnostics WIP: Port current implementation of diagnostics to the new SessionDiagnostics. Part of rust-lang#100717 `@rustbot` label +A-translation
…nostics, r=davidtwco Migrate rustc_codegen_llvm to SessionDiagnostics WIP: Port current implementation of diagnostics to the new SessionDiagnostics. Part of rust-lang#100717 ``@rustbot`` label +A-translation
…earth Rollup of 9 pull requests Successful merges: - rust-lang#101005 (Migrate rustc_codegen_llvm to SessionDiagnostics) - rust-lang#103307 (Add context to compiler error message) - rust-lang#103464 (Add support for custom mir) - rust-lang#103929 (Cleanup Apple-related code in rustc_target) - rust-lang#104015 (Remove linuxkernel targets) - rust-lang#104020 (Limit efiapi calling convention to supported arches) - rust-lang#104156 (Cleanups in autoderef impl) - rust-lang#104171 (Update books) - rust-lang#104184 (Fix `rustdoc --version` when used with download-rustc) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
WIP: Port current implementation of diagnostics to the new SessionDiagnostics.
Part of #100717
@rustbot label +A-translation