Skip to content

Commit dccecbc

Browse files
Apply suggestions from code review
Co-authored-by: Daria Sukhonina <dariasukhonina@gmail.com>
1 parent a0f498f commit dccecbc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/rustc-driver/getting-diagnostics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ otherwise be printed to stderr.
77

88
To get diagnostics from the compiler,
99
configure [`rustc_interface::Config`] to output diagnostic to a buffer,
10-
and run [`TyCtxt::typeck`] for each item (e.g. `tcx.ensure_ok().typeck(item_def_id)`).
10+
and run [`TyCtxtEnsureOk::typeck`] for each item (e.g. `tcx.ensure_ok().typeck(item_def_id)`).
1111

1212
```rust
1313
{{#include ../../examples/rustc-interface-getting-diagnostics.rs}}
1414
```
1515

1616
[`rustc_interface`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/index.html
1717
[`rustc_interface::Config`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/interface/struct.Config.html
18-
[`TyCtxt::typeck`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html#method.typeck
18+
[`TyCtxtEnsureOk::typeck`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/query/struct.TyCtxtEnsureOk.html#method.typeck

0 commit comments

Comments
 (0)