Skip to content

Commit 3a1207f

Browse files
Add issue number to novel violation warning
1 parent 38e921b commit 3a1207f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/librustc_mir_build/hair/pattern/const_to_pat.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,12 @@ impl<'a, 'tcx> ConstToPat<'a, 'tcx> {
109109

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

0 commit comments

Comments
 (0)