Skip to content

Commit be730e1

Browse files
Use trailing underscore for helper methods
1 parent 1006ad0 commit be730e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_mir/dataflow/generic/cursor.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ where
7979
/// effect, use `seek_after` or `seek_after_assume_call_returns`.
8080
pub fn seek_before(&mut self, target: Location) {
8181
assert!(target <= self.body.terminator_loc(target.block));
82-
self._seek(target, false);
82+
self.seek_(target, false);
8383
}
8484

8585
/// Advances the cursor to hold the full effect of all statements (and possibly closing
@@ -98,7 +98,7 @@ where
9898
self.seek_to_block_start(target.block);
9999
}
100100

101-
self._seek(target, true);
101+
self.seek_(target, true);
102102
}
103103

104104
/// Advances the cursor to hold all effects up to and including of the statement (or
@@ -110,7 +110,7 @@ where
110110
let terminator_loc = self.body.terminator_loc(target.block);
111111
assert!(target.statement_index <= terminator_loc.statement_index);
112112

113-
self._seek(target, true);
113+
self.seek_(target, true);
114114

115115
if target != terminator_loc {
116116
return;
@@ -134,7 +134,7 @@ where
134134
}
135135
}
136136

137-
fn _seek(&mut self, target: Location, apply_after_effect_at_target: bool) {
137+
fn seek_(&mut self, target: Location, apply_after_effect_at_target: bool) {
138138
use CursorPosition::*;
139139

140140
match self.pos {

0 commit comments

Comments
 (0)