Convert to inline diagnostics in rustc_parse#152235
Convert to inline diagnostics in rustc_parse#152235rust-bors[bot] merged 9 commits intorust-lang:mainfrom
rustc_parse#152235Conversation
|
cc @davidtwco, @TaKO8Ki |
9e60262 to
cac92f3
Compare
cac92f3 to
4c4734e
Compare
|
If this is such a common operation, why don't we have PSess::empty(). That might be nicer actually |
|
I thought about it, but in a few days after the other crates are translated I can just remove the argument from |
| //@ needs-subprocess | ||
|
|
||
| // FIXME(151366) Currently `-Ztranslate-additional-ftl` is currently broken | ||
| //@ ignore-test |
There was a problem hiding this comment.
@jdonszelmann I accidentally broke the unstable -Ztranslate-additional-ftl option. This option can be used to override translation messages. This is already broken on nightly, it's just that the only test using this option happened to use rustc_parse.
I should be able to repair this with a little bit of effort, might take me a few days and this PR is very brittle, so would prefer to do this in a separate PR. I added this to the tracking issue so it is not forgotten. You can r+ if you agree with this approach
There was a problem hiding this comment.
sounds reasonable, don't think we do any real translation atm anyway
This comment has been minimized.
This comment has been minimized.
2d88985 to
0a83d32
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
0a83d32 to
75ef135
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r+ |
75ef135 to
00dd7db
Compare
|
|
|
Rebased on #152252 (which is in the current rollup) because they will conflict |
|
@bors r+ |
…onathanBrouwer Convert to inline diagnostics in `rustc_parse` This was the most annoying one by far, had to make a few changes to the representation of two errors (no user-facing changes tho), these changes are in separate commits for clarity :) For rust-lang#151366 r? @jdonszelmann
…uwer Rollup of 8 pull requests Successful merges: - #148590 (Stabilize `atomic_try_update`and deprecate `fetch_update` starting 1.99.0) - #150522 (Stabilize new inclusive range type and iterator type) - #152235 (Convert to inline diagnostics in `rustc_parse`) - #152267 (feat: Implement `int_from_ascii` for `NonZero<T>`) - #151576 (Stabilize `core::hint::cold_path`) - #151933 (Linker-plugin-based LTO: give an explanation how to use linker-plugin-lto with full LTO) - #152010 (Ignore all debuginfo tests for LLDB that we do not run in CI) - #152199 (Move `rustc_query_system::cache`.)
Rollup merge of #152235 - JonathanBrouwer:convert_parse, r=JonathanBrouwer Convert to inline diagnostics in `rustc_parse` This was the most annoying one by far, had to make a few changes to the representation of two errors (no user-facing changes tho), these changes are in separate commits for clarity :) For #151366 r? @jdonszelmann
This was the most annoying one by far, had to make a few changes to the representation of two errors (no user-facing changes tho), these changes are in separate commits for clarity :)
For #151366
r? @jdonszelmann