summaryrefslogtreecommitdiff
path: root/rust/proc_macro_test.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-09-23 05:19:13 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-09-23 05:19:13 +0000
commit40c7bae1df1028cc4f5545938858c16d5040442f (patch)
treee58fd7c96d37c504959ccfe41431323f2e2c0c21 /rust/proc_macro_test.go
parent4ad574cc37f23d36428d8947dd3f29bcacdb0ef4 (diff)
parent930fd8bfb1190e20789c332d3f8d7de79bcee13c (diff)
Merge changes from topics "revert-2629131-sandbox-rust-inputs-JRFPQTIPEY", "revert-2758566-WBNIADIEXA" into main
* changes: Revert^3 "add rust_toolchain_rustc_prebuilt module type" Revert^3 "add crate_root property to rust modules" Revert^3 "allow Ninja variables in RuleBuilder API" Revert "conditionally escape rule builder command" Revert "support sandboxed rust rules" Revert "fix failing rust_aconfig_library test" Revert "rustSetToolchainSource to use linux-x86 srcs" Revert "remove rust deps on clang prebuilts"
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"])
}
}