File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,13 +7,12 @@ otherwise be printed to stderr.
77
88To get diagnostics from the compiler,
99configure [ ` 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
You can’t perform that action at this time.
0 commit comments