From 9516a40f1e767d1181344f9a3df8f740dff673c5 Mon Sep 17 00:00:00 2001 From: Fridtjof Stoldt Date: Tue, 5 Apr 2022 18:23:38 +0200 Subject: [PATCH] Fixed typo in docs and correct doc links Co-authored-by: Philipp Krones --- compiler/rustc_errors/src/lib.rs | 4 ++-- compiler/rustc_middle/src/query/mod.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index 21914dd7a8c..29643eaad99 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -426,10 +426,10 @@ struct HandlerInner { future_breakage_diagnostics: Vec, - /// The [`unstable_expect_diagnostics`] should be empty when this struct is + /// The [`Self::unstable_expect_diagnostics`] should be empty when this struct is /// dropped. However, it can have values if the compilation is stopped early /// or is only partially executed. To avoid ICEs, like in rust#94953 we only - /// check if [`unstable_expect_diagnostics`] is empty, if the expectation ids + /// check if [`Self::unstable_expect_diagnostics`] is empty, if the expectation ids /// have been converted. check_unstable_expect_diagnostics: bool, diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index 3936b3f0d68..173028cf5c5 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -162,14 +162,14 @@ rustc_queries! { /// to ensure that all expectations can be fulfilled. /// /// This is an extra query to enable other drivers (like rustdoc) to - /// only execute a small subset of the [`analysis`] query, while allowing + /// only execute a small subset of the `analysis` query, while allowing /// lints to be expected. In rustc, this query will be executed as part of - /// the [`analysis`] query and doesn't have to be called a second time. + /// the `analysis` query and doesn't have to be called a second time. /// /// Tools can additionally pass in a tool filter. That will restrict the /// expectations to only trigger for lints starting with the listed tool /// name. This is useful for cases were not all linting code from rustc - /// was called. With the default `none` all registered lints will also + /// was called. With the default `None` all registered lints will also /// be checked for expectation fulfillment. query check_expectations(key: Option) -> () { eval_always