tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit b2acc8ba3cd02c89d9706eafe804d4841aa3c585
parent 299d001bc4ad58fe8c9ddcb4dbe17d79c806d876
Author: Mike Hommey <mh+mozilla@glandium.org>
Date:   Tue,  9 Dec 2025 23:40:33 +0000

Bug 2004883 - Remove rustc version checks that are always true. r=gfx-reviewers,jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D275576

Diffstat:
MCargo.lock | 1-
Mgfx/qcms/Cargo.toml | 3---
Dgfx/qcms/build.rs | 14--------------
Mgfx/qcms/src/lib.rs | 9++-------
4 files changed, 2 insertions(+), 25 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock @@ -5707,7 +5707,6 @@ name = "qcms" version = "0.3.0" dependencies = [ "libc", - "version_check", ] [[package]] diff --git a/gfx/qcms/Cargo.toml b/gfx/qcms/Cargo.toml @@ -20,6 +20,3 @@ cmyk = [] [dependencies] libc = {version = "0.2", optional = true } - -[build-dependencies] -version_check = "0.9" diff --git a/gfx/qcms/build.rs b/gfx/qcms/build.rs @@ -1,14 +0,0 @@ -extern crate version_check as rustc; - -fn main() { - if rustc::is_min_version("1.80.0").unwrap_or(false) { - println!("cargo::rustc-check-cfg=cfg(stdsimd_split)"); - println!("cargo::rustc-check-cfg=cfg(stable_raw_ref_op)"); - } - if rustc::is_min_version("1.78.0").unwrap_or(false) { - println!("cargo::rustc-cfg=stdsimd_split"); - } - if rustc::is_min_version("1.82.0").unwrap_or(false) { - println!("cargo::rustc-cfg=stable_raw_ref_op"); - } -} diff --git a/gfx/qcms/src/lib.rs b/gfx/qcms/src/lib.rs @@ -7,17 +7,12 @@ #![allow(non_upper_case_globals)] // These are needed for the neon SIMD code and can be removed once the MSRV supports the // instrinsics we use -#![cfg_attr(all(stdsimd_split, target_arch = "arm", feature = "neon"), feature(stdarch_arm_neon_intrinsics))] -#![cfg_attr(all(stdsimd_split, target_arch = "arm", feature = "neon"), feature(stdarch_arm_feature_detection))] -#![cfg_attr(all(not(stdsimd_split), target_arch = "arm", feature = "neon"), feature(stdsimd))] +#![cfg_attr(all(target_arch = "arm", feature = "neon"), feature(stdarch_arm_neon_intrinsics))] +#![cfg_attr(all(target_arch = "arm", feature = "neon"), feature(stdarch_arm_feature_detection))] #![cfg_attr( all(target_arch = "arm", feature = "neon"), feature(arm_target_feature) )] -#![cfg_attr( - all(not(stable_raw_ref_op), target_arch = "arm", feature = "neon"), - feature(raw_ref_op) -)] /// These values match the Rendering Intent values from the ICC spec #[repr(C)]