rustc-dev-guide/examples
Shoyu Vanilla 4c7c97aad1 Get diagnostics directly in `rustc-driver-getting-diagnostics` example (#1857) 2024-01-22 04:41:55 +09:00
..
README howto run the examples (#1593) 2023-02-15 11:40:25 -03:00
rustc-driver-example.rs Update examples (#1856) 2024-01-21 22:26:41 +09:00
rustc-driver-getting-diagnostics.rs Get diagnostics directly in `rustc-driver-getting-diagnostics` example (#1857) 2024-01-22 04:41:55 +09:00
rustc-driver-interacting-with-the-ast.rs Update examples (#1856) 2024-01-21 22:26:41 +09: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