Skip to content

Deprecated function calls inside of macros don't warn #17185

Closed
@sfackler

Description

@sfackler

This does not generate a deprecation warning, but will if the try! call is removed.

extern crate url;

fn foo() -> Result<(), ()> {
    try!(url::decode_component("sdf").map_err(|_| ()));
    Ok(())
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions