Skip to content

panic! in append.rs:113 on generic functions #21

@unineko5555

Description

@unineko5555

append.rs:113 panics on type argument conflicts when fuzzing generic functions like deposit<MarketType, CoinType>.

thread 'main' panicked at 'Conflicting type arguments for index 0',
crates/movy-fuzz/src/mutators/sequence/append.rs:113:21

The same conflict is handled gracefully elsewhere in the file (PartialFound branch) with return None. Suggested fix:

// panic!("Conflicting type arguments for index {}", i);
debug!("Conflicting type arguments for index {}, skipping", i);
return None;

Workaround: --exclude-modules to skip generic modules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions