We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 532e3f6 commit 0cf7dbfCopy full SHA for 0cf7dbf
compiler/rustc_span/src/source_map.rs
@@ -116,8 +116,7 @@ impl FileLoader for RealFileLoader {
116
117
fn read_file(&self, path: &Path) -> io::Result<String> {
118
if path.metadata().is_ok_and(|metadata| metadata.len() > u32::MAX.into()) {
119
- eprintln!("fatal error: rustc does not support files larger than 4 GiB");
120
- crate::fatal_error::FatalError.raise()
+ return Err(io::Error::other("rustc does not support files larger than 4 GiB"));
121
}
122
fs::read_to_string(path)
123
0 commit comments