1 2 3 4 5 6
/// Checks for diagnostics and panics if it finds any. pub fn ensure_no_diagnostics<T : std::fmt::Debug>(diagnostics: &Vec<T>) { for diagnostic in diagnostics { panic!("Diagnostic error: {:?}", diagnostic); } }
1 2 3 4 5 6
/// Checks for diagnostics and panics if it finds any. pub fn ensure_no_diagnostics<T : std::fmt::Debug>(diagnostics: &Vec<T>) { for diagnostic in diagnostics { panic!("Diagnostic error: {:?}", diagnostic); } }