Skip to content

Commit

Permalink
transpile: fix typo in cfg_attr(tests, test) (should be test)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkysen committed Aug 28, 2024
1 parent 9d16467 commit ec23cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2rust-transpile/src/rust_ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec23cfa

Please sign in to comment.