Skip to content

Commit 9516a40

Browse files
xFrednetflip1995
andcommitted
Fixed typo in docs and correct doc links
Co-authored-by: Philipp Krones <[email protected]>
1 parent 897404e commit 9516a40

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler/rustc_errors/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,10 @@ struct HandlerInner {
426426

427427
future_breakage_diagnostics: Vec<Diagnostic>,
428428

429-
/// The [`unstable_expect_diagnostics`] should be empty when this struct is
429+
/// The [`Self::unstable_expect_diagnostics`] should be empty when this struct is
430430
/// dropped. However, it can have values if the compilation is stopped early
431431
/// or is only partially executed. To avoid ICEs, like in rust#94953 we only
432-
/// check if [`unstable_expect_diagnostics`] is empty, if the expectation ids
432+
/// check if [`Self::unstable_expect_diagnostics`] is empty, if the expectation ids
433433
/// have been converted.
434434
check_unstable_expect_diagnostics: bool,
435435

compiler/rustc_middle/src/query/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,14 @@ rustc_queries! {
162162
/// to ensure that all expectations can be fulfilled.
163163
///
164164
/// This is an extra query to enable other drivers (like rustdoc) to
165-
/// only execute a small subset of the [`analysis`] query, while allowing
165+
/// only execute a small subset of the `analysis` query, while allowing
166166
/// lints to be expected. In rustc, this query will be executed as part of
167-
/// the [`analysis`] query and doesn't have to be called a second time.
167+
/// the `analysis` query and doesn't have to be called a second time.
168168
///
169169
/// Tools can additionally pass in a tool filter. That will restrict the
170170
/// expectations to only trigger for lints starting with the listed tool
171171
/// name. This is useful for cases were not all linting code from rustc
172-
/// was called. With the default `none` all registered lints will also
172+
/// was called. With the default `None` all registered lints will also
173173
/// be checked for expectation fulfillment.
174174
query check_expectations(key: Option<Symbol>) -> () {
175175
eval_always

0 commit comments

Comments
 (0)