[PATCH 05/16] rust: fix cfgs of proc-macro2 for 1.63.0

Paolo Bonzini posted 16 patches 1 week ago
There is a newer version of this series
[PATCH 05/16] rust: fix cfgs of proc-macro2 for 1.63.0
Posted by Paolo Bonzini 1 week ago
Replay the configuration that would be computed by build.rs when compiling
on a 1.63.0 compiler.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 subprojects/packagefiles/proc-macro2-1-rs/meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/subprojects/packagefiles/proc-macro2-1-rs/meson.build b/subprojects/packagefiles/proc-macro2-1-rs/meson.build
index 818ec59336b..8e601b50ccc 100644
--- a/subprojects/packagefiles/proc-macro2-1-rs/meson.build
+++ b/subprojects/packagefiles/proc-macro2-1-rs/meson.build
@@ -15,7 +15,9 @@ _proc_macro2_rs = static_library(
   rust_abi: 'rust',
   rust_args: [
     '--cfg', 'feature="proc-macro"',
-    '--cfg', 'span_locations',
+    '--cfg', 'no_literal_byte_character',
+    '--cfg', 'no_literal_c_string',
+    '--cfg', 'no_source_text',
     '--cfg', 'wrap_proc_macro',
   ],
   dependencies: [
-- 
2.46.2
Re: [PATCH 05/16] rust: fix cfgs of proc-macro2 for 1.63.0
Posted by Zhao Liu 1 day, 14 hours ago
On Tue, Oct 15, 2024 at 03:17:23PM +0200, Paolo Bonzini wrote:
> Date: Tue, 15 Oct 2024 15:17:23 +0200
> From: Paolo Bonzini <pbonzini@redhat.com>
> Subject: [PATCH 05/16] rust: fix cfgs of proc-macro2 for 1.63.0
> X-Mailer: git-send-email 2.46.2
> 
> Replay the configuration that would be computed by build.rs when compiling
> on a 1.63.0 compiler.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  subprojects/packagefiles/proc-macro2-1-rs/meson.build | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>