c2rust-refactor 0.15.0

C2Rust refactoring tool implementation
1
2
3
4
5
6
7
8
9
10
11
12
// Test restoration of #[cfg] during macro collapsing.

#[cfg(all())]
mod a {}

#[cfg(any())]
mod b {}

fn main() {
    // Need something to rewrite, otherwise `-r alongside` won't actually produce the new file.
    let x = 2;
}