Skip to content

Commit

Permalink
Add issue number to novel violation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Jun 17, 2020
1 parent 38e921b commit 3a1207f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/librustc_mir_build/hair/pattern/const_to_pat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,12 @@ impl<'a, 'tcx> ConstToPat<'a, 'tcx> {

// This can occur because const qualification treats all associated constants as
// opaque, whereas `search_for_structural_match_violation` tries to monomorphize them
// before it runs. See #73431 for an example.
// before it runs.
//
// FIXME(#73448): Find a way to bring const qualification into parity with
// `search_for_structural_match_violation`.
if structural.is_none() && mir_structural_match_violation {
warn!("MIR const-checker found novel structural match violation");
warn!("MIR const-checker found novel structural match violation. See #73448.");
return inlined_const_as_pat;
}

Expand Down

0 comments on commit 3a1207f

Please sign in to comment.