Make disabled diagnostics an argument of corresponding function
This commit is contained in:
@@ -71,7 +71,7 @@ impl BenchCmd {
|
||||
match &self.what {
|
||||
BenchWhat::Highlight { .. } => {
|
||||
let res = do_work(&mut host, file_id, |analysis| {
|
||||
analysis.diagnostics(file_id, true).unwrap();
|
||||
analysis.diagnostics(file_id, true, None).unwrap();
|
||||
analysis.highlight_as_html(file_id, false).unwrap()
|
||||
});
|
||||
if verbosity.is_verbose() {
|
||||
|
||||
@@ -47,7 +47,7 @@ pub fn diagnostics(
|
||||
String::from("unknown")
|
||||
};
|
||||
println!("processing crate: {}, module: {}", crate_name, _vfs.file_path(file_id));
|
||||
for diagnostic in analysis.diagnostics(file_id, true).unwrap() {
|
||||
for diagnostic in analysis.diagnostics(file_id, true, None).unwrap() {
|
||||
if matches!(diagnostic.severity, Severity::Error) {
|
||||
found_error = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user