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

chore: Upgrade rust toolchain to 1.70 #435

Merged
merged 1 commit into from
Jun 9, 2023
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
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ commands:
steps:
- save_cache:
name: "Save rustup cache"
key: cargo-v2-{{ checksum "rust-toolchain.toml" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
key: cargo-v2-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
paths:
- "~/.cargo"
- "~/.rustup"
Expand All @@ -107,7 +107,7 @@ commands:
steps:
- restore_cache:
keys:
- cargo-v2-{{ checksum "rust-toolchain.toml" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
- cargo-v2-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}

install_gpu_deps:
steps:
Expand Down
2 changes: 1 addition & 1 deletion fcomm/tests/makefile_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn test_make_fcomm_examples() {
let cpus = num_cpus::get();

let make_output = Command::new("make")
.current_dir(&examples_dir)
.current_dir(examples_dir)
.arg(format!("-j{}", cpus))
.output()
.expect("Failed to run the make command, is make installed?");
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
};

toolchain = with fenix.packages.${system}; fromToolchainFile {
file = ./rust-toolchain.toml; # alternatively, dir = ./.;
file = ./rust-toolchain; # alternatively, dir = ./.;
sha256 = "sha256-4vetmUhTUsew5FODnjlnQYInzyLNyDwocGa4IvMk3DM=";
samuelburnham marked this conversation as resolved.
Show resolved Hide resolved
};

Expand Down
4 changes: 2 additions & 2 deletions lurk-macros/tests/lurk_macro_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ mod test {
},
iterations,
_emitted,
) = Evaluator::new(expr, empty_sym_env(&s_), s_, limit, &lang)
) = Evaluator::new(expr, empty_sym_env(s_), s_, limit, &lang)
.eval()
.unwrap();

Expand All @@ -102,7 +102,7 @@ mod test {
},
iterations,
_emitted,
) = Evaluator::new(expr, empty_sym_env(&s_), s_, limit, &lang)
) = Evaluator::new(expr, empty_sym_env(s_), s_, limit, &lang)
.eval()
.unwrap();

Expand Down
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.70.0
samuelburnham marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 0 additions & 6 deletions rust-toolchain.toml

This file was deleted.

8 changes: 4 additions & 4 deletions src/circuit/circuit_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1188,8 +1188,8 @@ fn reduce_sym<F: LurkField, CS: ConstraintSystem<F>>(
&with_cons_binding_unmatched
)?;

let output_expr_should_be_val = with_sym_binding_matched.clone();
let output_expr_should_be_val_to_use = with_cons_binding_matched.clone();
let output_expr_should_be_val = &with_sym_binding_matched;
let output_expr_should_be_val_to_use = &with_cons_binding_matched;

// env
let output_env_should_be_env = or!(
Expand Down Expand Up @@ -1226,10 +1226,10 @@ fn reduce_sym<F: LurkField, CS: ConstraintSystem<F>>(

// expr
implies!(cs, &output_expr_should_be_expr, &output_expr_is_expr);
implies!(cs, &output_expr_should_be_val, &output_expr_is_val);
implies!(cs, output_expr_should_be_val, &output_expr_is_val);
implies!(
cs,
&output_expr_should_be_val_to_use,
output_expr_should_be_val_to_use,
&output_expr_is_val_to_use
);
implies!(cs, &output_cont_should_be_error, &output_expr_is_expr);
Expand Down
4 changes: 2 additions & 2 deletions src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ impl<F: LurkField> Store<F> {
)
};

if let Some(ptr) = self.sym_store.0.get(&symbol_name) {
if let Some(ptr) = self.sym_store.0.get(symbol_name) {
Ptr::index(tag, ptr.to_usize())
} else {
let ptr = self.sym_store.0.get(symbol_name).unwrap();
Expand All @@ -749,7 +749,7 @@ impl<F: LurkField> Store<F> {
)
};

if let Some(ptr) = self.sym_store.0.get(&symbol_name) {
if let Some(ptr) = self.sym_store.0.get(symbol_name) {
Ptr::index(tag, ptr.to_usize())
} else {
// We need to intern each of the path segments individually, so they will be in the store.
Expand Down