diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-01-15 18:41:17 -0800 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-01-15 18:41:17 -0800 |
| commit | be730e16de1c2590d20ff76c9dfa9a7536fd418a (patch) | |
| tree | 843f5175ae2d63aac39df03a0d2debf8108db97f /src | |
| parent | 1006ad036a447f23b2f9f88a300bf56d7bcf8b64 (diff) | |
| download | rust-be730e16de1c2590d20ff76c9dfa9a7536fd418a.tar.gz rust-be730e16de1c2590d20ff76c9dfa9a7536fd418a.zip | |
Use trailing underscore for helper methods
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_mir/dataflow/generic/cursor.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_mir/dataflow/generic/cursor.rs b/src/librustc_mir/dataflow/generic/cursor.rs index f819b0fb5d6..d2eff494ad7 100644 --- a/src/librustc_mir/dataflow/generic/cursor.rs +++ b/src/librustc_mir/dataflow/generic/cursor.rs @@ -79,7 +79,7 @@ where /// effect, use `seek_after` or `seek_after_assume_call_returns`. pub fn seek_before(&mut self, target: Location) { assert!(target <= self.body.terminator_loc(target.block)); - self._seek(target, false); + self.seek_(target, false); } /// Advances the cursor to hold the full effect of all statements (and possibly closing @@ -98,7 +98,7 @@ where self.seek_to_block_start(target.block); } - self._seek(target, true); + self.seek_(target, true); } /// Advances the cursor to hold all effects up to and including of the statement (or @@ -110,7 +110,7 @@ where let terminator_loc = self.body.terminator_loc(target.block); assert!(target.statement_index <= terminator_loc.statement_index); - self._seek(target, true); + self.seek_(target, true); if target != terminator_loc { return; @@ -134,7 +134,7 @@ where } } - fn _seek(&mut self, target: Location, apply_after_effect_at_target: bool) { + fn seek_(&mut self, target: Location, apply_after_effect_at_target: bool) { use CursorPosition::*; match self.pos { |
