From b048396f440274d8809baa59bc2bdf3aae8aeaa2 Mon Sep 17 00:00:00 2001 From: est31 Date: Mon, 5 Jun 2023 04:53:30 +0200 Subject: Update field-offset and enable unstable_offset_of This enables usage of the offset_of!() macro in the compiler, through the wrappers in memoffset and then in field-offset. --- compiler/rustc_query_impl/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compiler/rustc_query_impl') diff --git a/compiler/rustc_query_impl/Cargo.toml b/compiler/rustc_query_impl/Cargo.toml index c9353b6fc9f..ac697a3ae3e 100644 --- a/compiler/rustc_query_impl/Cargo.toml +++ b/compiler/rustc_query_impl/Cargo.toml @@ -7,7 +7,6 @@ edition = "2021" [dependencies] -memoffset = { version = "0.8.0", features = ["unstable_const"] } field-offset = "0.3.5" measureme = "10.0.0" rustc_ast = { path = "../rustc_ast" } @@ -25,5 +24,8 @@ rustc_span = { path = "../rustc_span" } thin-vec = "0.2.12" tracing = "0.1" +# Not used directly, but included to enable the unstable_offset_of feature +memoffset = { version = "0.9.0", features = ["unstable_offset_of"] } + [features] rustc_use_parallel_compiler = ["rustc-rayon-core", "rustc_query_system/rustc_use_parallel_compiler"] -- cgit 1.4.1-3-g733a5