- 
                Notifications
    You must be signed in to change notification settings 
- Fork 556
Closed
Description
I tried to compile the examples below
rustup +nightly component add rust-src rustc-dev llvm-tools-preview
rustc +nightly rustc-driver-interacting-with-the-ast.rs I got below errors
error[E0433]: failed to resolve: could not find `DiagnosticOutput` in `rustc_session`
  --> rustc-driver-interacting-with-the-ast.rs:46:43
   |
46 |         diagnostic_output: rustc_session::DiagnosticOutput::Default,
   |                                           ^^^^^^^^^^^^^^^^ could not find `DiagnosticOutput` in `rustc_session`
error[E0560]: struct `rustc_interface::Config` has no field named `diagnostic_output`
  --> rustc-driver-interacting-with-the-ast.rs:46:9
   |
46 |         diagnostic_output: rustc_session::DiagnosticOutput::Default,
   |         ^^^^^^^^^^^^^^^^^ `rustc_interface::Config` does not have this field
   |
   = note: available fields are: `opts`, `crate_cfg`, `crate_check_cfg`, `input`, `input_path` ... and 9 others
error: aborting due to 2 previous errors
Metadata
Metadata
Assignees
Labels
No labels