about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Behrens <fintelia@gmail.com>2019-07-01 17:31:52 -0400
committerGitHub <noreply@github.com>2019-07-01 17:31:52 -0400
commit515da7249e9420d9afc9b478f06ffb7f2f094954 (patch)
tree38c4de14c3c2c776a3fa8a5d5de39b34202b57ca
parent6ea4036cd20a4b1ab1d56e555108c21735ff6946 (diff)
downloadrust-515da7249e9420d9afc9b478f06ffb7f2f094954.tar.gz
rust-515da7249e9420d9afc9b478f06ffb7f2f094954.zip
Target::arch can take more than listed options
A list of options in a comment like this is almost guaranteed to become out of date. This list is missing "riscv32" and "riscv64" and perhaps other architectures as well.
-rw-r--r--src/librustc_target/spec/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_target/spec/mod.rs b/src/librustc_target/spec/mod.rs
index 75821aba470..3054ffabb4f 100644
--- a/src/librustc_target/spec/mod.rs
+++ b/src/librustc_target/spec/mod.rs
@@ -497,8 +497,8 @@ pub struct Target {
     pub target_env: String,
     /// Vendor name to use for conditional compilation.
     pub target_vendor: String,
-    /// Architecture to use for ABI considerations. Valid options: "x86",
-    /// "x86_64", "arm", "aarch64", "mips", "powerpc", and "powerpc64".
+    /// Architecture to use for ABI considerations. Valid options include: "x86",
+    /// "x86_64", "arm", "aarch64", "mips", "powerpc", "powerpc64", and others.
     pub arch: String,
     /// [Data layout](http://llvm.org/docs/LangRef.html#data-layout) to pass to LLVM.
     pub data_layout: String,