pub fn with_root_source_view<T>(
root: &Path,
operation: impl FnOnce() -> T,
) -> Result<T, String>Expand description
with_source_view for the project root itself, whatever project the
request is bound to. An operation over several roots (ctx_multi_repo search) judges each root under that root’s own policy, one view per root:
one request view stretched over another root rebinds the request project
inside it, which ends the view (the operation fails closed) — every
cross-repo search failed that way (#2244). Called inside an open view of
another project, this still ends that view and fails closed.