From 2562a101fe71038456754f979b1b943d3ed5d3ac Mon Sep 17 00:00:00 2001 From: Christopher Speir Date: Wed, 25 Sep 2024 09:18:50 -0500 Subject: [PATCH] Fix file paths to section 35.1 & 35.2 example code (#2078) --- src/rustc-driver/getting-diagnostics.md | 2 +- src/rustc-driver/interacting-with-the-ast.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rustc-driver/getting-diagnostics.md b/src/rustc-driver/getting-diagnostics.md index ab894f1c8..2d96e661b 100644 --- a/src/rustc-driver/getting-diagnostics.md +++ b/src/rustc-driver/getting-diagnostics.md @@ -11,7 +11,7 @@ and run [`TyCtxt.analysis`]. The following was tested with `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/rustc-driver/interacting-with-the-ast.md b/src/rustc-driver/interacting-with-the-ast.md index 98a19bd79..ea26edb01 100644 --- a/src/rustc-driver/interacting-with-the-ast.md +++ b/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 `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