about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/middle
diff options
context:
space:
mode:
authorJames Barford-Evans <james.barford-evans@arm.com>2025-08-21 14:32:10 +0100
committerJamie Cunliffe <Jamie.Cunliffe@arm.com>2025-08-27 14:45:01 +0100
commitbcfc9b5073a92bbb4b1e4db2eab535357d8973ad (patch)
treea0bb4d26841b0c6a28ddb0dfea6b934f8e0f13ca /compiler/rustc_middle/src/middle
parentb2dd217dd0a099fb87601657ec480bf3e92b30a6 (diff)
downloadrust-bcfc9b5073a92bbb4b1e4db2eab535357d8973ad.tar.gz
rust-bcfc9b5073a92bbb4b1e4db2eab535357d8973ad.zip
inline at the callsite & warn when target features mismatch
Co-authored-by: Jamie Cunliffe <Jamie.Cunliffe@arm.com>
Diffstat (limited to 'compiler/rustc_middle/src/middle')
-rw-r--r--compiler/rustc_middle/src/middle/codegen_fn_attrs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/middle/codegen_fn_attrs.rs b/compiler/rustc_middle/src/middle/codegen_fn_attrs.rs
index 866736f74a0..8b4503073b0 100644
--- a/compiler/rustc_middle/src/middle/codegen_fn_attrs.rs
+++ b/compiler/rustc_middle/src/middle/codegen_fn_attrs.rs
@@ -82,7 +82,7 @@ pub enum TargetFeatureKind {
     Forced,
 }
 
-#[derive(Copy, Clone, Debug, TyEncodable, TyDecodable, HashStable)]
+#[derive(Copy, Clone, Debug, Eq, PartialEq, TyEncodable, TyDecodable, HashStable)]
 pub struct TargetFeature {
     /// The name of the target feature (e.g. "avx")
     pub name: Symbol,