Fix Starlarkification allowlist for private cc apis
This relaxes the check back to it's earlier form of checking only for package prefix for allowlists specified for the main repo.
Fixes
Verified:
@@ -135,7 +135,8 @@ public abstract class CcModule
PackageIdentifier.createInMainRepo("bazel_internal/test_rules/cc"),
PackageIdentifier.createInMainRepo("tools/build_defs/android/dev"),
PackageIdentifier.createInMainRepo("tools/build_defs/android/release/blaze"),
- PackageIdentifier.createInMainRepo("rust/private"));
+ PackageIdentifier.createInMainRepo("rust/private"),
+ PackageIdentifier.createUnchecked("rules_rust", "rust/private"));
public abstract CppSemantics getSemantics();
