From 802fe1756b9fdd6011e17ee6502d6909d2ce55ed Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Fri, 7 May 2021 18:57:22 +0200 Subject: [PATCH] Disable wasm feature of object in cg_ssa The version 1 resolver unifies enabled features across the whole workspace. This includes libstd which isn't allowed to depend on wasmparser. --- compiler/rustc_codegen_ssa/Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_codegen_ssa/Cargo.toml b/compiler/rustc_codegen_ssa/Cargo.toml index d7d91d09cfa..3fad41f4319 100644 --- a/compiler/rustc_codegen_ssa/Cargo.toml +++ b/compiler/rustc_codegen_ssa/Cargo.toml @@ -16,7 +16,6 @@ libc = "0.2.50" jobserver = "0.1.22" tempfile = "3.2" pathdiff = "0.2.0" -object = "0.22.0" rustc_serialize = { path = "../rustc_serialize" } rustc_ast = { path = "../rustc_ast" } @@ -34,3 +33,8 @@ rustc_index = { path = "../rustc_index" } rustc_macros = { path = "../rustc_macros" } rustc_target = { path = "../rustc_target" } rustc_session = { path = "../rustc_session" } + +[dependencies.object] +version = "0.22.0" +default-features = false +features = ["read_core", "elf", "macho", "pe", "unaligned", "archive"]