Closed spernsteiner closed 1 year ago
Input:
#[derive(Clone)] struct Foo { x: i32, }
Output:
#[derive(Foo)] struct Foo { x: i32, }
Notice derive(Clone) has been replaced with derive(Foo), which is bogus.
derive(Clone)
derive(Foo)
We previously had some logic to suppress rewrites coming from derive-generated functions, but this seems not to work any more.
derive
Input:
Output:
Notice
derive(Clone)
has been replaced withderive(Foo)
, which is bogus.We previously had some logic to suppress rewrites coming from
derive
-generated functions, but this seems not to work any more.