61 lines
1.1 KiB
Rust
61 lines
1.1 KiB
Rust
|
// rustfmt-merge_derives:true
|
||
|
|
||
|
#[rustfmt::skip::attributes(derive)]
|
||
|
#[allow(dead_code)]
|
||
|
#[derive(StructField)]
|
||
|
#[derive(Clone)]
|
||
|
struct DoNotMergeDerives {
|
||
|
field: String,
|
||
|
}
|
||
|
|
||
|
#[allow(dead_code)]
|
||
|
#[derive(StructField)]
|
||
|
#[rustfmt::skip::attributes(derive)]
|
||
|
#[derive(Clone)]
|
||
|
struct DoNotMergeDerivesSkipInMiddle {
|
||
|
field: String,
|
||
|
}
|
||
|
|
||
|
#[allow(dead_code)]
|
||
|
#[derive(StructField)]
|
||
|
#[derive(Clone)]
|
||
|
#[rustfmt::skip::attributes(derive)]
|
||
|
struct DoNotMergeDerivesSkipAtEnd {
|
||
|
field: String,
|
||
|
}
|
||
|
|
||
|
#[allow(dead_code)]
|
||
|
#[derive(StructField, Clone)]
|
||
|
struct MergeDerives {
|
||
|
field: String,
|
||
|
}
|
||
|
|
||
|
mod inner_attribute_derive_skip {
|
||
|
#![rustfmt::skip::attributes(derive)]
|
||
|
|
||
|
#[allow(dead_code)]
|
||
|
#[derive(StructField)]
|
||
|
#[derive(Clone)]
|
||
|
struct DoNotMergeDerives {
|
||
|
field: String,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#[rustfmt::skip::attributes(derive)]
|
||
|
mod outer_attribute_derive_skip {
|
||
|
#[allow(dead_code)]
|
||
|
#[derive(StructField)]
|
||
|
#[derive(Clone)]
|
||
|
struct DoNotMergeDerives {
|
||
|
field: String,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mod no_derive_skip {
|
||
|
#[allow(dead_code)]
|
||
|
#[derive(StructField, Clone)]
|
||
|
struct MergeDerives {
|
||
|
field: String,
|
||
|
}
|
||
|
}
|