diff options
| author | arnaudgolfouse <arnaud.golfouse@laposte.net> | 2024-09-05 16:00:48 +0200 |
|---|---|---|
| committer | arnaudgolfouse <arnaud.golfouse@laposte.net> | 2024-09-05 16:49:38 +0200 |
| commit | 13d56dc160a6bf9fca92b86307c50672e3906293 (patch) | |
| tree | 2ef0bf61d2e995eb8d8e33dd0fb660c0782d3599 /compiler/rustc_interface/src | |
| parent | eb33b43bab08223fa6b46abacc1e95e859fe375d (diff) | |
| download | rust-13d56dc160a6bf9fca92b86307c50672e3906293.tar.gz rust-13d56dc160a6bf9fca92b86307c50672e3906293.zip | |
Use a `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>, |
