Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Commit 43fb4cd

Browse files
committed
Make librustc_yk_sections Rust 2018.
1 parent 8b14ea1 commit 43fb4cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/librustc_yk_sections/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
authors = ["Edd Barrett <vext01@gmail.com>"]
33
name = "rustc_yk_sections"
44
version = "0.0.0"
5+
edition = "2018"
56

67
[lib]
78
name = "rustc_yk_sections"

src/librustc_yk_sections/emit_tir.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ fn do_generate_tir<'a, 'tcx, 'gcx>(
159159
// same between builds for the reproducible build tests to pass.
160160
let mut tir_path = exe_path.clone();
161161
tir_path.set_extension(TMP_EXT);
162-
let mut file = File::create(&tir_path)?;
162+
let file = File::create(&tir_path)?;
163163
(tir_path, Some(file), None)
164164
},
165165
TirMode::TextDump(dump_path) => {
166166
// In text dump mode we just write lines to a file and we don't need an encoder.
167-
let mut file = File::create(&dump_path)?;
167+
let file = File::create(&dump_path)?;
168168
(dump_path.clone(), None, Some(file))
169169
},
170170
};

0 commit comments

Comments
 (0)