Files
rust/src
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
..
2020-09-23 00:45:18 -05:00
2019-08-16 11:14:53 +09:00
2020-11-28 17:41:21 -06:00
2019-05-09 20:37:51 +02:00
2020-09-23 00:45:18 -05:00
2019-05-09 20:37:51 +02:00
2020-03-26 21:25:34 -05:00
2020-11-28 17:41:21 -06:00
2020-09-04 19:01:18 -05:00
2019-09-08 23:33:21 +09:00
2020-11-28 17:41:21 -06:00
2020-03-26 21:25:34 -05:00
2020-09-23 00:45:18 -05:00
2020-03-26 21:25:34 -05:00
2020-07-09 23:15:08 -05:00
2020-11-28 17:41:21 -06:00