summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-11-04 11:15:36 -0800
committerDylan Baker <dylan@pnwbakers.com>2025-11-05 10:02:16 -0800
commit9f9481224aa30104c89adec729272398d6a9ba86 (patch)
tree90dfdc6f3de0d4f44df57e815b3717b308dd5799 /test cases
parent96481b170854b6d65dc140a3308b8faf73f13aa9 (diff)
downloadmeson-9f9481224aa30104c89adec729272398d6a9ba86.tar.gz
interpreter: move rust_api/rust_crate_type interaction to the interpreter
These are two ways to implement the same thing, and at the DSL level the `rust_abi` provides needed flexability, but at the lower level where a target is a thing, the `rust_crate_type` is still proving to be more useful. So, keep the `rust_abi` in the Interpreter and don't let it leak into the build layer.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/rust/4 polyglot/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/rust/4 polyglot/meson.build b/test cases/rust/4 polyglot/meson.build
index 97b7bcdb7..29af73f28 100644
--- a/test cases/rust/4 polyglot/meson.build
+++ b/test cases/rust/4 polyglot/meson.build
@@ -18,7 +18,7 @@ foreach crate_type : ['lib', 'rlib', 'dylib', 'cdylib', 'staticlib', 'proc-macro
# Note: in the both_libraries() case it is possible that the static part
# is still being built because the shared part raised an error but we
# don't rollback correctly.
- testcase expect_error('(Crate type .* invalid for .*)|(.*must be one of.*not invalid)', how: 're')
+ testcase expect_error('(Crate type .* must be .*)|(.*must be one of.*not invalid)', how: 're')
build_target(name, src,
target_type: target_type,
rust_crate_type: crate_type,