diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2022-06-21 06:26:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-21 13:26:19 +0900 |
| commit | 3252a2c0e73da824cae9a456514fcabc89b3f8da (patch) | |
| tree | 33713fee5bfff3b013431a5b62f3796421c37e77 /src/doc/rustc-dev-guide | |
| parent | 16824a22e744b9e53b0d55f9f72147c2aa037590 (diff) | |
| download | rust-3252a2c0e73da824cae9a456514fcabc89b3f8da.tar.gz rust-3252a2c0e73da824cae9a456514fcabc89b3f8da.zip | |
make clear that other versions can work (#1373)
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/rustc-driver-getting-diagnostics.md | 2 | ||||
| -rw-r--r-- | src/doc/rustc-dev-guide/src/rustc-driver-interacting-with-the-ast.md | 2 |
2 files changed, 2 insertions, 2 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 a7251c2f0e7..327415e5aae 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 @@ -6,7 +6,7 @@ To get diagnostics from the compiler, configure `rustc_interface::Config` to output diagnostic to a buffer, -and run `TyCtxt.analysis`. The following should be compiled +and run `TyCtxt.analysis`. The following was tested with <!-- date: 2022-06 --> `nightly-2022-06-05` (See [here][example] for the complete example): diff --git a/src/doc/rustc-dev-guide/src/rustc-driver-interacting-with-the-ast.md b/src/doc/rustc-dev-guide/src/rustc-driver-interacting-with-the-ast.md index 86732de1877..d70264fe4f2 100644 --- a/src/doc/rustc-dev-guide/src/rustc-driver-interacting-with-the-ast.md +++ b/src/doc/rustc-dev-guide/src/rustc-driver-interacting-with-the-ast.md @@ -5,7 +5,7 @@ ## Getting the type of an expression To get the type of an expression, use the `global_ctxt` to get a `TyCtxt`. -The following should be compiled with <!-- date: 2022-06 --> `nightly-2022-06-05` +The following was tested with <!-- date: 2022-06 --> `nightly-2022-06-05` (see [here][example] for the complete example): [example]: https://github.com/rust-lang/rustc-dev-guide/blob/master/examples/rustc-driver-interacting-with-the-ast.rs |
