From e16f6f8c49da25ee450a261fbdbb002ee7bd24a5 Mon Sep 17 00:00:00 2001 From: Folkert Date: Wed, 24 Feb 2021 23:36:42 +0100 Subject: [PATCH] fix compile errors --- Cargo.lock | 1 + compiler/load/Cargo.toml | 1 + compiler/load/src/file.rs | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7e99da5cc3..aa6ca32dbe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2928,6 +2928,7 @@ version = "0.1.0" dependencies = [ "bumpalo", "crossbeam", + "indoc", "inlinable_string", "maplit", "num_cpus", diff --git a/compiler/load/Cargo.toml b/compiler/load/Cargo.toml index 701b7dd6da..1afe0974bd 100644 --- a/compiler/load/Cargo.toml +++ b/compiler/load/Cargo.toml @@ -30,5 +30,6 @@ num_cpus = "1" tempfile = "3.1.0" pretty_assertions = "0.5.1" maplit = "1.0.1" +indoc = "0.3.3" quickcheck = "0.8" quickcheck_macros = "0.8" diff --git a/compiler/load/src/file.rs b/compiler/load/src/file.rs index bfb82bfc92..cee4691104 100644 --- a/compiler/load/src/file.rs +++ b/compiler/load/src/file.rs @@ -1620,8 +1620,6 @@ fn update<'a>( match header_extra { App { to_platform } => { debug_assert!(matches!(state.platform_path, PlatformPath::NotSpecified)); - debug_assert!(header.is_root_module); - state.platform_path = PlatformPath::Valid(to_platform.clone()); } PkgConfig { .. } => {