summaryrefslogtreecommitdiffstats
path: root/src/doc/rustc-dev-guide/src/rustc-driver-getting-diagnostics.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/rustc-dev-guide/src/rustc-driver-getting-diagnostics.md')
-rw-r--r--src/doc/rustc-dev-guide/src/rustc-driver-getting-diagnostics.md8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/doc/rustc-dev-guide/src/rustc-driver-getting-diagnostics.md b/src/doc/rustc-dev-guide/src/rustc-driver-getting-diagnostics.md
index 5ce93c3df..bb19ad9d3 100644
--- a/src/doc/rustc-dev-guide/src/rustc-driver-getting-diagnostics.md
+++ b/src/doc/rustc-dev-guide/src/rustc-driver-getting-diagnostics.md
@@ -7,7 +7,7 @@
To get diagnostics from the compiler,
configure `rustc_interface::Config` to output diagnostic to a buffer,
and run `TyCtxt.analysis`. The following was tested
-with <!-- date-check: June 2022 --> `nightly-2022-06-05` (See [here][example]
+with <!-- date-check: Jan 2023 --> `nightly-2022-12-19` (See [here][example]
for the complete example):
[example]: https://github.com/rust-lang/rustc-dev-guide/blob/master/examples/rustc-driver-getting-diagnostics.rs
@@ -24,11 +24,7 @@ let config = rustc_interface::Config {
),
},
/* other config */
- },
- // Redirect the diagnostic output of the compiler to a buffer.
- diagnostic_output: rustc_session::DiagnosticOutput::Raw(Box::from(DiagnosticSink(
- buffer.clone(),
- ))),
+ },
/* other config */
};
rustc_interface::run_compiler(config, |compiler| {