@@ -198,7 +198,7 @@ trait EvalContextExtPrivate<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, '
198
198
}
199
199
Err ( e) => return match e. raw_os_error ( ) {
200
200
Some ( error) => Ok ( error) ,
201
- None => throw_unsup_format ! ( "The error {} couldn't be converted to a return value" , e) ,
201
+ None => throw_unsup_format ! ( "the error {} couldn't be converted to a return value" , e) ,
202
202
}
203
203
}
204
204
}
@@ -261,7 +261,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
261
261
// windows. We need to check that in fact the access mode flags for the current platform
262
262
// only use these two bits, otherwise we are in an unsupported platform and should error.
263
263
if ( o_rdonly | o_wronly | o_rdwr) & !0b11 != 0 {
264
- throw_unsup_format ! ( "Access mode flags on this platform are unsupported" ) ;
264
+ throw_unsup_format ! ( "access mode flags on this platform are unsupported" ) ;
265
265
}
266
266
let mut writable = true ;
267
267
@@ -276,7 +276,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
276
276
} else if access_mode == o_rdwr {
277
277
options. read ( true ) . write ( true ) ;
278
278
} else {
279
- throw_unsup_format ! ( "Unsupported access mode {:#x}" , access_mode) ;
279
+ throw_unsup_format ! ( "unsupported access mode {:#x}" , access_mode) ;
280
280
}
281
281
// We need to check that there aren't unsupported options in `flag`. For this we try to
282
282
// reproduce the content of `flag` in the `mirror` variable using only the supported
@@ -351,7 +351,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
351
351
// differ in whether the FD_CLOEXEC flag is pre-set on the new file descriptor,
352
352
// thus they can share the same implementation here.
353
353
if fd < MIN_NORMAL_FILE_FD {
354
- throw_unsup_format ! ( "Duplicating file descriptors for stdin, stdout, or stderr is not supported" )
354
+ throw_unsup_format ! ( "duplicating file descriptors for stdin, stdout, or stderr is not supported" )
355
355
}
356
356
let start_op = start_op. ok_or_else ( || {
357
357
err_unsup_format ! (
@@ -369,7 +369,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
369
369
} ) ;
370
370
this. try_unwrap_io_result ( fd_result)
371
371
} else {
372
- throw_unsup_format ! ( "The {:#x} command is not supported for `fcntl`)" , cmd) ;
372
+ throw_unsup_format ! ( "the {:#x} command is not supported for `fcntl`)" , cmd) ;
373
373
}
374
374
}
375
375
@@ -913,7 +913,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
913
913
name_place. layout . size . bytes ( ) ,
914
914
) ?;
915
915
if !name_fits {
916
- throw_unsup_format ! ( "A directory entry had a name too large to fit in libc::dirent64" ) ;
916
+ throw_unsup_format ! ( "a directory entry had a name too large to fit in libc::dirent64" ) ;
917
917
}
918
918
919
919
let entry_place = this. deref_operand ( entry_op) ?;
@@ -953,7 +953,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
953
953
// return positive error number on error
954
954
Some ( error) => Ok ( error) ,
955
955
None => {
956
- throw_unsup_format ! ( "The error {} couldn't be converted to a return value" , e)
956
+ throw_unsup_format ! ( "the error {} couldn't be converted to a return value" , e)
957
957
}
958
958
} ,
959
959
}
@@ -1001,7 +1001,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
1001
1001
name_place. layout . size . bytes ( ) ,
1002
1002
) ?;
1003
1003
if !name_fits {
1004
- throw_unsup_format ! ( "A directory entry had a name too large to fit in libc::dirent" ) ;
1004
+ throw_unsup_format ! ( "a directory entry had a name too large to fit in libc::dirent" ) ;
1005
1005
}
1006
1006
1007
1007
let entry_place = this. deref_operand ( entry_op) ?;
@@ -1042,7 +1042,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
1042
1042
// return positive error number on error
1043
1043
Some ( error) => Ok ( error) ,
1044
1044
None => {
1045
- throw_unsup_format ! ( "The error {} couldn't be converted to a return value" , e)
1045
+ throw_unsup_format ! ( "the error {} couldn't be converted to a return value" , e)
1046
1046
}
1047
1047
} ,
1048
1048
}
0 commit comments