From fc97e4f395e6ad551eb71b97b85df24302bcb7a4 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 31 Oct 2025 11:20:09 -0700 Subject: compilers: Remove Environment parameter from Compiler.run_sanity_check --- mesonbuild/compilers/rust.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers/rust.py') diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py index 8133555c6..8068865e2 100644 --- a/mesonbuild/compilers/rust.py +++ b/mesonbuild/compilers/rust.py @@ -149,7 +149,7 @@ class RustCompiler(Compiler): if pc.returncode != 0: raise EnvironmentException(f'Rust compiler {self.name_string()} cannot compile programs.') self._native_static_libs(work_dir, source_name) - self.run_sanity_check(environment, [output_name], work_dir) + self.run_sanity_check([output_name], work_dir) # Check if we are allowed to use nightly features. # This is done here because it's the only place we have access to # environment object, and sanity_check() is called after the compiler -- cgit v1.2.3