rust/src/librustc_codegen_utils
Andy Russell 2f6226518b
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 12:54:11 -05: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 Remove __build_diagnostic_array! from cg_utils 2018-11-29 18:19:41 +01:00
link.rs Remove rustc_metadata_utils, which contains only one function 2018-11-03 14:31:09 +01:00
symbol_names.rs cleanup: remove static lifetimes from consts 2018-12-04 12:46:10 +01:00
symbol_names_test.rs refactor: use shorthand fields 2018-11-06 15:05:44 -05:00