diff --git a/src/dune_rules/lib.ml b/src/dune_rules/lib.ml index ed81ba55ff63..db5be46ae846 100644 --- a/src/dune_rules/lib.ml +++ b/src/dune_rules/lib.ml @@ -1298,7 +1298,7 @@ end = struct in (acc_res, acc_selects, acc_re_exports, acc_renames) | Rename ((loc, name), to_) -> - let lib = resolve_dep db (loc, name) ~allow_private_deps ~stack in + let lib = resolve_dep db (loc, name) ~private_deps ~stack in let acc_res = let+ lib = lib and+ acc_res = acc_res in