6939e21f43
This was done by running the following. ```sh for f in `find . -name "configs-*.rs"`; do topdir=`echo $f | cut -d/ -f2`; configname=`echo $f | cut -d/ -f3 | cut -d- -f2`; testname=`echo $f | cut -d/ -f3 | cut -d- -f3`; mkdir -p $topdir/configs/$configname; git mv $f $topdir/configs/$configname/$testname; done ```
41 lines
671 B
Rust
41 lines
671 B
Rust
// rustfmt-merge_derives: true
|
|
// Merge multiple derives to a single one.
|
|
|
|
#[bar]
|
|
#[derive(Eq, PartialEq)]
|
|
#[foo]
|
|
#[derive(Debug)]
|
|
#[foobar]
|
|
#[derive(Copy, Clone)]
|
|
pub enum Foo {}
|
|
|
|
#[derive(Eq, PartialEq, Debug)]
|
|
#[foobar]
|
|
#[derive(Copy, Clone)]
|
|
pub enum Bar {}
|
|
|
|
#[derive(Eq, PartialEq, Debug, Copy, Clone)]
|
|
pub enum FooBar {}
|
|
|
|
mod foo {
|
|
#[bar]
|
|
#[derive(Eq, PartialEq)]
|
|
#[foo]
|
|
#[derive(Debug)]
|
|
#[foobar]
|
|
#[derive(Copy, Clone)]
|
|
pub enum Foo {}
|
|
}
|
|
|
|
mod bar {
|
|
#[derive(Eq, PartialEq, Debug)]
|
|
#[foobar]
|
|
#[derive(Copy, Clone)]
|
|
pub enum Bar {}
|
|
}
|
|
|
|
mod foobar {
|
|
#[derive(Eq, PartialEq, Debug, Copy, Clone)]
|
|
pub enum FooBar {}
|
|
}
|