Skip to content

Commit 664b25e

Browse files
committed
Rustup to rustc 1.52.0-nightly (36f1f04 2021-03-17)
1 parent 6a0ce7f commit 664b25e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

build_sysroot/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2021-03-09"
2+
channel = "nightly-2021-03-18"
33
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]

src/driver/aot.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,8 @@ pub(super) fn run_aot(
165165
) -> Box<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>)> {
166166
use rustc_span::symbol::sym;
167167

168-
let subsystem = tcx
169-
.sess
170-
.first_attr_value_str_by_name(&tcx.hir().krate().item.attrs, sym::windows_subsystem);
168+
let crate_attrs = tcx.hir().attrs(rustc_hir::CRATE_HIR_ID);
169+
let subsystem = tcx.sess.first_attr_value_str_by_name(crate_attrs, sym::windows_subsystem);
171170
let windows_subsystem = subsystem.map(|subsystem| {
172171
if subsystem != sym::windows && subsystem != sym::console {
173172
tcx.sess.fatal(&format!(

0 commit comments

Comments
 (0)