Skip to content

Use span_suggestion instead of manually building suggestions #442

Closed
@Manishearth

Description

@Manishearth

http://manishearth.github.io/rust-internals-docs/rustc/session/struct.Session.html#method.span_suggestion

See, for example, the suggestion you get for http://is.gd/5k86CL, it's built by running span_suggestion with format!("move {}", snippet_for_closure).

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