Skip to content

"Unwrap Result return type" shouldn't trigger in trait impls #13560

Open
@jonas-schievink

Description

@jonas-schievink
trait Tr {
    fn f() -> Result<(), ()>;
}

impl Tr for () {
    fn f() -> $0Result<(), ()> {
        todo!()
    }
}

This offers the "Unwrap Result return type", which removes the return type here, but this is wrong in a trait impl if the trait isn't also modified (which requires fixing up every impl of it).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-assistsC-bugCategory: bugS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions