rustc-dev-guide/examples
bjorn3 65daf3b01a Replace ParseSess::set_dcx with DiagCtxt::set_emitter
Replacing the error emitter doesn't accidentally clear the error count.
2025-02-02 16:09:39 +00:00
..
README
rustc-driver-example.rs
rustc-driver-interacting-with-the-ast.rs
rustc-interface-example.rs
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