rustc-dev-guide/examples
Nicholas Nethercote 35c8087bff Move some `Map` methods onto `TyCtxt`.
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`.
2025-02-17 13:21:02 +11:00
..
README howto run the examples (#1593) 2023-02-15 11:40:25 -03:00
rustc-driver-example.rs tree-wide: parallel: Fully removed all `Lrc`, replaced with `Arc` 2025-02-03 13:25:57 +03:00
rustc-driver-interacting-with-the-ast.rs Move some `Map` methods onto `TyCtxt`. 2025-02-17 13:21:02 +11:00
rustc-interface-example.rs Rework the driver docs (#2162) 2024-12-27 20:40:32 +08:00
rustc-interface-getting-diagnostics.rs Replace ParseSess::set_dcx with DiagCtxt::set_emitter 2025-02-02 16:09:39 +00:00

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