File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/borrow_check/moves_and_initialization Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -118,10 +118,10 @@ they are also structured into a tree. So for example if you have the
118118you might iterate to find the path ` a.b.c ` (here you are iterating
119119just over the paths that are ** actually referenced** in the source,
120120not all ** possible** paths that could have been referenced). These
121- references are used for example in the [ ` has_any_child_of ` ] function,
122- which checks whether the dataflow results contain a value for the
123- given move-path (e.g., ` a.b ` ) or any child of that move-path (e.g.,
124- ` a.b.c ` ).
121+ references are used for example in the
122+ [ ` find_in_move_path_or_its_descendants ` ] function, which determines
123+ whether a move-path (e.g., ` a.b ` ) or any child of that move-path
124+ (e.g., ` a.b.c ` ) matches a given predicate .
125125
126126[ `Place` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc/mir/struct.Place.html
127- [ `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
127+ [ `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
You can’t perform that action at this time.
0 commit comments