rustc-dev-guide/examples
Nicholas Nethercote af8bfec148 More updates for recent diagnostics changes.
A sequel to #1883, this covers diagnostic naming changes from
rust-lang/rust/pull/121489, rust-lang/rust/pull/121780, and
rust-lang/rust/pull/122132.
2024-03-12 02:12:31 +01: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 More updates for recent diagnostics changes. 2024-03-12 02:12:31 +01: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