Rollup merge of #113536 - lcnr:proof-tree-select, r=BoxyUwU

avoid building proof trees in select

otherwise we ICE because select isn't currently set up to print proof trees.

r? `````@BoxyUwU`````
This commit is contained in:
Matthias Krüger
2023-07-13 22:33:23 +02:00
committed by GitHub
5 changed files with 22 additions and 28 deletions

View File

@@ -3569,7 +3569,7 @@ pub fn dump_proof_tree<'tcx>(o: &Obligation<'tcx, ty::Predicate<'tcx>>, infcx: &
.1
.expect("proof tree should have been generated");
let mut lock = std::io::stdout().lock();
let _ = lock.write_fmt(format_args!("{tree:?}"));
let _ = lock.write_fmt(format_args!("{tree:?}\n"));
let _ = lock.flush();
});
}