File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ impl FileLoader for RealFileLoader {
116
116
117
117
fn read_file ( & self , path : & Path ) -> io:: Result < String > {
118
118
if path. metadata ( ) . is_ok_and ( |metadata| metadata. len ( ) > u32:: MAX . into ( ) ) {
119
- return Err ( io:: Error :: other ( "rustc does not support files larger than 4 GiB" ) ) ;
119
+ return Err ( io:: Error :: other ( "rustc does not support text files larger than 4 GiB" ) ) ;
120
120
}
121
121
fs:: read_to_string ( path)
122
122
}
@@ -300,7 +300,7 @@ impl SourceMap {
300
300
/// unmodified.
301
301
pub fn new_source_file ( & self , filename : FileName , src : String ) -> Lrc < SourceFile > {
302
302
self . try_new_source_file ( filename, src) . unwrap_or_else ( |OffsetOverflowError | {
303
- eprintln ! ( "fatal error: rustc does not support files larger than 4 GiB" ) ;
303
+ eprintln ! ( "fatal error: rustc does not support text files larger than 4 GiB" ) ;
304
304
crate :: fatal_error:: FatalError . raise ( )
305
305
} )
306
306
}
You can’t perform that action at this time.
0 commit comments