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,12 +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 [ ` 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
You can’t perform that action at this time.
0 commit comments