Skip to content

Commit 1556ac8

Browse files
committed
Sanitize target commentary
1 parent 31dcec5 commit 1556ac8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

compiler/rustc_target/src/spec/targets/riscv32e_unknown_none_elf.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, Targ
33
pub(crate) fn target() -> Target {
44
Target {
55
// The below `data_layout` is explicitly specified by the ilp32e ABI in LLVM. See also
6-
// `self.options.llvm_abiname`.
6+
// `options.llvm_abiname`.
77
data_layout: "e-m:e-p:32:32-i64:64-n32-S32".into(),
88
llvm_target: "riscv32".into(),
99
metadata: crate::spec::TargetMetadata {
@@ -19,7 +19,7 @@ pub(crate) fn target() -> Target {
1919
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
2020
linker: Some("rust-lld".into()),
2121
cpu: "generic-rv32".into(),
22-
// The ILP32E ABI specifies the `data_layout`. See also `self.data_layout`.
22+
// The ilp32e ABI specifies the `data_layout`
2323
llvm_abiname: "ilp32e".into(),
2424
max_atomic_width: Some(32),
2525
atomic_cas: false,

compiler/rustc_target/src/spec/targets/riscv32em_unknown_none_elf.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, Targ
33
pub(crate) fn target() -> Target {
44
Target {
55
// The below `data_layout` is explicitly specified by the ilp32e ABI in LLVM. See also
6-
// `self.options.llvm_abiname`.
6+
// `options.llvm_abiname`.
77
data_layout: "e-m:e-p:32:32-i64:64-n32-S32".into(),
88
llvm_target: "riscv32".into(),
99
metadata: crate::spec::TargetMetadata {
@@ -19,7 +19,7 @@ pub(crate) fn target() -> Target {
1919
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
2020
linker: Some("rust-lld".into()),
2121
cpu: "generic-rv32".into(),
22-
// The ILP32E ABI specifies the `data_layout`. See also `self.data_layout`.
22+
// The ilp32e ABI specifies the `data_layout`
2323
llvm_abiname: "ilp32e".into(),
2424
max_atomic_width: Some(32),
2525
atomic_cas: false,

compiler/rustc_target/src/spec/targets/riscv32emc_unknown_none_elf.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, Targ
33
pub(crate) fn target() -> Target {
44
Target {
55
// The below `data_layout` is explicitly specified by the ilp32e ABI in LLVM. See also
6-
// `self.options.llvm_abiname`.
6+
// `options.llvm_abiname`.
77
data_layout: "e-m:e-p:32:32-i64:64-n32-S32".into(),
88
llvm_target: "riscv32".into(),
99
metadata: crate::spec::TargetMetadata {
@@ -19,7 +19,7 @@ pub(crate) fn target() -> Target {
1919
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
2020
linker: Some("rust-lld".into()),
2121
cpu: "generic-rv32".into(),
22-
// The ILP32E ABI specifies the `data_layout`. See also `self.data_layout`.
22+
// The ilp32e ABI specifies the `data_layout`
2323
llvm_abiname: "ilp32e".into(),
2424
max_atomic_width: Some(32),
2525
atomic_cas: false,

0 commit comments

Comments
 (0)