Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 64ba25d

Browse files
committed
Use integer literals for builtin target_pointer_width fields
Also change target_pointer_width to pointer_width. Preparation for a subsequent type change of target_pointer_width to an integer together with a rename to pointer_width. On its own, this commit breaks the build. I don't like making build-breaking commits, but in this instance I believe that it makes review easier, as the "real" changes of this PR can be seen much more easily. Result of running: find compiler/rustc_target/src/spec/ -type f -exec sed -i -e 's/target_pointer_width: "\(.*\)"\..*,/pointer_width: \1,/g' {} \;
1 parent 596b0d5 commit 64ba25d

File tree

151 files changed

+151
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+151
-151
lines changed

compiler/rustc_target/src/spec/aarch64_apple_darwin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn target() -> Target {
1717
Target {
1818
llvm_target,
1919
target_endian: "little".to_string(),
20-
target_pointer_width: "64".to_string(),
20+
pointer_width: 64,
2121
target_c_int_width: "32".to_string(),
2222
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128".to_string(),
2323
arch: arch.to_string(),

compiler/rustc_target/src/spec/aarch64_apple_ios.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub fn target() -> Target {
66
Target {
77
llvm_target: "arm64-apple-ios".to_string(),
88
target_endian: "little".to_string(),
9-
target_pointer_width: "64".to_string(),
9+
pointer_width: 64,
1010
target_c_int_width: "32".to_string(),
1111
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128".to_string(),
1212
arch: "aarch64".to_string(),

compiler/rustc_target/src/spec/aarch64_apple_tvos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub fn target() -> Target {
66
Target {
77
llvm_target: "arm64-apple-tvos".to_string(),
88
target_endian: "little".to_string(),
9-
target_pointer_width: "64".to_string(),
9+
pointer_width: 64,
1010
target_c_int_width: "32".to_string(),
1111
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128".to_string(),
1212
arch: "aarch64".to_string(),

compiler/rustc_target/src/spec/aarch64_fuchsia.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub fn target() -> Target {
77
Target {
88
llvm_target: "aarch64-fuchsia".to_string(),
99
target_endian: "little".to_string(),
10-
target_pointer_width: "64".to_string(),
10+
pointer_width: 64,
1111
target_c_int_width: "32".to_string(),
1212
data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128".to_string(),
1313
arch: "aarch64".to_string(),

compiler/rustc_target/src/spec/aarch64_linux_android.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub fn target() -> Target {
1212
Target {
1313
llvm_target: "aarch64-linux-android".to_string(),
1414
target_endian: "little".to_string(),
15-
target_pointer_width: "64".to_string(),
15+
pointer_width: 64,
1616
target_c_int_width: "32".to_string(),
1717
data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128".to_string(),
1818
arch: "aarch64".to_string(),

compiler/rustc_target/src/spec/aarch64_pc_windows_msvc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub fn target() -> Target {
99
Target {
1010
llvm_target: "aarch64-pc-windows-msvc".to_string(),
1111
target_endian: "little".to_string(),
12-
target_pointer_width: "64".to_string(),
12+
pointer_width: 64,
1313
target_c_int_width: "32".to_string(),
1414
data_layout: "e-m:w-p:64:64-i32:32-i64:64-i128:128-n32:64-S128".to_string(),
1515
arch: "aarch64".to_string(),

compiler/rustc_target/src/spec/aarch64_unknown_cloudabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub fn target() -> Target {
99
Target {
1010
llvm_target: "aarch64-unknown-cloudabi".to_string(),
1111
target_endian: "little".to_string(),
12-
target_pointer_width: "64".to_string(),
12+
pointer_width: 64,
1313
target_c_int_width: "32".to_string(),
1414
data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128".to_string(),
1515
arch: "aarch64".to_string(),

compiler/rustc_target/src/spec/aarch64_unknown_freebsd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub fn target() -> Target {
77
Target {
88
llvm_target: "aarch64-unknown-freebsd".to_string(),
99
target_endian: "little".to_string(),
10-
target_pointer_width: "64".to_string(),
10+
pointer_width: 64,
1111
target_c_int_width: "32".to_string(),
1212
data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128".to_string(),
1313
arch: "aarch64".to_string(),

compiler/rustc_target/src/spec/aarch64_unknown_hermit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub fn target() -> Target {
77
Target {
88
llvm_target: "aarch64-unknown-hermit".to_string(),
99
target_endian: "little".to_string(),
10-
target_pointer_width: "64".to_string(),
10+
pointer_width: 64,
1111
target_c_int_width: "32".to_string(),
1212
data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128".to_string(),
1313
arch: "aarch64".to_string(),

compiler/rustc_target/src/spec/aarch64_unknown_linux_gnu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub fn target() -> Target {
77
Target {
88
llvm_target: "aarch64-unknown-linux-gnu".to_string(),
99
target_endian: "little".to_string(),
10-
target_pointer_width: "64".to_string(),
10+
pointer_width: 64,
1111
target_c_int_width: "32".to_string(),
1212
target_env: "gnu".to_string(),
1313
data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128".to_string(),

0 commit comments

Comments
 (0)