1
Fork 0

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`.
This commit is contained in:
arnaudgolfouse 2024-09-05 16:00:48 +02:00
parent eb33b43bab
commit 13d56dc160
5 changed files with 7 additions and 5 deletions

View file

@ -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>,