s/ assert_not_impl_all / assert_not_impl_any /g
`assert_not_impl_any` and `assert_not_impl_all` behave exactly the same
when only one trait is being asserted against, but Crubit's intentions
seem better expressed via `assert_not_impl_any`. This is reinforced by
combining multiple single-trait assertions into a single multiple-trait
assertion - this is what the CL does in one of the `test.rs` files. If
`src_code_gen.rs` is tweaked in the future to emit a single assertion
for multiple traits, then it should use `assert_not_impl_any` for
negative assertions (and continue using `assert_impl_all` for positive
assertions).
PiperOrigin-RevId: 459515578
diff --git a/rs_bindings_from_cc/test/golden/namespace_rs_api.rs b/rs_bindings_from_cc/test/golden/namespace_rs_api.rs
index 24be82f..c87104a 100644
--- a/rs_bindings_from_cc/test/golden/namespace_rs_api.rs
+++ b/rs_bindings_from_cc/test/golden/namespace_rs_api.rs
@@ -619,10 +619,10 @@
const _: () = assert!(rust_std::mem::size_of::<crate::test_namespace_bindings::S>() == 4);
const _: () = assert!(rust_std::mem::align_of::<crate::test_namespace_bindings::S>() == 4);
const _: () = {
- static_assertions::assert_not_impl_all!(crate::test_namespace_bindings::S: Copy);
+ static_assertions::assert_not_impl_any!(crate::test_namespace_bindings::S: Copy);
};
const _: () = {
- static_assertions::assert_not_impl_all!(crate::test_namespace_bindings::S: Drop);
+ static_assertions::assert_not_impl_any!(crate::test_namespace_bindings::S: Drop);
};
const _: () =
assert!(memoffset_unstable_const::offset_of!(crate::test_namespace_bindings::S, i) == 0);
@@ -632,12 +632,12 @@
const _: () =
assert!(rust_std::mem::align_of::<crate::test_namespace_bindings_reopened::inner::S>() == 1);
const _: () = {
- static_assertions::assert_not_impl_all!(
+ static_assertions::assert_not_impl_any!(
crate::test_namespace_bindings_reopened::inner::S: Copy
);
};
const _: () = {
- static_assertions::assert_not_impl_all!(
+ static_assertions::assert_not_impl_any!(
crate::test_namespace_bindings_reopened::inner::S: Drop
);
};
@@ -651,12 +651,12 @@
) == 1
);
const _: () = {
- static_assertions::assert_not_impl_all!(
+ static_assertions::assert_not_impl_any!(
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace: Copy
);
};
const _: () = {
- static_assertions::assert_not_impl_all!(
+ static_assertions::assert_not_impl_any!(
crate::test_namespace_bindings_inline::inner::StructInInlineNamespace: Drop
);
};