From ec23cfa4a3f70d2b4ab68b465fb0398fbe2463af Mon Sep 17 00:00:00 2001 From: Khyber Sen Date: Wed, 28 Aug 2024 14:29:53 -0700 Subject: [PATCH] `transpile`: fix typo in `cfg_attr(tests, test)` (should be `test`) --- c2rust-transpile/src/rust_ast/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c2rust-transpile/src/rust_ast/mod.rs b/c2rust-transpile/src/rust_ast/mod.rs index 828bc37a48..26bc0f351e 100644 --- a/c2rust-transpile/src/rust_ast/mod.rs +++ b/c2rust-transpile/src/rust_ast/mod.rs @@ -127,7 +127,7 @@ struct SpanRepr { /// But hopefully if such circumstances do befall us, we'll at least know what went wrong. /// /// On the plus side, the `fallback::Span` payload is a POD pair of two u32s, so that case is trivial. -#[cfg_attr(tests, test)] +#[cfg_attr(test, test)] fn validate_repr() { let repr: SpanRepr = unsafe { std::mem::transmute(Span::call_site()) }; assert!(repr.compiler_or_fallback == 1);