The end goal is to eliminate `Map` altogether. I added a `hir_` prefix to all of them, that seemed simplest. The exceptions are `module_items` which became `hir_module_free_items` because there was already a `hir_module_items`, and `items` which became `hir_free_items` for consistency with `hir_module_free_items`. |
||
|---|---|---|
| .. | ||
| README | ||
| rustc-driver-example.rs | ||
| rustc-driver-interacting-with-the-ast.rs | ||
| rustc-interface-example.rs | ||
| rustc-interface-getting-diagnostics.rs | ||
README
For each example to compile, you will need to first run the following:
rustup component add rustc-dev llvm-tools
To create an executable:
rustc rustc-driver-example.rs
To run an executable:
rustup run nightly ./rustc-driver-example