1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! LightCheck trait - Interface for lightweight graph-based checks.
use CheckResult;
/// Trait for lightweight graph-based validation.
///
/// This trait defines the interface for pre-mutation validation checks
/// that can quickly detect common errors without running the full compiler.
///
/// # Implementors
///
/// - `GraphChecker`: Uses `CodeGraph`, `TypeFlowGraph`, and `SymbolRegistry`
///
/// # Usage
///
/// ```rust,ignore
/// fn validate_mutation(checker: &impl LightCheck, target: &str) -> bool {
/// if !checker.check_symbol_exists(target) {
/// return false;
/// }
/// checker.check_derive_possible(target, "Default").is_ok()
/// }
/// ```
///
/// For borrow conflict detection, use `BorrowTrackerV2::conflicts()` directly.