diff options
| author | ecstatic-morse <ecstaticmorse@gmail.com> | 2020-03-28 21:23:19 -0700 |
|---|---|---|
| committer | Who? Me?! <mark-i-m@users.noreply.github.com> | 2020-03-31 15:43:14 -0500 |
| commit | 1f25205652649b33ab8f5590703b629ac30d38d0 (patch) | |
| tree | 036bd4c09dfb1c71b35a5315691f6d133078c3aa /src/doc/rustc-dev-guide | |
| parent | 0caf3351c1a9c46c7bc61ada0d373c59ebf931b4 (diff) | |
| download | rust-1f25205652649b33ab8f5590703b629ac30d38d0.tar.gz rust-1f25205652649b33ab8f5590703b629ac30d38d0.zip | |
Update reference to `has_any_child_of` in docs
This function was obsoleted by `find_in_move_path_or_its_descendants`.
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/borrow_check/moves_and_initialization/move_paths.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/doc/rustc-dev-guide/src/borrow_check/moves_and_initialization/move_paths.md b/src/doc/rustc-dev-guide/src/borrow_check/moves_and_initialization/move_paths.md index 9b8cbd47aed..9bc714649aa 100644 --- a/src/doc/rustc-dev-guide/src/borrow_check/moves_and_initialization/move_paths.md +++ b/src/doc/rustc-dev-guide/src/borrow_check/moves_and_initialization/move_paths.md @@ -118,10 +118,10 @@ they are also structured into a tree. So for example if you have the you might iterate to find the path `a.b.c` (here you are iterating just over the paths that are **actually referenced** in the source, not all **possible** paths that could have been referenced). These -references are used for example in the [`has_any_child_of`] function, -which checks whether the dataflow results contain a value for the -given move-path (e.g., `a.b`) or any child of that move-path (e.g., -`a.b.c`). +references are used for example in the +[`find_in_move_path_or_its_descendants`] function, which determines +whether a move-path (e.g., `a.b`) or any child of that move-path +(e.g.,`a.b.c`) matches a given predicate. [`Place`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/mir/struct.Place.html -[`has_any_child_of`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/at_location/struct.FlowAtLocation.html#method.has_any_child_of +[`find_in_move_path_or_its_descendants`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MoveData.html#method.find_in_move_path_or_its_descendants |
