rustc-dev-guide/examples
Vetle Rasmussen 06f9ccf1f2 Fix getting diagnostics example 2024-09-24 19:53:51 +02:00
..
README howto run the examples (#1593) 2023-02-15 11:40:25 -03:00
rustc-driver-example.rs Update the rustc_interface examples for current rustc (#1974) 2024-05-11 00:06:30 +01:00
rustc-driver-getting-diagnostics.rs Fix getting diagnostics example 2024-09-24 19:53:51 +02:00
rustc-driver-interacting-with-the-ast.rs Update the rustc_interface examples for current rustc (#1974) 2024-05-11 00:06:30 +01: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