From 9960cc1f084694f096d6876e1afd698cce1222c8 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Thu, 2 Jun 2022 10:08:38 +0000 Subject: [PATCH] Ship rustc_smir with rustc --- Cargo.lock | 11 +++++++++++ compiler/rustc/Cargo.toml | 3 +++ 2 files changed, 14 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 7ed327e9f4c..e5908889dce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3410,6 +3410,7 @@ dependencies = [ "jemalloc-sys", "rustc_codegen_ssa", "rustc_driver", + "rustc_smir", ] [[package]] @@ -4401,6 +4402,16 @@ dependencies = [ "tracing", ] +[[package]] +name = "rustc_smir" +version = "0.0.0" +dependencies = [ + "rustc_borrowck", + "rustc_driver", + "rustc_interface", + "rustc_middle", +] + [[package]] name = "rustc_span" version = "0.0.0" diff --git a/compiler/rustc/Cargo.toml b/compiler/rustc/Cargo.toml index 5e0bb1a7f95..27ee3dd2aea 100644 --- a/compiler/rustc/Cargo.toml +++ b/compiler/rustc/Cargo.toml @@ -9,6 +9,9 @@ rustc_driver = { path = "../rustc_driver" } # Make sure rustc_codegen_ssa ends up in the sysroot, because this # crate is intended to be used by codegen backends, which may not be in-tree. rustc_codegen_ssa = { path = "../rustc_codegen_ssa" } +# Make sure rustc_smir ends up in the sysroot, because this +# crate is intended to be used by stable MIR consumers, which are not in-tree +rustc_smir = { path = "../rustc_smir" } [dependencies.jemalloc-sys] version = "0.5.0"