Skip to content

Commit 7ac62ce

Browse files
Respond to PR comments.
1 parent ab1f8ed commit 7ac62ce

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

compiler/rustc_passes/src/debugger_visualizer.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@ fn check_for_debugger_visualizer<'tcx>(
5454
debugger_visualizers
5555
.insert(DebuggerVisualizerFile::new(Arc::from(contents), visualizer_type));
5656
}
57-
_ => {}
57+
Err(err) => {
58+
tcx.sess
59+
.struct_span_err(
60+
meta_item.span,
61+
&format!("couldn't read {}: {}", file.display(), err),
62+
)
63+
.emit();
64+
}
5865
}
5966
}
6067
}

0 commit comments

Comments
 (0)