Alex Crichton
9e142f8792
Fix some warnings on nightly Rust ( #3148 )
...
Looks like these trailing-semicolons-in-macros are likely to become a
hard error in the future, so this updates to remove them as necessary.
2021-08-05 13:02:44 -05:00
Benjamin Bouvier
5889dd2c64
[meta] Add more pub(crate) definitions.
2019-10-29 14:23:10 +01:00
Peter Huene
9f506692c2
Fix clippy warnings.
...
This commit fixes the current set of (stable) clippy warnings in the repo.
2019-10-24 17:20:12 -07:00
Benjamin Bouvier
e3e66acfb1
[meta] Generate legalizations in the Rust crate;
2019-04-25 11:44:56 +02:00
Benjamin Bouvier
00429ebe99
[meta] Fix outdented_line in srcgen;
2019-04-24 10:47:26 +02:00
Benjamin Bouvier
72b0d26ee9
[meta] Add features to srcgen;
...
- Adds a compiler warning when the fmtln! macro isn't correctly used.
- Allow to add an empty line.
- Make the output of generated matches more beautiful, by having one
struct per line on the clause.
- Add a method to add match with doesn't read any data from fields.
- Make sure that the placeholder clause of a match is put at the end.
2019-03-27 14:43:27 +01:00
Benjamin Bouvier
603d80615f
[meta] Introduce the fmtln! macro to ease writing formatted strings;
2019-02-20 11:31:38 +01:00
Benjamin Bouvier
c8e09cb37f
[meta] Use AsRef<str> to allow passing String or &str to Formatter functions;
2019-02-20 11:31:38 +01:00
lazypassion
747ad3c4c5
moved crates in lib/ to src/, renamed crates, modified some files' text ( #660 )
...
moved crates in lib/ to src/, renamed crates, modified some files' text (#660 )
2019-01-28 15:56:54 -08:00