Skip to content

Commit 1046fca

Browse files
committed
transpile: fix typo in cfg_attr(tests, test) (should be test)
1 parent 30457be commit 1046fca

File tree

1 file changed

+1
-1
lines changed
  • c2rust-transpile/src/rust_ast

1 file changed

+1
-1
lines changed

c2rust-transpile/src/rust_ast/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ struct SpanRepr {
127127
/// But hopefully if such circumstances do befall us, we'll at least know what went wrong.
128128
///
129129
/// On the plus side, the `fallback::Span` payload is a POD pair of two u32s, so that case is trivial.
130-
#[cfg_attr(tests, test)]
130+
#[cfg_attr(test, test)]
131131
fn validate_repr() {
132132
let repr: SpanRepr = unsafe { std::mem::transmute(Span::call_site()) };
133133
assert!(repr.compiler_or_fallback == 1);

0 commit comments

Comments
 (0)