Skip to content

Commit

Permalink
Rustup to rustc 1.52.0-nightly (36f1f04 2021-03-17)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Mar 18, 2021
1 parent 6a0ce7f commit 664b25e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build_sysroot/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust-toolchain
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2021-03-09"
channel = "nightly-2021-03-18"
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]
5 changes: 2 additions & 3 deletions src/driver/aot.rs
Expand Up @@ -165,9 +165,8 @@ pub(super) fn run_aot(
) -> Box<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>)> {
use rustc_span::symbol::sym;

let subsystem = tcx
.sess
.first_attr_value_str_by_name(&tcx.hir().krate().item.attrs, sym::windows_subsystem);
let crate_attrs = tcx.hir().attrs(rustc_hir::CRATE_HIR_ID);
let subsystem = tcx.sess.first_attr_value_str_by_name(crate_attrs, sym::windows_subsystem);
let windows_subsystem = subsystem.map(|subsystem| {
if subsystem != sym::windows && subsystem != sym::console {
tcx.sess.fatal(&format!(
Expand Down

0 comments on commit 664b25e

Please sign in to comment.