diff options
| author | bors <bors@rust-lang.org> | 2024-03-04 09:02:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-04 09:02:32 +0000 |
| commit | d8feb908beb9585645891bf06233d15ec4857cc1 (patch) | |
| tree | 36b4a92e2b7b2c0ffef71c936e4f35e56652ec33 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 0b7d4cc6ff80b943953750e3bea782267bd22ff6 (diff) | |
| parent | fac8a14de874d36aed74e3e29022342f77b0c01d (diff) | |
| download | rust-d8feb908beb9585645891bf06233d15ec4857cc1.tar.gz rust-d8feb908beb9585645891bf06233d15ec4857cc1.zip | |
Auto merge of #16703 - regexident:sema-ast-to-hir, r=Veykril
Add more methods for resolving definitions from AST to their corresponding HIR types In order to be able to add these methods with consistent naming I had to also rename two existing methods that would otherwise be conflicting/confusing: `Semantics::to_module_def(&self, file: FileId) -> Option<Module>` (before) `Semantics::file_to_module_def(&self, file: FileId) -> Option<Module>` (after) `Semantics::to_module_defs(&self, file: FileId) -> impl Iterator<Item = Module>` (before) `Semantics::file_to_module_defs(&self, file: FileId) -> impl Iterator<Item = Module>` (after) (the PR is motivated by an outside use of the `ra_ap_hir` crate that would benefit from being able to walk a `hir::Function`'s AST, resolving its exprs/stmts/items to their HIR equivalents)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
