Skip to content

Commit 1bfbc9f

Browse files
author
Tage Johansson
committed
fix documentation errors
1 parent 95e1a43 commit 1bfbc9f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

compiler/rustc_borrowck/src/polonius/horatio/location_sensitive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ impl LocationSensitiveAnalysis {
293293
}
294294
}
295295

296-
/// This is a very specific function used in [`LocationInsensitiveAnalysis::compute()`] to visit all
296+
/// This is a very specific function used in [`LocationSensitiveAnalysis::compute()`] to visit all
297297
///
298298
/// predecessors and successors of a node. One could argue that it shouldn’t be a separate function
299299
/// and should just be hardcoded, but that led to a ton of repetitive code.

compiler/rustc_borrowck/src/polonius/horatio/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub(crate) struct PoloniusContext<'a, 'tcx> {
6363

6464
/// For every block, we store a set of all proceeding blocks.
6565
///
66-
/// ```
66+
/// ```text
6767
/// a
6868
/// / \
6969
/// b c
@@ -315,7 +315,7 @@ impl<'a, 'tcx> Polonius<'a, 'tcx> {
315315
/// The purpose of this function is to be really quick. In most cases it will return `false` and
316316
/// no conflict is therefore possible. In the rare situations it returns `true`, the caller
317317
/// should proceed with other more time consuming methods of checking for a conflict and
318-
/// eventually call the [`Polonius::loan_is_active`] function which will give a definite answer.
318+
/// eventually call the [`Polonius::loan_is_active_at`] function which will give a definite answer.
319319
#[inline]
320320
pub(crate) fn loan_maybe_active_at(
321321
&mut self,

compiler/rustc_borrowck/src/polonius/horatio/polonius_block.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ impl PoloniusBlock {
116116

117117
/// Iterate over the successor blocks to this block.
118118
///
119-
/// Note that this is same as [`Terminator::successors`] except for the "before introduction
120-
/// block" where it is the "introduction block".
119+
/// Note that this is same as
120+
/// [`Terminator::successors`](rustc_middle::mir::Terminator::successors) except for the "before
121+
/// introduction block" where it is the "introduction block".
121122
#[inline]
122123
pub(super) fn successors(
123124
self,

0 commit comments

Comments
 (0)