rust/tests
Ayaz Hafiz 3bf67c175d Don't drop blocks on foreign functions
A code like

```rust
extern "C" {
    fn f() {
        fn g() {}
    }
}
```

is incorrect and does not compile. Today rustfmt formats this in a way
that is correct:

```rust
extern "C" {
    fn f();
}
```

But this loses information, and doesn't have to be done because we know
the content of the block if it is present. During development I don't
think rustfmt should drop the block in this context.

Closes #4313
2020-11-28 21:59:30 -06:00
..
cargo-fmt
config chore: backport 8157a3f0afe978d3e953420577f8344db7e905bf 2020-07-15 09:19:21 -05:00
coverage
license-template
parser tests: add test for panic on new_parser_from_file 2020-11-02 18:31:51 -06:00
rustfmt Cargo fmt 2019-09-24 09:26:50 +09:00
source Add a test 2020-11-28 21:59:30 -06:00
target Don't drop blocks on foreign functions 2020-11-28 21:59:30 -06:00
writemode