diff --git a/Cargo.lock b/Cargo.lock index 3266f4e652e..7a3fc491912 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2801,7 +2801,6 @@ dependencies = [ "noirc_printable_type", "owo-colors", "rexpect", - "rustc_version", "serde_json", "tempfile", "test-binary", diff --git a/tooling/debugger/Cargo.toml b/tooling/debugger/Cargo.toml index 4d37f801d78..4d240c61f90 100644 --- a/tooling/debugger/Cargo.toml +++ b/tooling/debugger/Cargo.toml @@ -7,7 +7,6 @@ edition.workspace = true license.workspace = true [build-dependencies] -rustc_version = "0.4.0" build-data.workspace = true [dependencies] diff --git a/tooling/debugger/build.rs b/tooling/debugger/build.rs index 5d14ec2bae2..cedeebcae86 100644 --- a/tooling/debugger/build.rs +++ b/tooling/debugger/build.rs @@ -1,24 +1,14 @@ -use rustc_version::{version, Version}; use std::fs::File; use std::io::Write; use std::path::{Path, PathBuf}; use std::{env, fs}; -fn check_rustc_version() { - assert!( - version().unwrap() >= Version::parse("1.71.1").unwrap(), - "The minimal supported rustc version is 1.71.1." - ); -} - const GIT_COMMIT: &&str = &"GIT_COMMIT"; fn main() { // Rebuild if the tests have changed println!("cargo:rerun-if-changed=tests"); - check_rustc_version(); - // Only use build_data if the environment variable isn't set // The environment variable is always set when working via Nix if std::env::var(GIT_COMMIT).is_err() { diff --git a/tooling/debugger/tests/debug.rs b/tooling/debugger/tests/debug.rs index b2f441f5606..e8b17b8a7af 100644 --- a/tooling/debugger/tests/debug.rs +++ b/tooling/debugger/tests/debug.rs @@ -28,7 +28,7 @@ mod tests { dbg_session .execute( &format!("{} debug --program-dir {}", nargo_bin, test_program_dir), - &format!(".*\\Starting debugger.*"), + ".*\\Starting debugger.*", ) .expect("Could not start debugger"); @@ -49,7 +49,7 @@ mod tests { // having successfully solved the circuit witness. dbg_session.send_line("quit").expect("Failed to quit debugger"); dbg_session - .exp_regex(&format!(".*Circuit witness successfully solved.*")) + .exp_regex(".*Circuit witness successfully solved.*") .expect("Expected circuit witness to be successfully solved."); } }