Skip to content

Commit 3da195f

Browse files
authored
Merge pull request #21918 from hvitved/rust/expose-resolution
Rust: Add `Impl::getSelf()` and `Impl::getTrait()`
2 parents 0430c71 + af45e53 commit 3da195f

29 files changed

Lines changed: 14329 additions & 56 deletions

File tree

rust/ast-generator/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ fn property_name(type_name: &str, field_name: &str) -> String {
4545
(_, "ty") => "type_repr",
4646
("Function", "body") => "function_body",
4747
("ClosureExpr", "body") => "closure_body",
48+
("Impl", "trait_") => "trait_ty",
4849
_ if field_name.contains("record") => &field_name.replacen("record", "struct", 1),
4950
_ => field_name,
5051
};

0 commit comments

Comments
 (0)