Skip to content

Commit fdba872

Browse files
committed
Add a proper comment for create_resolver
1 parent ed9f8f8 commit fdba872

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/librustc_resolve/lib.rs

+8
Original file line numberDiff line numberDiff line change
@@ -4034,6 +4034,14 @@ pub fn resolve_crate<'a, 'tcx>(session: &'a Session,
40344034
}
40354035
}
40364036

4037+
/// Builds a name resolution walker to be used within this module,
4038+
/// or used externally, with an optional callback function.
4039+
///
4040+
/// The callback takes a &mut bool which allows callbacks to end a
4041+
/// walk when set to true, passing through the rest of the walk, while
4042+
/// preserving the ribs + current module. This allows resolve_path
4043+
/// calls to be made with the correct scope info. The node in the
4044+
/// callback corresponds to the current node in the walk.
40374045
pub fn create_resolver<'a, 'tcx>(session: &'a Session,
40384046
ast_map: &'a ast_map::Map<'tcx>,
40394047
krate: &'a Crate,

0 commit comments

Comments
 (0)