Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(engine/fstar): use Base.String.hash instead of String.hash #740

Merged
merged 3 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/install_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v15
with:
name: hax
skipPush: true
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build
run: nix build -L
Expand Down Expand Up @@ -47,7 +51,6 @@ jobs:
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
run: |
nix profile install nixpkgs#cachix nixpkgs#jq
nix build .# .#fstar --json \
| jq -r '.[].outputs | to_entries[].value' \
| cachix push hax
Expand Down
2 changes: 1 addition & 1 deletion engine/backends/fstar/fstar-surface-ast/z.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let of_t = Base.Int.to_string

let compare = String.compare
let pp_print = pp
let hash = String.hash
let hash = Base.String.hash


let to_int: String.t -> Base.Int.t = Base.Int.of_string
Expand Down
Loading