Skip to content

Commit f838494

Browse files
committed
Rust: Remove empty impls.
1 parent 9efb6ea commit f838494

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

rust/ast-generator/src/main.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,6 @@ fn has_special_emission(type_name: &str) -> bool {
6262
| "Struct"
6363
| "Enum"
6464
| "Union"
65-
| "Trait"
66-
| "Module"
67-
| "Variant"
68-
| "PathExpr"
69-
| "RecordExpr"
70-
| "PathPat"
71-
| "RecordPat"
72-
| "TupleStructPat"
73-
| "MethodCallExpr"
7465
| "PathSegment"
7566
| "Const"
7667
)

rust/extractor/src/translate/base.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -82,24 +82,6 @@ impl Emission<ast::Union> for Translator<'_> {
8282
}
8383
}
8484

85-
impl Emission<ast::Trait> for Translator<'_> {}
86-
87-
impl Emission<ast::Module> for Translator<'_> {}
88-
89-
impl Emission<ast::Variant> for Translator<'_> {}
90-
91-
impl Emission<ast::PathExpr> for Translator<'_> {}
92-
93-
impl Emission<ast::RecordExpr> for Translator<'_> {}
94-
95-
impl Emission<ast::PathPat> for Translator<'_> {}
96-
97-
impl Emission<ast::RecordPat> for Translator<'_> {}
98-
99-
impl Emission<ast::TupleStructPat> for Translator<'_> {}
100-
101-
impl Emission<ast::MethodCallExpr> for Translator<'_> {}
102-
10385
impl Emission<ast::PathSegment> for Translator<'_> {
10486
fn post_emit(&mut self, node: &ast::PathSegment, label: Label<generated::PathSegment>) {
10587
self.extract_types_from_path_segment(node, label);

0 commit comments

Comments
 (0)