Skip to content

Commit

Permalink
Auto merge of #125736 - Oneirical:run-make-file-management, r=jieyouxu
Browse files Browse the repository at this point in the history
run-make-support: add wrapper for `fs` operations

Suggested by #125728.

The point of this wrapper is to stop silent fails caused by forgetting to `unwrap` `fs` functions. However, functions like `fs::read` which return something and get stored in a variable should cause a failure on their own if they are not unwrapped (as the `Result` will be stored in the variable, and something will be done on that `Result` that should have been done to its contents). Is it still pertinent to wrap `fs::read_to_string`, `fs::metadata` and so on?

Closes: rust-lang/rust#125728

try-job: x86_64-msvc
try-job: i686-mingw
  • Loading branch information
bors committed Jun 11, 2024
2 parents 9cdad78 + 5cc316c commit be29080
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit be29080

Please sign in to comment.