summaryrefslogtreecommitdiff
path: root/rust/proc_macro_test.go
diff options
context:
space:
mode:
author Wen-yi Chu <wenyichu@google.com> 2023-09-22 03:58:59 +0000
committer Wen-yi Chu <wenyichu@google.com> 2023-09-22 22:05:54 +0000
commit41326c1f410bafb909a56f1cf7ca8748ce06cab3 (patch)
tree0d630e655cf5311ccc525173d4d56fc75c8cee42 /rust/proc_macro_test.go
parentdf0ed707a5bdbe0e3d20afe9f81acb09e2e887be (diff)
Revert "support sandboxed rust rules"
Revert submission 2629131-sandbox-rust-inputs Reason for revert: Fail on android build. Reverted changes: /q/submissionid:2629131-sandbox-rust-inputs Change-Id: Ifd9aa46e80a12d8f4ffa0a2daa74b96727cbb7e6
Diffstat (limited to 'rust/proc_macro_test.go')
-rw-r--r--rust/proc_macro_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/proc_macro_test.go b/rust/proc_macro_test.go
index a547926fc..cc8193858 100644
--- a/rust/proc_macro_test.go
+++ b/rust/proc_macro_test.go
@@ -30,7 +30,7 @@ func TestRustProcMacro(t *testing.T) {
libprocmacro := ctx.ModuleForTests("libprocmacro", "linux_glibc_x86_64").Rule("rustc")
- if !strings.Contains(libprocmacro.RuleParams.Command, "--extern proc_macro") {
- t.Errorf("--extern proc_macro flag not being passed to rustc for proc macro %#v", libprocmacro.RuleParams.Command)
+ if !strings.Contains(libprocmacro.Args["rustcFlags"], "--extern proc_macro") {
+ t.Errorf("--extern proc_macro flag not being passed to rustc for proc macro %#v", libprocmacro.Args["rustcFlags"])
}
}