From 9af09273b336014a88861473a2a4cb5c62977ff8 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Tue, 2 Nov 2021 14:10:01 +0100 Subject: [PATCH] update to rust 1.56.1 --- Earthfile | 2 +- compiler/gen_dev/src/generic64/mod.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index c76928e855..9ef2fb0183 100644 --- a/Earthfile +++ b/Earthfile @@ -1,4 +1,4 @@ -FROM rust:1.54-slim-bullseye +FROM rust:1.56.1-slim-bullseye WORKDIR /earthbuild prep-debian: diff --git a/compiler/gen_dev/src/generic64/mod.rs b/compiler/gen_dev/src/generic64/mod.rs index 7a0124e662..8df364f6a8 100644 --- a/compiler/gen_dev/src/generic64/mod.rs +++ b/compiler/gen_dev/src/generic64/mod.rs @@ -831,6 +831,7 @@ impl< fields: &'a [Symbol], ) -> Result<(), String> { let struct_size = layout.stack_size(PTR_SIZE); + if let Layout::Struct(field_layouts) = layout { if struct_size > 0 { let offset = self.claim_stack_size(struct_size)?;