Detect doublelock and conflictlock.
| 59 | /// Detect doublelock and conflictlock. |
| 60 | pub struct DeadlockDetector<'tcx> { |
| 61 | tcx: TyCtxt<'tcx>, |
| 62 | typing_env: TypingEnv<'tcx>, |
| 63 | pub lockguard_relations: FxHashSet<(LockGuardId, LockGuardId)>, |
| 64 | } |
| 65 | |
| 66 | impl<'tcx> DeadlockDetector<'tcx> { |
| 67 | pub fn new(tcx: TyCtxt<'tcx>, typing_env: TypingEnv<'tcx>) -> Self { |
| 68 | Self { |
nothing calls this directly
no outgoing calls
no test coverage detected