Skip to content

Commit f2ff425

Browse files
Add rationale for suppress_errors flag
1 parent 27bd849 commit f2ff425

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc_mir/transform/qualify_consts.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,10 @@ struct Checker<'a, 'tcx> {
674674

675675
temp_promotion_state: IndexVec<Local, TempState>,
676676
promotion_candidates: Vec<Candidate>,
677-
errors: Vec<(Span, String)>,
677+
678+
/// If `true`, do not emit errors to the user, merely collect them in `errors`.
678679
suppress_errors: bool,
680+
errors: Vec<(Span, String)>,
679681
}
680682

681683
macro_rules! unleash_miri {

0 commit comments

Comments
 (0)