rustc-dev-guide/examples
Boxy 3a4c5b0447 Merge from rustc 2025-02-25 21:27:44 +00:00
..
README Fix examples to work with nightly-2025-02-13 2025-02-15 19:44:32 +01:00
rustc-driver-example.rs Fix examples to work with nightly-2025-02-13 2025-02-15 19:44:32 +01:00
rustc-driver-interacting-with-the-ast.rs Merge from rustc 2025-02-25 21:27:44 +00:00
rustc-interface-example.rs Fix examples to work with nightly-2025-02-13 2025-02-15 19:44:32 +01:00
rustc-interface-getting-diagnostics.rs Fix examples to work with nightly-2025-02-13 2025-02-15 19:44:32 +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:

    rustup run nightly rustc rustc-driver-example.rs

You might need to be more specific about the exact nightly version. See the comments at the top of
the examples for the version they were written for.

To run an executable:

    rustup run nightly ./rustc-driver-example