Respond to PR comments.

This commit is contained in:
ridwanabdillahi 2022-05-25 10:44:56 -07:00
parent ab1f8ed2d9
commit 7ac62ce75c

View File

@ -54,7 +54,14 @@ fn check_for_debugger_visualizer<'tcx>(
debugger_visualizers debugger_visualizers
.insert(DebuggerVisualizerFile::new(Arc::from(contents), visualizer_type)); .insert(DebuggerVisualizerFile::new(Arc::from(contents), visualizer_type));
} }
_ => {} Err(err) => {
tcx.sess
.struct_span_err(
meta_item.span,
&format!("couldn't read {}: {}", file.display(), err),
)
.emit();
}
} }
} }
} }