]> git.lizzy.rs Git - rust.git/blobdiff - src/shims/env.rs
Fix merge conflicts
[rust.git] / src / shims / env.rs
index 7e2df4f985d19e48449c1693356e226a7303ce46..979b3b6cfa45186713752af16be6151cc4dafe53 100644 (file)
@@ -134,7 +134,7 @@ fn getcwd(
                 let erange = this.eval_libc("ERANGE")?;
                 this.set_last_error(erange)?;
             }
-            Err(e) => this.consume_io_error(e)?,
+            Err(e) => this.set_last_error_from_io_error(e)?,
         }
         Ok(Scalar::ptr_null(&*this.tcx))
     }
@@ -149,7 +149,7 @@ fn chdir(&mut self, path_op: OpTy<'tcx, Tag>) -> InterpResult<'tcx, i32> {
         match env::set_current_dir(path) {
             Ok(()) => Ok(0),
             Err(e) => {
-                this.consume_io_error(e)?;
+                this.set_last_error_from_io_error(e)?;
                 Ok(-1)
             }
         }