Auto merge of #1510 - RalfJung:stderr, r=RalfJung

fix Stderr::as_file_handle error message
This commit is contained in:
bors 2020-08-13 12:27:24 +00:00
commit ca9e988bdb

View File

@ -102,7 +102,7 @@ impl FileDescriptor for io::Stdout {
impl FileDescriptor for io::Stderr {
fn as_file_handle<'tcx>(&self) -> InterpResult<'tcx, &FileHandle> {
throw_unsup_format!("stdout cannot be used as FileHandle");
throw_unsup_format!("stderr cannot be used as FileHandle");
}
fn read<'tcx>(&mut self, _communicate_allowed: bool, _bytes: &mut [u8]) -> InterpResult<'tcx, io::Result<usize>> {