diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-09-17 17:28:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-17 17:28:32 +0200 |
| commit | 732ad597795618eb436319abe408fb3a976448ec (patch) | |
| tree | 631e92c44ebaef007af4849c6daed9bc43d84e16 /compiler/rustc_interface/src | |
| parent | fe3428d9acd26c9cc0cb9281e218b7e9c870aa49 (diff) | |
| parent | 13d56dc160a6bf9fca92b86307c50672e3906293 (diff) | |
| download | rust-732ad597795618eb436319abe408fb3a976448ec.tar.gz rust-732ad597795618eb436319abe408fb3a976448ec.zip | |
Rollup merge of #129988 - arnaudgolfouse:modify-locale_resources, r=davidtwco
Use `Vec` in `rustc_interface::Config::locale_resources` This allows a third-party tool to injects its own resources, when receiving the config via `rustc_driver::Callbacks::config`.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/interface.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs index 04e2b7d45dc..347dc185043 100644 --- a/compiler/rustc_interface/src/interface.rs +++ b/compiler/rustc_interface/src/interface.rs @@ -311,7 +311,9 @@ pub struct Config { pub output_file: Option<OutFileName>, pub ice_file: Option<PathBuf>, pub file_loader: Option<Box<dyn FileLoader + Send + Sync>>, - pub locale_resources: &'static [&'static str], + /// The list of fluent resources, used for lints declared with + /// [`Diagnostic`](rustc_errors::Diagnostic) and [`LintDiagnostic`](rustc_errors::LintDiagnostic). + pub locale_resources: Vec<&'static str>, pub lint_caps: FxHashMap<lint::LintId, lint::Level>, |
