about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-06-12 04:06:02 +0000
committerbors <bors@rust-lang.org>2025-06-12 04:06:02 +0000
commitfe5c95d4ae33ec9d7831921e448e2daf8264ea42 (patch)
tree3978100f2560bcb2c54061f04d7b0c3c41745560 /compiler/rustc_codegen_ssa/src
parent14346303d760027e53214e705109a62c0f00b214 (diff)
parent240776176b7e1ea335a69a8e0181f4ad92d157fb (diff)
downloadrust-fe5c95d4ae33ec9d7831921e448e2daf8264ea42.tar.gz
rust-fe5c95d4ae33ec9d7831921e448e2daf8264ea42.zip
Auto merge of #142392 - matthiaskrgr:rollup-9jrfqnu, r=matthiaskrgr
Rollup of 10 pull requests

Successful merges:

 - rust-lang/rust#141307 (Add method to retrieve body of closure in stable-mir)
 - rust-lang/rust#142040 (transmutability: shift abstraction boundary)
 - rust-lang/rust#142066 (More simple 2015 edition test decoupling)
 - rust-lang/rust#142157 (rustc_resolve: Improve `resolve_const_param_in_non_trivial_anon_const` wording)
 - rust-lang/rust#142217 (`tests/ui`: A New Order [10/N])
 - rust-lang/rust#142219 (`tests/ui`: A New Order [11/N])
 - rust-lang/rust#142261 (use correct edition when warning for unsafe attributes)
 - rust-lang/rust#142303 (Assorted bootstrap cleanups (step 1))
 - rust-lang/rust#142318 (Cleanup `rust-src` remapping and real dir)
 - rust-lang/rust#142352 (compiler: Make `c_int_width` an integer)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/traits/type_.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_ssa/src/traits/type_.rs b/compiler/rustc_codegen_ssa/src/traits/type_.rs
index c3fc21a9285..70331b72353 100644
--- a/compiler/rustc_codegen_ssa/src/traits/type_.rs
+++ b/compiler/rustc_codegen_ssa/src/traits/type_.rs
@@ -44,10 +44,10 @@ pub trait DerivedTypeCodegenMethods<'tcx>:
     BaseTypeCodegenMethods + MiscCodegenMethods<'tcx> + HasTyCtxt<'tcx> + HasTypingEnv<'tcx>
 {
     fn type_int(&self) -> Self::Type {
-        match &self.sess().target.c_int_width[..] {
-            "16" => self.type_i16(),
-            "32" => self.type_i32(),
-            "64" => self.type_i64(),
+        match &self.sess().target.c_int_width {
+            16 => self.type_i16(),
+            32 => self.type_i32(),
+            64 => self.type_i64(),
             width => bug!("Unsupported c_int_width: {}", width),
         }
     }