aboutsummaryrefslogtreecommitdiff
path: root/mingling_pathf/src/pattern_analyzer.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-06 16:59:34 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-06 16:59:34 +0800
commit815cc96a09b86eb890d6fa36d9afe8ed18afb867 (patch)
tree7d7fa59861bf90d74935e164f7e9450a0046eedb /mingling_pathf/src/pattern_analyzer.rs
parent2176a912668409a5a571c47a9937fe07ba6280ce (diff)
feat(pathf): remove BasicStructPattern from analyzerHEADmain
Remove the BasicStructPattern from pathf's pattern analyzer to eliminate noise from plain structs not associated with any Mingling macro. Also clean up the now-unused `basic_struct` module and update the integration test to assert plain structs are no longer collected.
Diffstat (limited to 'mingling_pathf/src/pattern_analyzer.rs')
-rw-r--r--mingling_pathf/src/pattern_analyzer.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/mingling_pathf/src/pattern_analyzer.rs b/mingling_pathf/src/pattern_analyzer.rs
index 4675dd1..1fc0cbe 100644
--- a/mingling_pathf/src/pattern_analyzer.rs
+++ b/mingling_pathf/src/pattern_analyzer.rs
@@ -28,7 +28,6 @@ pub fn init() -> PatternAnalyzer {
/// to inject feature-dependent settings (e.g., `dispatch_tree`).
pub fn init_with_config(config: PathfinderConfig) -> PatternAnalyzer {
let mut analyzer = PatternAnalyzer::new();
- analyzer.add_pattern(BasicStructPattern);
analyzer.add_pattern(PackPattern);
analyzer.add_pattern(GroupPattern);
analyzer.add_pattern(GroupedDerivePattern);