Skip to content

Commit 30f314b

Browse files
committed
document analyse
1 parent af8db51 commit 30f314b

File tree

1 file changed

+10
-0
lines changed
  • compiler/rustc_trait_selection/src/solve/inspect

1 file changed

+10
-0
lines changed

compiler/rustc_trait_selection/src/solve/inspect/analyse.rs

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/// An infrastructure to mechanically analyse proof trees.
2+
///
3+
/// It is unavoidable that this representation is somewhat
4+
/// lossy as it should hide quite a few semantically relevant things,
5+
/// e.g. canonicalization and the order of nested goals.
6+
///
7+
/// @lcnr: However, a lot of the weirdness here is not strictly necessary
8+
/// and could be improved in the future. This is mostly good enough for
9+
/// coherence right now and was annoying to implement, so I am leaving it
10+
/// as is until we start using it for something else.
111
use std::ops::ControlFlow;
212

313
use rustc_infer::infer::InferCtxt;

0 commit comments

Comments
 (0)