Skip to content

E0619 diagnostic occurs twice in rustc source #46837

Closed
@pnkfelix

Description

@pnkfelix

PR #46664 injected a second use of E0619.

This causes a warning at compile-time for rustc_typeck:

   Compiling rustc_typeck v0.0.0 (file:///home/pnkfelix/Dev/Mozilla/rust-mirborrowck/src/librustc_typeck)
warning: diagnostic code E0619 already used
    --> /home/pnkfelix/Dev/Mozilla/rust-mirborrowck/src/librustc_typeck/check/mod.rs:4962:21
     |
4962 | /                     type_error_struct!(self.tcx.sess, sp, ty, E0619,
4963 | |                                        "the type of this value must be known in this context")
     | |______________________________________________________________________________________________^
     |
note: previous invocation
    --> /home/pnkfelix/Dev/Mozilla/rust-mirborrowck/src/librustc_typeck/check/method/probe.rs:328:25
     |
328  | /                         struct_span_warn!(self.tcx.sess, span, E0619,
329  | |                             "the type of this value must be known in this context")
     | |___________________________________________________________________________________^
     = note: this error originates in a macro outside of the current crate

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