Skip to content

Allow mutate expressions and statements #79

@gnieto

Description

@gnieto

Since rust-lang/rust#49124, expressions and statements can be mutated if the flag stmt_expr_attributes is used.

Currently, mutagen assumes that mutations happen only on func/methods contexts. For example, there are some mutations that depends on methods_info.

We are also assuming this for the coverage information. We are prepending the static var on the beginning of the scope of a method, but we will need to think about how we will report the coverage when we will mutate single expressions or statements.

Related: 15b2e37

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmutationRelated to specific mutations

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions