Change callback: gate behind experimental flag

This commit is contained in:
Olivier Goffart 2024-05-01 12:49:50 +02:00
parent e7bf5c514b
commit c5f857ffc9
7 changed files with 20 additions and 12 deletions

View file

@ -302,6 +302,9 @@ impl std::fmt::Display for Diagnostic {
pub struct BuildDiagnostics {
inner: Vec<Diagnostic>,
/// When false, throw error for experimental features
pub enable_experimental: bool,
/// This is the list of all loaded files (with or without diagnostic)
/// does not include the main file.
/// FIXME: this doesn't really belong in the diagnostics, it should be somehow returned in another way