Skip to content

rust: fails to reduce away items completely #180

@matthiaskrgr

Description

@matthiaskrgr

Often when reducing fuzzed code, for example

impl<T> VSet<T, {  }> {
    pub fn new(
        _: for<'a> fn(
            capture: T,
            std::marker::PhantomData<&'a ()>,
        ) -> <M2::Yokeable as Yokeable<'a>>::Output,
    ) -> Self {
        
    }
}

treereduce will manage to reduce away items, but keep the commas separating them
=>

impl<T> VSet<T, {  }> {
    pub fn new(
        ,
    ) -> Self {
        
    }
}

which will then throw annoying syntax errors, hinder further reduction or throw off rustfmt

I think I have seen this with enum/structs too

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions