We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
transpile
cfg_attr(tests, test)
test
1 parent 30457be commit 1046fcaCopy full SHA for 1046fca
c2rust-transpile/src/rust_ast/mod.rs
@@ -127,7 +127,7 @@ struct SpanRepr {
127
/// But hopefully if such circumstances do befall us, we'll at least know what went wrong.
128
///
129
/// 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)]
+#[cfg_attr(test, test)]
131
fn validate_repr() {
132
let repr: SpanRepr = unsafe { std::mem::transmute(Span::call_site()) };
133
assert!(repr.compiler_or_fallback == 1);
0 commit comments