rust/src/librustc_codegen_utils
bors 0a77980796 Auto merge of #56258 - euclio:fs-read-write, r=euclio
use top level `fs` functions where appropriate

This commit replaces many usages of `File::open` and reading or writing
with `fs::read_to_string`, `fs::read` and `fs::write`. This reduces code
complexity, and will improve performance for most reads, since the
functions allocate the buffer to be the size of the file.

I believe that this commit will not impact behavior in any way, so some
matches will check the error kind in case the file was not valid UTF-8.
Some of these cases may not actually care about the error.
2018-12-07 23:26:14 +00:00
..
Cargo.toml Separating the back folder between backend-agnostic and LLVM-specific code 2018-11-16 15:08:18 +02:00
codegen_backend.rs use top level fs functions where appropriate 2018-12-07 12:54:11 -05:00
lib.rs Use a function to access the Hir map to be able to turn it into a query later 2018-12-06 17:24:36 +01:00
link.rs Remove rustc_metadata_utils, which contains only one function 2018-11-03 14:31:09 +01:00
symbol_names.rs Use a function to access the Hir map to be able to turn it into a query later 2018-12-06 17:24:36 +01:00
symbol_names_test.rs Use a function to access the Hir map to be able to turn it into a query later 2018-12-06 17:24:36 +01:00