1 1| |#![allow(unused_assignments, unused_variables, while_true)]
3 3| |// This test confirms an earlier problem was resolved, supporting the MIR graph generated by the
4 4| |// structure of this `fmt` function.
8 8| |impl std::fmt::Debug for DebugTest {
9 9| 1| fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
15 15| 1| write!(f, "error")?;
24 23| 1| let debug_test = DebugTest;
25 24| 1| println!("{:?}", debug_test);
30 29| |This is the error message generated, before the issue was fixed:
32 31| |error: internal compiler error: compiler/rustc_mir/src/transform/coverage/mod.rs:374:42:
33 32| |Error processing: DefId(0:6 ~ bug_incomplete_cov_graph_traversal_simplified[317d]::{impl#0}::fmt):
34 33| |Error { message: "`TraverseCoverageGraphWithLoops` missed some `BasicCoverageBlock`s:
35 34| |[bcb6, bcb7, bcb9]" }