Skip to content

Commit 7029d46

Browse files
Merge pull request #2819 from reddevilmidzy/typeck
Update docs to use `TyCtxtEnsureOk::typeck`
2 parents 445f9e2 + 8b3c1cf commit 7029d46

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/rustc-driver/getting-diagnostics.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +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 [`rustc_hir_typeck::typeck`] for each item.
10+
and run [`TyCtxtEnsureOk::typeck`] for each item.
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.analysis`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/passes/fn.analysis.html
19-
[`rustc_hir_typeck::typeck`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir_typeck/fn.typeck.html
18+
[`TyCtxtEnsureOk::typeck`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/query/struct.TyCtxtEnsureOk.html#method.typeck

0 commit comments

Comments
 (0)