Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 588433264
Change-Id: Ief0576e6ae3a1fc394bb26915cbca1f2bfc64e03
  • Loading branch information
durin42 authored and copybara-github committed Dec 6, 2023
1 parent 130266b commit c96fbc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ public boolean saveFeatureStateStarlark(StarlarkThread thread) throws EvalExcept
@Override
public boolean fissionActiveForCurrentCompilationModeStarlark(StarlarkThread thread)
throws EvalException {
checkInExpandedApiAllowlist(thread, "fission_active_for_current_compilation_mode");
CcModule.checkPrivateStarlarkificationAllowlist(thread);
return fissionIsActiveForCurrentCompilationMode();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void testExpandedApiBlocked() throws Exception {
e = assertThrows(AssertionError.class, () -> getConfiguredTarget("//foo:save"));
assertThat(e).hasMessageThat().contains("cannot use private API");
e = assertThrows(AssertionError.class, () -> getConfiguredTarget("//foo:fission"));
assertBlockedFeature(e, "fission_active_for_current_compilation_mode");
assertThat(e).hasMessageThat().contains("cannot use private API");
}

private void writeRuleReturning(String returns) throws IOException {
Expand Down

0 comments on commit c96fbc5

Please sign in to comment.