diff options
| author | topecongiro <seuchida@gmail.com> | 2018-02-24 01:05:19 +0900 |
|---|---|---|
| committer | topecongiro <seuchida@gmail.com> | 2018-02-24 01:05:19 +0900 |
| commit | f310b924ea6a26d6122ffe96b9d36327aa542be7 (patch) | |
| tree | 31d89efcf1030d0c9ef23f42a62203f202d6eda0 /src/format-diff/test/bindgen.diff | |
| parent | ebfc3af92a33b2eeed543a55fbf4929946fbe3a2 (diff) | |
Format lazy_static! macro
Some macros like `lazy_static!` cannot be parsed as a valid AST. Therefore, we need to parse them manually to be able to format them. Obviously this method will not scale, we will never be able to cover every macro in the entire ecosystem. That being said, I think it will not hurt to be able to format macros that are popular (such as `lazy_static!`) as long as rustfmt will not produce broken code when the macro has syntax that is not expected.
Diffstat (limited to 'src/format-diff/test/bindgen.diff')
0 files changed, 0 insertions, 0 deletions
