about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristopher Speir <chris@cbspeir.dev>2024-09-25 09:18:50 -0500
committerGitHub <noreply@github.com>2024-09-25 22:18:50 +0800
commitc60bcf591c0986815ae5a7cc6dfa7c45f820e054 (patch)
treead87c057d0769abfd75ee58eb0a4eca6a0dc8966
parentee42d0734d2ee200924b302d3d494358ba6f97d7 (diff)
downloadrust-c60bcf591c0986815ae5a7cc6dfa7c45f820e054.tar.gz
rust-c60bcf591c0986815ae5a7cc6dfa7c45f820e054.zip
Fix file paths to section 35.1 & 35.2 example code (#2078)
-rw-r--r--src/doc/rustc-dev-guide/src/rustc-driver/getting-diagnostics.md2
-rw-r--r--src/doc/rustc-dev-guide/src/rustc-driver/interacting-with-the-ast.md2
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 ab894f1c85e..2d96e661b16 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
@@ -11,7 +11,7 @@ and run [`TyCtxt.analysis`].
 The following was tested with <!-- date-check: september 2024 --> `nightly-2024-09-16`:
 
 ```rust
-{{#include ../examples/rustc-driver-getting-diagnostics.rs}}
+{{#include ../../examples/rustc-driver-getting-diagnostics.rs}}
 ```
 
 [`rustc_interface`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/index.html
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 98a19bd79d4..ea26edb0133 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
@@ -8,7 +8,7 @@ To get the type of an expression, use the [`global_ctxt`] query to [get] a [`TyC
 The following was tested with <!-- date-check: may 2024 --> `nightly-2024-05-09`:
 
 ```rust
-{{#include ../examples/rustc-driver-interacting-with-the-ast.rs}}
+{{#include ../../examples/rustc-driver-interacting-with-the-ast.rs}}
 ```
 [get]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.GlobalCtxt.html#method.enter
 [`global_ctxt`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/queries/struct.Queries.html#method.global_ctxt