Hard code DEFAULT_LOCALE_RESOURCES in rustc_interface#152137
Hard code DEFAULT_LOCALE_RESOURCES in rustc_interface#152137bjorn3 wants to merge 1 commit intorust-lang:mainfrom
Conversation
|
The rustc-dev-guide subtree was changed. If this PR only touches the dev guide consider submitting a PR directly to rust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes. |
|
rustbot has assigned @jdonszelmann. Use |
This comment has been minimized.
This comment has been minimized.
8f3dce7 to
dbf46f0
Compare
|
|
||
| // Create a Parser. | ||
| let psess = ParseSess::new(rustc_driver::DEFAULT_LOCALE_RESOURCES.to_vec()); | ||
| let psess = ParseSess::new(vec![]); |
There was a problem hiding this comment.
I think this is fine as we cancel all errors below rather than emit them.
This comment has been minimized.
This comment has been minimized.
|
I'd like to wait a few days with merging this until the spam of diagnostics convert PRs has calmed down, as this will conflict with all of them |
This comment has been minimized.
This comment has been minimized.
dbf46f0 to
1090fa4
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
locale_resources will no longer be used at all soon, so no need for custom drivers to have the ability to define their own locale_resources. Also hard code report_ice to not use any locale resources. It only emits diagnostics that have already been ported to inline fluent messages.
1090fa4 to
4d3c16a
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. |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
locale_resources will no longer be used at all soon, so no need for custom drivers to have the ability to define their own locale_resources. Also hard code report_ice to not use any locale resources. It only emits diagnostics that have already been ported to inline fluent messages.
Part of #151366, cc @JonathanBrouwer