Fixed typo in docs and correct doc links

Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
Fridtjof Stoldt 2022-04-05 18:23:38 +02:00 committed by xFrednet
parent 897404e1d9
commit 9516a40f1e
No known key found for this signature in database
GPG key ID: FCDCBF29AF64D601
2 changed files with 5 additions and 5 deletions

View file

@ -426,10 +426,10 @@ struct HandlerInner {
future_breakage_diagnostics: Vec<Diagnostic>,
/// 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,

View file

@ -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<Symbol>) -> () {
eval_always